/* LS-015 "Operation Nightglass" (#16168). Ep07-local styles on top of the shared Live Stories page and player
   (live-stories.css, product.css: read-only, shared with Ep01-06). The page is the normal Live Stories layout: the 3D player
   in its own column, the story beside it (below it on phones); Expand is the viewer's choice. Site tokens and type only. */

/* ---------- overlays on the scene: captions, the picture banner, the cinematic note, chapter titles, the 03:35 camera */
.p-ls15 .e15-scene{--e15-bot:104px}
.e15-cc{position:absolute;z-index:4;left:calc(var(--ls-hl,0px) + (100% - var(--ls-hl,0px)) / 2);bottom:var(--e15-bot);transform:translateX(-50%);
  width:max-content;max-width:min(680px,calc(100% - var(--ls-hl,0px) - 32px));box-sizing:border-box;margin:0;padding:9px 16px 10px;border-radius:12px;
  background:rgba(4,7,14,.86);border:1px solid var(--line);color:var(--ink);text-align:center;font-size:16px;line-height:1.42;pointer-events:none}
.e15-cc.is-empty,.e15-cc.is-off,.e15-cc[hidden]{display:none}
.e15-who{display:block;margin-bottom:2px;font-size:10px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.e15-who:empty{display:none}
/* the picture banner (the convergence): screen space, wraps, never clipped */
.e15-pic{position:absolute;z-index:4;left:calc(var(--ls-hl,0px) + (100% - var(--ls-hl,0px)) / 2);bottom:calc(var(--e15-bot) + 78px);transform:translateX(-50%);margin:0;
  width:max-content;max-width:min(640px,calc(100% - var(--ls-hl,0px) - 32px));box-sizing:border-box;padding:8px 14px;border-radius:10px;text-align:center;
  font-size:13px;font-weight:500;letter-spacing:.06em;color:var(--gold);background:rgba(18,16,10,.9);border:1px solid rgba(226,174,94,.55);animation:e15in .6s ease-out}
.e15-pic.is-open{color:var(--body);border-color:var(--line);background:rgba(7,12,26,.88)}
@keyframes e15in{from{opacity:0;transform:translateX(-50%) translateY(-6px)}}
/* the honest note: a quiet hallmark in the scene's corner, always readable */
.e15-tag{position:absolute;z-index:4;right:12px;bottom:calc(var(--e15-bot) - 26px);margin:0;max-width:min(300px,46%);padding:3px 9px;border-radius:999px;
  font-size:10px;letter-spacing:.08em;color:var(--body);background:rgba(4,7,14,.74);border:1px solid var(--line);pointer-events:none}
.e15-tag::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--cyan);vertical-align:1px}
.e15-title{position:absolute;inset:0;z-index:3;display:grid;place-content:center;text-align:center;pointer-events:none;background:radial-gradient(ellipse at center,rgba(3,7,15,.15),rgba(3,7,15,.7))}
.e15-title-k{margin:0;font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;color:var(--gold)}
.e15-title-t{margin:8px 0 0;font-weight:300;font-size:clamp(30px,5vw,60px);letter-spacing:.04em;color:var(--ink)}
/* the picture's title on the pull-back: left side, no veil over the tower */
.e15-title.is-side{place-content:center start;text-align:left;padding-left:clamp(16px,4vw,56px);background:linear-gradient(90deg,rgba(3,7,15,.55),rgba(3,7,15,0) 45%)}
.e15-title.is-side .e15-title-t{font-size:clamp(20px,1.9vw,30px);max-width:7em;line-height:1.12}
.is-expanded .e15-title.is-side .e15-title-t{font-size:clamp(26px,3vw,46px);max-width:9em}
/* the layer names beside the stack in the wide shots */
.ls15-label.is-tier{background:none;border:0;padding:0;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;text-shadow:0 1px 6px rgba(0,0,0,.9)}
@media (max-width:600px){.ls15-label.is-tier{font-size:8.5px;letter-spacing:.08em}.e15-title.is-side{place-content:center start;padding:0 0 0 12px;background:linear-gradient(90deg,rgba(3,7,15,.5),rgba(3,7,15,0) 40%)}.e15-title.is-side .e15-title-t{font-size:19px;max-width:7.5em}.e15-title.is-side .e15-title-k{font-size:8.5px}}
.e15-title[hidden],.e15-pic[hidden],.e15-tag[hidden],.e15-cam[hidden],.e15-grain[hidden]{display:none}
.e15-grain{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.2;mix-blend-mode:screen;
  background-image:repeating-radial-gradient(circle at 17% 32%,rgba(255,255,255,.07) 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px);animation:e15grain .2s steps(2) infinite}
