/* Cinematic overview; application panels and permissions retain their own logic. */
html.living-story-mode{scroll-behavior:smooth;scroll-snap-type:y proximity;scroll-padding-top:var(--living-header-height,96px)}
.living-story-mode .cheetah-brand-bar{position:sticky;top:0;z-index:80}
.living-story-mode .control-hero{min-height:calc(100svh - 96px);scroll-snap-align:start;margin:0;width:100%}
.living-story-mode .dashboard-panel{gap:0}
.living-story-mode .app-shell{width:100%;padding-top:0}
.living-chapters{grid-column:1/-1;grid-row:2;min-width:0;width:100%;background:#111}
.living-story-mode .dashboard-panel>.dashboard-header{grid-row:3;padding-top:40px}
.living-story-mode .dashboard-panel>.status-grid{grid-row:4}
.living-story-mode .dashboard-panel>.dashboard-tabs{grid-row:5;scroll-margin-top:20px}
.living-story-mode .dashboard-panel>.tab-panel{grid-row:6}
.living-chapter{position:relative;isolation:isolate;display:flex;align-items:center;min-height:100svh;width:100%;padding:100px clamp(40px,8vw,150px);overflow:hidden;background:#1b201e;scroll-snap-align:start;scroll-margin-top:0}
.living-chapter::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(270deg,#050808e6 0%,#050808a6 35%,#05080818 80%),linear-gradient(0deg,#0009,transparent 35%)}
.living-chapter:nth-child(even)::after{background:linear-gradient(270deg,#050808e6 0%,#050808a6 35%,#05080818 80%),linear-gradient(0deg,#0009,transparent 35%)}
.living-chapter-media{position:absolute;inset:0;z-index:auto;background:#1b201e}
.living-chapter-media[data-poster-ready]{background-image:var(--chapter-poster);background-size:cover;background-position:center}
.living-chapter-media .smart-living-video{position:absolute;inset:0;z-index:0;object-position:center;opacity:.9}
.living-chapter .smart-living-toggle{z-index:4;top:30px;left:35px}
.living-chapter-copy{text-align:right;direction:rtl;position:relative;z-index:2;max-width:660px;color:#fff;pointer-events:none}
.living-chapter:nth-child(even){justify-content:flex-start}
.living-chapter-index{display:block;direction:ltr;text-align:right;font:300 12px Arial,sans-serif;letter-spacing:3px;color:#e2d4b3;margin-bottom:48px}
.living-chapter-kicker{color:#e2d4b3!important;font-size:12px;letter-spacing:.02em;margin:0 0 20px}
.living-chapter-copy h2{font-size:clamp(36px,4.5vw,70px);font-weight:300;line-height:1.6;letter-spacing:-1.6px;color:#fff!important;margin:0 0 22px}
.living-chapter-description{color:#f0eeea!important;font-size:14px;line-height:2.2;max-width:470px;margin:0 0 36px}
.living-chapter-action{pointer-events:auto;display:inline-flex;align-items:center;gap:35px;border:1px solid #ffffffb3;border-radius:0;background:#0002;padding:15px 23px;color:#fff!important;font:400 12px CheetahVazir,sans-serif;cursor:pointer;min-height:50px;transition:background .2s,color .2s}
.living-chapter-action:hover{background:#fff;color:#151515!important}.living-chapter-action:focus-visible,.living-scroll-hint:focus-visible{outline:2px solid #fff;outline-offset:5px}
.living-chapter-caption{position:absolute;bottom:34px;left:36px;z-index:2;font:300 9px Arial,sans-serif;letter-spacing:3px;color:#ffffffbf;direction:ltr}
.living-scroll-hint{color:#fff!important;text-decoration:none;font-size:11px;pointer-events:auto;display:inline-flex;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff70}
.living-story-mode .control-hero-monitor{display:none}.living-story-mode .hero-live-status{display:none}
.living-chapter-nav{display:none;position:fixed;inset-inline-start:18px;top:50%;transform:translateY(-50%);z-index:30;flex-direction:column;gap:14px;direction:rtl;padding:14px 8px;background:#080b0b7d;border:1px solid #ffffff30;backdrop-filter:blur(10px)}
.living-story-mode.living-in-story .living-chapter-nav{display:flex}
.living-chapter-nav a{position:relative;display:grid;place-items:center;min-height:20px;width:20px;text-decoration:none;color:#fff}
.living-chapter-nav a>span{display:block;width:5px;height:5px;border-radius:50%;background:#ffffff80;outline:1px solid transparent;outline-offset:5px;transition:all .2s}
.living-chapter-nav a[aria-current="location"]>span{background:#fff;outline-color:#fff}
.living-chapter-nav b{position:absolute;inset-inline-start:34px;white-space:nowrap;background:#111e;color:#fff;padding:8px 12px;font-size:10px;font-weight:400;opacity:0;visibility:hidden;pointer-events:none}
.living-chapter-nav a:hover b,.living-chapter-nav a:focus-visible b{opacity:1;visibility:visible}
.living-chapter-nav a:focus-visible{outline:1px solid #fff;outline-offset:4px}
.living-story-end{padding:70px 30px;display:flex;align-items:center;justify-content:center;gap:35px;flex-wrap:wrap;text-align:center;background:var(--surface);color:var(--heading)}
.living-story-end>span{font-size:25px;font-weight:300}.living-story-end>a{color:var(--heading);text-decoration:none;padding:12px 0;border-bottom:1px solid var(--border)}
.living-story-end small{flex-basis:100%;font-size:10px;color:var(--muted)}.living-story-end small a{color:inherit}
.dashboard-panel:has(.dashboard-tab.active:not([data-tab-target="overviewTab"]))>.living-chapters{display:none}
@media(max-width:768px){.living-story-mode .control-hero{min-height:calc(100svh - 76px);padding:120px 30px 55px}.living-story-mode .control-hero-main{max-width:100%}.living-chapter,.living-chapter:nth-child(even){min-height:100svh;align-items:flex-end;justify-content:flex-start;padding:110px 30px 85px}.living-chapter::after,.living-chapter:nth-child(even)::after{background:linear-gradient(0deg,#050808f5 0%,#050808b3 46%,#05080818 100%)}.living-chapter-index{margin-bottom:24px;font-size:10px}.living-chapter-copy h2{font-size:36px;letter-spacing:-1px;line-height:1.6}.living-chapter-description{font-size:12px;line-height:2}.living-chapter-kicker{font-size:11px}.living-chapter .smart-living-toggle{top:22px;left:22px}.living-chapter-nav{inset-inline-start:5px;padding:10px 3px;gap:9px;opacity:.85}.living-chapter-nav a{width:15px;min-height:18px}.living-chapter-nav b{display:none}.living-chapter-caption{bottom:25px;left:30px;font-size:8px;letter-spacing:2px}.living-story-end{padding:45px 25px;gap:20px}.living-story-end>span{font-size:22px}}
@media(prefers-reduced-motion:reduce){html.living-story-mode{scroll-behavior:auto;scroll-snap-type:none}.living-chapter-action,.living-chapter-nav a>span{transition:none}}
@media(max-width:768px){.living-chapter,.living-chapter:nth-child(even){padding-inline-start:44px}}

/* Keep the wall panel visible when the film is cropped to the viewport. */
#living-devices .smart-living-video{object-position:20% center}
#living-devices .living-chapter-media[data-poster-ready]{background-position:20% center}