@keyframes e15grain{50%{background-position:3px 2px,0 1px}}
.e15-cam{position:absolute;z-index:4;left:calc(12px + var(--ls-hl,0px));right:12px;top:calc(100% - var(--e15-bot) - 140px);display:flex;flex-wrap:wrap;gap:4px 14px;justify-content:space-between;
  font:500 11px ui-monospace,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:#cfd8e8;pointer-events:none}
.e15-cam span:first-child{color:#1a1406;background:var(--gold);padding:2px 7px;border-radius:4px}
.ls15-tapsound[hidden],.ls15-recenter[hidden]{display:none}
.ls15-tapsound{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%)}
.ls15-recenter{position:absolute;z-index:6;right:12px;top:50%}
.ls15-night{margin:0;font-size:12px;color:var(--muted,#8a93a6)}
/* 3D labels from the world */
.ls15-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.ls15-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.ls15-label{position:absolute;left:0;top:0;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:500;letter-spacing:.04em;white-space:nowrap;
  background:rgba(4,7,14,.8);border:1px solid var(--line);color:var(--ink);opacity:0;transition:opacity .25s}
.ls15-label.is-layer{color:var(--cyan);text-transform:uppercase;font-size:10px;letter-spacing:.14em}
.ls15-label.is-warn{border-color:rgba(238,90,74,.5);color:#ffc2a0}
.ls15-label.is-k8s{border-color:rgba(127,140,255,.55);color:#c6ccff}
.ls15-label.is-tool,.ls15-label.is-span{color:#d8f5ec;font-family:ui-monospace,Menlo,monospace;font-weight:400}
.ls15-label.is-tab{font-size:10px;letter-spacing:.1em;color:var(--body);padding:2px 7px}
.ls15-label.is-tab b{color:var(--gold);margin-right:4px;font-weight:500}
.ls15-label.is-chain{border-color:rgba(127,224,200,.6);color:#d8f5ec}
.ls15-label.is-chain.is-on{background:rgba(127,224,200,.18);border-color:#7fe0c8;color:#fff}
.ls15-label.is-human{border-color:rgba(226,174,94,.6);color:var(--gold)}

/* ---------- the story column: cards sit in the chapter they belong to */
.e15-cards{display:none}
.e15-card{margin:18px 0 0;padding:20px 22px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:14px;background:linear-gradient(180deg,rgba(14,20,36,.92),rgba(7,12,26,.92))}
.e15-card[hidden]{display:none}
.e15-card h3{margin:0 0 10px;font-weight:300;font-size:clamp(20px,2.2vw,26px);line-height:1.2;color:var(--ink)}
.e15-k{margin:0 0 6px;font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.e15-fine{font-size:13px;color:var(--body)}
.e15-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
.e15-btn{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font:500 14px inherit;font-family:inherit;cursor:pointer}
.e15-btn.is-primary{background:var(--gold);color:#1a1406;border-color:var(--gold)}
.e15-link{margin-top:10px;min-height:44px;background:none;border:0;color:var(--cyan);font:500 14px inherit;font-family:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0}
.e15-opts{display:grid;gap:10px}
.e15-opt{text-align:left;min-height:56px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:rgba(3,7,15,.6);color:var(--ink);font:15px/1.4 inherit;font-family:inherit;cursor:pointer}
.e15-opt b{display:block;margin-bottom:2px;font-weight:500;font-size:16px;color:var(--ink)}
.e15-opt span{color:var(--body)}
.e15-opt:hover,.e15-opt:focus-visible{border-color:var(--gold);outline:none}
.e15-known{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--body);border-left:2px solid var(--cyan);padding-left:12px}
.e15-verdict{padding:10px 12px;border-radius:10px;background:rgba(3,7,15,.6);border:1px solid var(--line);color:var(--ink)}
.e15-cmp{width:100%;border-collapse:collapse;font-size:13px;margin-top:12px}
.e15-cmp th,.e15-cmp td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--body)}
.e15-cmp th{color:var(--muted,#8a93a6);font-weight:500}
.e15-replay{display:grid;gap:8px}
.e15-replay label{display:grid;gap:4px;font-size:12px;color:var(--body)}
.e15-replay select{min-height:44px;border-radius:10px;background:rgba(3,7,15,.6);color:var(--ink);border:1px solid var(--line);font:15px inherit;font-family:inherit;padding:0 8px}
.e15-replay label{min-width:0}.e15-replay select{width:100%;min-width:0;max-width:100%}
/* Chapter 7 replay (owner P0 #16168): pressed/busy state, the status line, the Back control in the tools row */
.e15-btn:active{transform:translateY(1px)}
.e15-btn.is-busy{opacity:.75;cursor:progress;box-shadow:inset 0 0 0 2px rgba(26,20,6,.35)}
.e15-status{margin:2px 0 0;min-height:1.4em;font-size:14px;line-height:1.45;color:var(--cyan)}
.e15-status:empty{display:none}
.e15-status.is-error{color:#ff9f6a}
.e15-back[hidden]{display:none}
.e15-back{border-color:var(--gold);color:var(--gold);white-space:nowrap}
.e15-more summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--cyan)}
/* the War Room / People panel inside the shared inspector */
.e15-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.e15-tab{min-height:44px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--body);font:500 13px inherit;font-family:inherit;cursor:pointer}
.e15-tab[aria-selected="true"]{color:var(--gold);border-color:rgba(226,174,94,.7)}
.e15-tabpanel ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.e15-tabpanel li{font-size:14px;line-height:1.5;color:var(--body);padding-left:12px;border-left:3px solid var(--line)}
.e15-tabpanel li[data-g="confirmed"]{border-color:var(--gold)}.e15-tabpanel li[data-g="correlated"]{border-color:var(--cyan)}.e15-tabpanel li[data-g="analyst"]{border-color:#e2ae5e}
.e15-tabpanel li[data-g="inferred"]{border-color:#c79bff}.e15-tabpanel li[data-g="suspected"]{border-color:#ff9f6a}.e15-tabpanel li[data-g="fact"]{border-color:var(--ink)}
.e15-tabpanel em{font-style:normal;font-weight:500;text-transform:uppercase;font-size:10px;letter-spacing:.14em;margin-right:6px;color:var(--ink)}
.e15-people ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.e15-people b{color:var(--ink);font-weight:500}.e15-people span{display:block;color:var(--body);font-size:13px}

/* ---------- Expand: the viewer's choice. Cards that belong to the story float over the expanded player */
/* owner P0 #16168: between the tools row and the chapter rail (--e15-ctop/--e15-cbot measured by fitCard() in ep15.js), so it
   never covers Collapse, the rail or Play; a taller card scrolls inside and keeps its Close control in reach */
.ls-stage.is-expanded .e15-slot .e15-card:not([hidden]){position:fixed;z-index:46;left:50%;top:var(--e15-ctop,128px);margin:0;transform:translateX(-50%);
  width:min(620px,calc(100vw - 32px));max-height:calc(100vh - var(--e15-ctop,128px) - var(--e15-cbot,120px));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:0 24px 70px rgba(0,0,0,.6)}
.e15-close{display:none}
.ls-stage.is-expanded .e15-close{display:block;position:sticky;top:0;z-index:1;float:right;margin:-6px -8px 4px 8px;min-height:44px;min-width:44px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);background:rgba(4,7,14,.92);color:var(--ink);font:500 13px inherit;font-family:inherit;cursor:pointer}
.ls-adv-panel{max-width:calc(100vw - 24px)}

/* ---------- phones: the shared layout stacks the scene above the story; Advanced (2×) stays reachable */
@media (max-width:980px){
  .p-ls15 .e15-scene{--e15-bot:84px}
  .e15-cc{font-size:14px;padding:7px 12px}
  .e15-pic{font-size:12px;bottom:calc(var(--e15-bot) + 64px)}
  .p-ls15 .ls-adv{display:block}
}
@media (max-width:560px){
  .p-ls15 .e15-scene{--e15-bot:88px}
  .p-ls15 .ls-adv[open] .ls-adv-panel{position:fixed;left:12px;right:12px;width:auto;top:auto;bottom:auto}
  .e15-tag{bottom:calc(var(--e15-bot) - 22px);max-width:60%}
  .e15-card{padding:16px}
}
@media (max-width:980px) and (max-height:500px) and (orientation:landscape){
  .p-ls15 .e15-scene{--e15-bot:62px}
  .e15-cc{font-size:13px;padding:6px 10px}
  .e15-pic{bottom:calc(var(--e15-bot) + 52px)}
  .e15-tag{display:none}
}
@media (prefers-reduced-motion:reduce){.e15-grain,.e15-pic{animation:none}}

/* ---------- owner review 2026-11-07: the honest note in the objective panel; icons for the landscape tool column */
.ls-objective.is-cine .ls-obj-text{color:var(--cyan)}
.ls-objective.is-cine .ls-obj-text::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--cyan);vertical-align:1px}
.ls15-ic{display:none;font-style:normal;font-weight:600;font-size:12px;letter-spacing:.04em}
.e15-cc .e15-pic[hidden]{display:none}
.e15-cc .e15-pic{position:static;transform:none;display:block;margin:0 auto 6px;width:auto;max-width:100%;animation:none}
.e15-cc.is-off.has-pic{display:block}.e15-cc.is-off.has-pic #e15-who,.e15-cc.is-off.has-pic #e15-line{display:none}
@media (max-width:980px){
  .p-ls15 .ls-rail-b{min-height:32px}
  .p-ls15 .ls-tools .ls-tb,.p-ls15 .ls-adv>summary,.p-ls15 #ls-play,.p-ls15 #ls-next{min-height:32px}
}
@media (max-width:980px) and (max-height:500px) and (orientation:landscape){
  .p-ls15 .e15-scene{--e15-bot:92px}
  .p-ls15 .ls-bar .ls15-ic{display:inline}
  .p-ls15 .ls-bar .ls-tb{min-height:44px}
}
/* short phones: the shared CSS hides the objective panel there; the honest note must stay visible, so the panel returns as one
   compact line during the twin shots, and the counters step aside to give the picture its height */
@media (max-width:560px) and (max-height:600px){
  .p-ls15 .ls-objective.is-cine{display:flex;padding:4px 9px}
  .p-ls15 .ls-objective.is-cine .ls-obj-ch,.p-ls15 .ls-objective.is-cine .ls-obj-title{display:none}
  .p-ls15 .ls-dash{display:none}
  .e15-cc{font-size:13px;padding:6px 10px}.e15-cc .e15-pic{font-size:10.5px;padding:5px 8px;margin-bottom:4px}
}
@media (max-width:980px) and (max-height:340px) and (orientation:landscape){
  .p-ls15 .e15-scene{--e15-bot:84px}
  .e15-cc{font-size:12px;padding:5px 9px;max-width:calc(100% - var(--ls-hl,0px) - 16px)}.e15-cc .e15-pic{font-size:10px;padding:4px 7px;margin-bottom:3px}
}
/* portrait phones: one toolbar row (the shared design); Captions, Expand and Advanced show their glyph, names stay for AT */
@media (max-width:560px){
  .p-ls15 #ls15-cc .ls-tb-t,.p-ls15 #ls-expand .ls-tb-t,.p-ls15 #ls-adv>summary .ls-tb-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .p-ls15 #ls15-cc .ls15-ic,.p-ls15 #ls-expand .ls15-ic,.p-ls15 #ls-adv>summary .ls15-ic{display:inline}
  .p-ls15 #ls15-cc,.p-ls15 #ls-expand,.p-ls15 #ls-adv>summary{min-width:40px;justify-content:center}
}
@media (max-width:980px) and (max-height:340px) and (orientation:landscape){.p-ls15 .ls-dash{display:none}}
/* the Play button: the same guard as Ep03 (ls-009.css) and Ep04 (ls-010.css). Without it the gold Play/Decide label is drawn
   gold on the gold button and reads as an empty pill */
#ls-play{color:#120c02}
#ls-play[data-st=pause]{color:var(--gold);background:var(--ls-panel)}
/* final polish (owner brief 2026-11-07, "no unreadable or needlessly cropped War Room information in portrait"): on portrait
   phones the 3D picture gets more height (the toolbar, chapter line and captions took most of it) and the caption is more
   compact, so the War Room close-ups and the twin stay readable */
@media (max-width:560px) and (orientation:portrait){
  .p-ls15 .ls-scenecol{height:clamp(320px,70svh,640px)}
  html:has(.p-ls15 .ls-stage){scroll-padding-top:calc(80px + clamp(320px,70svh,640px))}
  .p-ls15 .e15-cc{font-size:13px;line-height:1.32;padding:5px 10px 6px;max-width:calc(100% - 16px);background:rgba(4,7,14,.78)}
}
