/* Libra analysis deck runtime styles (create-libra-analysis-deck).
   Brand comes only from the tokens below; a deck overrides them in its own CSS (client palette). */
:root {
  --ns-primary: #1e3a5f; --ns-primary-2: #2d4a6f; --ns-primary-3: #0f1f33; --ns-primary-rgb: 30,58,95; --ns-primary-3-rgb: 15,31,51;
  --ns-accent: #0891b2; --ns-accent-2: #22d3ee; --ns-accent-deep: #0e7490; --ns-accent-rgb: 8,145,178; --ns-hue-rgb: 56,116,170;
  --ns-paper: #f8f8fb; --ns-ink: #1e1e2e; --ns-muted: #6b6f85; --ns-line: #e3e4ec;
  --ns-good: #0f8a5f; --ns-bad: #c2410c;
  --ns-sans: 'Figtree', Arial, Helvetica, sans-serif;
  --ns-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Window and stage */
html, body { background: var(--ns-primary-3) !important; }
body { font-family: var(--ns-sans) !important; }
#viewport { background: radial-gradient(120% 120% at 50% 0%, var(--ns-primary-2) 0%, var(--ns-primary-3) 70%); }
#stage { box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--ns-accent-rgb),.45); border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--ns-accent-rgb),.5) transparent; }

/* Type: one modern family everywhere, including SVG chart text */
.slide, .slide * { font-family: var(--ns-sans) !important; }
.slide svg text { font-family: var(--ns-sans) !important; }
.slide { background-color: var(--ns-paper) !important; color: var(--ns-ink); }
.slide.ns-raw { background-color: #fff !important; }

/* Slide transitions */
.slide { opacity: 0; transition: opacity .45s var(--ns-ease), visibility 0s linear .45s; }
.slide.on { opacity: 1; transition: opacity .45s var(--ns-ease), visibility 0s; }

/* Header: kicker, message title, lead */
.ns-head { position: absolute; left: 120px; right: 120px; top: 40px; z-index: 2; }
.ns-kicker { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ns-accent-deep); }
.ns-kicker::before { content: ''; width: 36px; height: 3px; border-radius: 3px; background: var(--ns-accent); }
.ns-title { margin: 10px 0 0 !important; font-size: 52px !important; line-height: 1.12 !important; font-weight: 800 !important; letter-spacing: -.025em; color: var(--ns-primary) !important; white-space: nowrap; }
.ns-lead { margin-top: 10px !important; font-size: 25px !important; line-height: 1.35 !important; color: var(--ns-muted) !important; font-weight: 500; white-space: nowrap; }
.ns-head.has-tools { right: 120px; }

/* Cards: softer, rounder, lifted (.ns-panel on authored decks; retrofits map their own cards) */
.slide .ns-panel { border: 1px solid var(--ns-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); overflow: hidden; transition: transform .25s var(--ns-ease), box-shadow .25s var(--ns-ease); }
.slide .ns-panel:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(var(--ns-primary-rgb),.05), 0 18px 40px rgba(var(--ns-primary-rgb),.10); }

/* Tables */
.slide table { border: 0 !important; border-collapse: separate !important; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); }
.slide th { font-weight: 700 !important; letter-spacing: .01em; border-bottom: 0 !important; }
.slide td { border-bottom: 1px solid var(--ns-line) !important; transition: background-color .15s; }
.slide tr:last-child td { border-bottom: 0 !important; }
.slide tr:hover td { background-color: rgba(var(--ns-accent-rgb),.16); }

/* Controls inside slides: pill toggles */
.slide button:not(.ns-card) { border-radius: 999px !important; transition: background-color .2s, color .2s, transform .15s; cursor: pointer; }
.slide button:not(.ns-card):hover { transform: translateY(-1px); }
.slide select { border-radius: 10px !important; }

/* Chart interaction */
.slide svg rect.ns-bar { transition: opacity .2s, filter .2s; }
.slide svg rect.ns-bar:hover { filter: brightness(1.15) saturate(1.1); }

/* Motion: staggered entrance, growing bars, drawn lines */
@keyframes nsUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nsZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide.ns-enter .ns-anim { animation: nsUp .7s var(--ns-ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.slide.ns-enter tr.ns-tr { animation: nsFade .5s ease backwards; animation-delay: calc(var(--r, 0) * 35ms + 350ms); }
.slide.ns-enter rect.ns-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: nsGrow .9s var(--ns-ease) backwards; animation-delay: calc(var(--b, 0) * 14ms + 300ms); }
@media (prefers-reduced-motion: reduce) { .slide.ns-enter * { animation: none !important; } .slide { transition: none !important; } }
.ns-static .slide.ns-enter * { animation: none !important; }
.ns-static .slide { transition: none !important; }

/* Cover */
.ns-cover, .ns-div { position: absolute; inset: 0; z-index: 3; color: #fff; }
.ns-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide.ns-enter .ns-photo { animation: nsZoom 6s ease-out both; }
/* The scrim sits behind the text column only; the photo reads clearly to its right */
.ns-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--ns-primary-3-rgb),.92) 0, rgba(var(--ns-primary-rgb),.82) calc(var(--ox, 0px) + 820px), rgba(var(--ns-primary-rgb),.35) calc(var(--ox, 0px) + 1180px), rgba(var(--ns-primary-rgb),0) calc(var(--ox, 0px) + 1480px)), linear-gradient(0deg, rgba(var(--ns-primary-3-rgb),.55) 0, rgba(var(--ns-primary-3-rgb),0) 180px); }
.ns-cover .in { position: absolute; left: calc(var(--ox, 0px) + 120px); top: 110px; right: calc(var(--ox, 0px) + 120px); bottom: 150px; display: flex; flex-direction: column; }
.ns-mark { width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(var(--ns-accent-rgb),.5), 0 20px 40px rgba(0,0,0,.35); }
.ns-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(var(--ns-accent-rgb),.6); color: var(--ns-accent-2); font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ns-cover h1 { font-size: 132px; line-height: .95; font-weight: 900; letter-spacing: -.035em; margin: 34px 0 0; white-space: nowrap; }
.ns-cover h1 span { color: var(--ns-accent); }
.ns-cover .sub { font-size: 36px; font-weight: 500; color: rgba(255,255,255,.86); margin-top: 28px; white-space: nowrap; }
.ns-kpis { display: flex; gap: 22px; margin-top: auto; align-items: stretch; }
.ns-kpi { width: 330px; padding: 26px 30px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.ns-kpi b { display: block; font-size: 72px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.ns-kpi span { display: block; margin-top: 12px; font-size: 21px; color: rgba(255,255,255,.75); font-weight: 500; }
.ns-kpi.accent b { color: var(--ns-accent); }
.ns-arrow { align-self: center; font-size: 46px; color: var(--ns-accent); }
.ns-by { margin-top: 30px; font-size: 21px; color: rgba(255,255,255,.65); font-weight: 500; }
.ns-start { position: absolute; right: calc(var(--ox, 0px) + 120px); bottom: 150px; display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 30px; border-radius: 999px; background: var(--ns-accent); color: var(--ns-primary); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px rgba(0,0,0,.3); transition: transform .2s; border: 0; }
.ns-start:hover { transform: translateY(-2px) scale(1.02); }

/* Section opener */
.ns-div .in { position: absolute; left: calc(var(--ox, 0px) + 120px); top: 0; bottom: 0; width: 1680px; display: flex; flex-direction: column; justify-content: center; }
.ns-div .num { font-size: 200px; line-height: .8; font-weight: 900; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(var(--ns-accent-rgb),.85); }
.ns-div .ph { margin-top: 36px; }
.ns-div h2 { font-size: 104px; line-height: 1; font-weight: 900; letter-spacing: -.035em; margin: 22px 0 0; white-space: nowrap; color: #fff; }
.ns-div p.bl { font-size: 32px; color: rgba(255,255,255,.82); margin-top: 24px; font-weight: 500; white-space: nowrap; }
.ns-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 52px; width: 1400px; }
.ns-links button { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 14px; border-radius: 999px !important; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 21px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); transition: background-color .2s, border-color .2s, transform .2s; }
.ns-links button em { font-style: normal; display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--ns-accent); color: var(--ns-primary); font-size: 15px; font-weight: 800; }
.ns-links button:hover { background: rgba(var(--ns-accent-rgb),.28); border-color: var(--ns-accent); }

/* Chapters drawer */
#ns-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 440px; z-index: 1001; background: rgba(var(--ns-primary-3-rgb),.97); backdrop-filter: blur(16px); color: #fff; transform: translateX(-102%); transition: transform .4s var(--ns-ease), box-shadow .4s; display: flex; flex-direction: column; font-family: var(--ns-sans); box-shadow: none; }
#ns-drawer.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
#ns-drawer header { padding: 26px 26px 14px; display: flex; align-items: center; gap: 14px; }
#ns-drawer header img { width: 44px; height: 44px; border-radius: 50%; }
#ns-drawer header b { font-size: 19px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#ns-drawer header small { display: block; color: var(--ns-accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
#ns-drawer .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 22px 10px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.07); }
#ns-drawer .tabs button { height: 44px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.75); font: 700 14px var(--ns-sans); cursor: pointer; line-height: 1.1; }
#ns-drawer .tabs button small { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
#ns-drawer .tabs button.on { background: var(--ns-accent); color: var(--ns-primary); }
#ns-drawer .list { flex: 1; overflow: auto; padding: 4px 14px 24px; }
#ns-drawer h4 { margin: 18px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ns-accent); }
#ns-drawer .it { display: grid; grid-template-columns: 38px 1fr; align-items: center; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.85); font: 500 15px var(--ns-sans); text-align: left; cursor: pointer; }
#ns-drawer .it em { font-style: normal; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; font-size: 13px; }
#ns-drawer .it:hover { background: rgba(255,255,255,.08); }
#ns-drawer .it.cur { background: rgba(var(--ns-accent-rgb),.18); color: #fff; box-shadow: inset 3px 0 0 var(--ns-accent); }
#ns-shade { position: fixed; inset: 0; z-index: 999; background: rgba(5,15,28,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
#ns-shade.on { opacity: 1; pointer-events: auto; }

/* Overview grid */
#ns-over { position: fixed; inset: 0; z-index: 1002; background: rgba(var(--ns-primary-3-rgb),.97); backdrop-filter: blur(10px); display: none; flex-direction: column; font-family: var(--ns-sans); color: #fff; }
#ns-over.open { display: flex; animation: nsFade .25s ease both; }
#ns-over header { flex: none; display: flex; align-items: center; gap: 20px; padding: 22px 40px; }
#ns-over header b { font-size: 22px; font-weight: 800; }
#ns-over header .tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.07); }
#ns-over header .tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.75); font: 700 14px var(--ns-sans); cursor: pointer; }
#ns-over header .tabs button.on { background: var(--ns-accent); color: var(--ns-primary); }
#ns-over header .x { margin-left: auto; height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: 700 14px var(--ns-sans); cursor: pointer; }
#ns-over .body { flex: 1; min-height: 0; overflow: auto; padding: 0 40px 40px; }
#ns-over h4 { margin: 22px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ns-accent); }
#ns-over .g { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 18px; }
#ns-over .t { border: 0; padding: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; font-family: var(--ns-sans); }
#ns-over .t .fr { width: 288px; height: 162px; border-radius: 12px; overflow: hidden; position: relative; background: var(--ns-paper); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; outline: 2px solid transparent; }
#ns-over .t:hover .fr { transform: translateY(-3px); outline-color: var(--ns-accent); }
#ns-over .t.cur .fr { outline: 3px solid var(--ns-accent); }
#ns-over .t .fr > div { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform: scale(.15); transform-origin: 0 0; pointer-events: none; }
#ns-over .t .fr .slide { visibility: visible !important; opacity: 1 !important; }
#ns-over .t span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 288px; }
#ns-over .t span em { font-style: normal; color: var(--ns-accent); font-weight: 700; margin-right: 6px; }

/* ---------- Base stage (authored decks; a retrofitted deck may already define these) ---------- */
html, body { height: 100%; margin: 0; overflow: hidden; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center center; }
.slide { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden; visibility: hidden; box-sizing: border-box; }
.slide.on { visibility: visible; }
#ns-assets { display: none; }
.ns-cover, .ns-div { background: radial-gradient(120% 140% at 85% 0%, var(--ns-primary-2) 0%, var(--ns-primary-3) 100%); }
.ns-body { position: absolute; inset: 0; box-sizing: border-box; }

/* ---------- Footer bar: full width, always in the same place, inside the stage so it scales with it ---------- */
#ns-foot, .ns-gfoot .mock { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 0 40px 5px 28px; background: rgba(255,255,255,.92); border-top: 1px solid var(--ns-line); font: 600 18px var(--ns-sans); color: var(--ns-muted); backdrop-filter: blur(8px); }
#ns-foot .l, .ns-gfoot .l { display: flex; align-items: center; gap: 16px; min-width: 0; }
#ns-foot .l b, .ns-gfoot .l b { color: var(--ns-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 16px; white-space: nowrap; }
#ns-foot .l i, .ns-gfoot .l i { width: 5px; height: 5px; border-radius: 50%; background: var(--ns-accent); flex: none; }
#ns-foot .l .s, .ns-gfoot .l .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ns-foot .r, .ns-gfoot .r { display: flex; align-items: center; gap: 10px; color: var(--ns-primary); }
#ns-foot .ph, .ns-gfoot .ph { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ns-accent-deep); margin-right: 10px; white-space: nowrap; }
#ns-foot button, .ns-gfoot button { height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 12px !important; background: transparent; color: var(--ns-primary); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 15px var(--ns-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .15s; }
#ns-foot button:hover { background: rgba(var(--ns-primary-rgb),.08); }
#ns-foot button svg, .ns-gfoot button svg { width: 24px; height: 24px; }
#ns-foot .menu, .ns-gfoot .menu { background: var(--ns-primary); color: #fff; padding: 0 18px 0 14px; }
#ns-foot .menu:hover { background: var(--ns-primary-2); }
#ns-foot .pager, .ns-gfoot .pager { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; margin: 0 6px; border-radius: 14px; background: rgba(var(--ns-primary-rgb),.06); }
#ns-foot .n, .ns-gfoot .n { min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ns-muted); font-weight: 600; }
#ns-foot .n b, .ns-gfoot .n b { color: var(--ns-primary); }
#ns-foot .logo, .ns-gfoot .logo { display: block; width: 150px; height: 26px; margin-left: 14px; background: var(--ns-primary); -webkit-mask: var(--ns-logo) right center / contain no-repeat; mask: var(--ns-logo) right center / contain no-repeat; }
#stage.ns-dark #ns-foot { background: rgba(var(--ns-primary-3-rgb),.55); border-top-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
#stage.ns-dark #ns-foot .l b, #stage.ns-dark #ns-foot .r, #stage.ns-dark #ns-foot button, #stage.ns-dark #ns-foot .n b { color: #fff; }
#stage.ns-dark #ns-foot .n { color: rgba(255,255,255,.6); }
#stage.ns-dark #ns-foot .ph { color: var(--ns-accent); }
#stage.ns-dark #ns-foot .menu { background: var(--ns-accent); color: var(--ns-primary); }
#stage.ns-dark #ns-foot .pager { background: rgba(255,255,255,.08); }
#stage.ns-dark #ns-foot button:hover { background: rgba(255,255,255,.1); }
#stage.ns-dark #ns-foot .logo { background: #fff; }
#ns-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 41; display: flex; gap: 3px; pointer-events: none; }
#ns-prog div { flex: 1; background: rgba(var(--ns-primary-rgb),.08); position: relative; overflow: hidden; }
#ns-prog div i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ns-accent); transition: transform .5s var(--ns-ease); }
#stage.ns-dark #ns-prog div { background: rgba(255,255,255,.12); }

/* A slide kept as it was (flash report, picture) sits whole above the footer bar */
.ns-rawbody { position: absolute; inset: 0; transform-origin: 50% 0; transform: scale(.9407); }
.slide.ns-raw { background-color: var(--ns-paper) !important; }

/* ---------- Contents: phases across the top, sections and slides underneath, filling the page ---------- */
.ns-tocbody { padding: 196px 110px 84px; display: flex; flex-direction: column; }
.ns-toc2 { flex: 1; min-height: 0; display: grid; gap: 20px; }
.ns-tph { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; background: #fff; border: 1px solid var(--ns-line); box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); overflow: hidden; }
.ns-tph header { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 18px 24px 16px; background: var(--ns-primary); color: #fff; cursor: pointer; }
.ns-tph header b { flex: 1 0 100%; font-size: 30px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.ns-tph header span { font-size: 17px; font-weight: 700; color: var(--ns-accent); letter-spacing: .08em; text-transform: uppercase; }
.ns-tph header em { font-style: normal; font-size: 16px; color: rgba(255,255,255,.65); font-weight: 600; }
.ns-tph header:hover { background: var(--ns-primary-2); }
.ns-tph .cols { flex: 1; min-height: 0; display: grid; }
.ns-tph .col { padding: 14px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ns-tph .col + .col { border-left: 1px solid var(--ns-line); }
.ns-tph .sec { display: flex; flex-direction: column; }
.ns-tph button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 10px !important; font-family: var(--ns-sans); transition: background-color .15s; }
.ns-tph button:hover { background: rgba(var(--ns-accent-rgb),.18); }
.ns-tph .sh { padding: 8px 10px; font-size: 21px; font-weight: 800; color: var(--ns-primary); }
.ns-tph .sh i { font-style: normal; display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--ns-accent); color: var(--ns-primary); font-size: 16px; font-weight: 900; }
.ns-tph .it { padding: 5px 10px 5px 12px; font-size: 18px; font-weight: 500; color: var(--ns-ink); }
.ns-tph .it em { font-style: normal; min-width: 38px; text-align: right; color: var(--ns-muted); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Guide (slide 1) ---------- */
.ns-guide { padding: 196px 110px 84px; display: flex; flex-direction: column; gap: 26px; }
.ns-gfoot { flex: none; position: relative; height: 140px; }
.ns-gfoot .mock { position: absolute; left: 0; right: 0; bottom: 0; border: 1px solid var(--ns-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(var(--ns-primary-rgb),.08); pointer-events: none; }
.ns-gfoot .marks { position: absolute; left: 0; right: 0; top: 0; height: 86px; }
.ns-gfoot .marks span { position: absolute; left: 0; top: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--ns-accent); color: var(--ns-primary); font: 800 16px var(--ns-sans); display: grid; place-items: center; white-space: nowrap; }
.ns-gfoot .marks span::after { content: ''; position: absolute; left: 22px; top: 34px; width: 2px; height: 52px; background: var(--ns-accent); }
.ns-gfoot .marks span.low { top: 42px; }
.ns-gfoot .marks span.low::after { height: 12px; }
.ns-gcards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ns-gcard { position: relative; display: flex; flex-direction: column; padding: 22px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--ns-line); box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); }
.ns-gcard i { font-style: normal; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ns-primary); color: #fff; font-size: 24px; font-weight: 900; }
.ns-gcard h3 { margin-top: 12px; font-size: 29px; font-weight: 800; letter-spacing: -.015em; color: var(--ns-primary); }
.ns-gcard p { margin-top: 8px; font-size: 21px; line-height: 1.45; color: var(--ns-ink); }
.ns-gcard .keys { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }
.ns-gcard kbd { min-width: 46px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ns-paper); border: 1px solid var(--ns-line); border-bottom-width: 3px; color: var(--ns-primary); font: 800 17px var(--ns-sans); }

/* ---------- Kit for authored slides: the body fills the zone between header and footer ---------- */
.ns-body.kit { display: flex; flex-direction: column; gap: 24px; padding: 196px 110px 84px; }
.ns-body > .grow, .grow { flex: 1; min-height: 0; }
.ns-row { display: flex; gap: 24px; min-height: 0; }
.ns-row > * { flex: 1; min-width: 0; }
.ns-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; flex: none; }
.ns-stat { border: 1px solid var(--ns-line); border-left: 6px solid var(--ns-accent); border-radius: 18px; background: #fff; padding: 22px 28px; box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); }
.ns-stat b { display: block; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ns-primary); }
.ns-stat span { display: block; margin-top: 10px; font-size: 20px; color: var(--ns-muted); font-weight: 500; }
.ns-panel { display: flex; flex-direction: column; min-height: 0; }
.ns-cardhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--ns-line); }
.ns-cardhead h3 { font-size: 22px; font-weight: 800; color: var(--ns-primary); }
.ns-cardbody { flex: 1; min-height: 0; padding: 18px 24px; display: flex; flex-direction: column; }
.ns-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ns-paper); border: 1px solid var(--ns-line); }
.ns-toggle button { height: 32px; padding: 0 16px; border: 0; background: transparent; color: var(--ns-primary); font: 700 16px var(--ns-sans); border-radius: 999px !important; cursor: pointer; }
.ns-toggle button.on { background: var(--ns-primary); color: #fff; }
.ns-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ns-view[hidden] { display: none !important; }
.chart { position: relative; flex: 1; min-height: 0; }
.chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart text { font-size: 18px; fill: var(--ns-muted); }
.chart text.val { font-size: 19px; font-weight: 700; fill: var(--ns-primary); }
.ns-table-wrap { flex: 1; min-height: 0; overflow: auto; }
.ns-table { width: 100%; height: 100%; font-size: 21px; }
.ns-table th { position: sticky; top: 0; background: var(--ns-primary); color: #fff; text-align: left; padding: 12px 18px; font-size: 18px; }
.ns-table td { padding: 10px 18px; color: var(--ns-ink); }
.ns-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Fill panel: takes the height left in the slide's main column; its chart draws to that size */
.ns-fillpanel { flex: 1 1 auto; min-height: 0; }
.ns-fillpanel .chart text { font-family: var(--ns-sans); }
.ns-legend { display: flex; gap: 22px; font-size: 17px; color: var(--ns-muted); font-weight: 600; }
.ns-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ns-legend i { width: 16px; height: 16px; border-radius: 4px; background: var(--ns-primary); }
.ns-legend i.soft { background: rgba(var(--ns-primary-rgb),.22); }
.ns-legend i.accent { background: var(--ns-accent); }
.ns-legend i.line { height: 0; border-top: 3px dashed var(--ns-accent-deep); background: none; border-radius: 0; width: 26px; }
.ns-fillrow { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.ns-fillrow > .ns-fillpanel { flex: 1 1 0; }
#ns-foot .logo-img { height: 26px; width: auto; margin-left: 14px; }
#stage.ns-dark #ns-foot .logo-img { filter: brightness(0) invert(1); }
.ns-gfoot .logo-img { height: 26px; width: auto; margin-left: 14px; }

/* Full window: slides stay 1920 wide and centred in a stage as wide as the window; photo slides bleed */
#stage { background: var(--ns-paper); }
#stage > .slide { left: var(--ox, 0px); right: auto; width: 1920px; }
#stage > .slide.ns-dark-slide { overflow: visible; }
#stage > .slide .ns-cover, #stage > .slide .ns-div { left: calc(-1 * var(--ox, 0px)); right: calc(-1 * var(--ox, 0px)); }
#stage > .slide:not(.on) { pointer-events: none; }

/* Designed opener field (no photo): brand blues, a warm accent glow, a rhythm of tall panels */
.ns-art { position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(42% 60% at var(--gx) var(--gy), rgba(var(--ns-accent-rgb), .30) 0%, rgba(var(--ns-accent-rgb), 0) 70%),
    radial-gradient(55% 75% at var(--bx) var(--by), rgba(var(--ns-hue-rgb), .70) 0%, rgba(var(--ns-hue-rgb), 0) 72%),
    radial-gradient(80% 90% at 30% 110%, rgba(var(--ns-hue-rgb), .35) 0%, rgba(var(--ns-hue-rgb), 0) 60%),
    linear-gradient(135deg, var(--ns-primary-3) 0%, var(--ns-primary) 48%, var(--ns-primary-2) 100%); }
.slide.ns-enter .ns-art { animation: nsArt 9s ease-out both; }
@keyframes nsArt { from { filter: brightness(.82) saturate(.9); } to { filter: none; } }
.ns-panels { position: absolute; inset: 0; left: var(--ox, 0px); right: var(--ox, 0px); }
.ns-panels i { position: absolute; width: 5.2%; border: 1.5px solid rgba(255,255,255,.10); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%); }
.slide.ns-enter .ns-panels i { animation: nsUp 1.2s var(--ns-ease) backwards; }
.slide.ns-enter .ns-panels i:nth-child(2) { animation-delay: .08s; } .slide.ns-enter .ns-panels i:nth-child(3) { animation-delay: .16s; }
.slide.ns-enter .ns-panels i:nth-child(4) { animation-delay: .24s; } .slide.ns-enter .ns-panels i:nth-child(5) { animation-delay: .32s; }
.ns-scrim.soft { background: linear-gradient(90deg, rgba(var(--ns-primary-3-rgb),.55) 0, rgba(var(--ns-primary-3-rgb),0) calc(var(--ox, 0px) + 1100px)); }

/* Slides as wide as the window (--sw, 1920 to 2496), centred beyond that */
#stage > .slide { width: var(--sw, 1920px); }

/* ---------- Flash report ---------- */
.ns-flash { gap: 18px; }
.ns-ftop { flex: none; display: flex; gap: 18px; align-items: stretch; }
.ns-tline { flex: 1; display: grid; gap: 4px; }
.ns-tline .ph { height: 30px; border-radius: 8px; display: grid; place-items: center; font: 800 14px var(--ns-sans); letter-spacing: .08em; text-transform: uppercase; background: rgba(var(--ns-primary-rgb), .07); color: var(--ns-muted); }
.ns-tline .ph.done { background: rgba(var(--ns-primary-rgb), .18); color: var(--ns-primary); }
.ns-tline .ph.now { background: var(--ns-primary); color: #fff; }
.ns-tline .wk { border-radius: 10px; padding: 8px 4px; text-align: center; background: #fff; border: 1px solid var(--ns-line); }
.ns-tline .wk b { display: block; font-size: 17px; font-weight: 800; color: var(--ns-primary); }
.ns-tline .wk span { display: block; font-size: 14px; color: var(--ns-muted); margin-top: 2px; }
.ns-tline .wk.done { background: rgba(var(--ns-primary-rgb), .08); }
.ns-tline .wk.now { background: var(--ns-accent); border-color: var(--ns-accent); box-shadow: 0 6px 18px rgba(var(--ns-accent-rgb), .45); }
.ns-tline .wk.now b, .ns-tline .wk.now span { color: var(--ns-primary); }
.ns-tline .wk.off { background: repeating-linear-gradient(135deg, var(--ns-paper) 0 8px, rgba(var(--ns-primary-rgb), .05) 8px 16px); }
.ns-tline .wk.off b, .ns-tline .wk.off span { color: var(--ns-muted); font-weight: 600; }
.ns-status { flex: none; width: 210px; border-radius: 16px; padding: 12px 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.ns-status small { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.ns-status b { font-size: 30px; font-weight: 900; text-transform: capitalize; line-height: 1.1; }
.ns-status span { font-size: 15px; font-weight: 600; opacity: .9; }
.ns-status.green { background: var(--ns-good); } .ns-status.amber { background: #B7791F; } .ns-status.red { background: var(--ns-bad); }
.ns-fkpis { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ns-fkpi { border-radius: 18px; background: #fff; border: 1px solid var(--ns-line); overflow: hidden; box-shadow: 0 1px 2px rgba(var(--ns-primary-rgb),.04), 0 10px 30px rgba(var(--ns-primary-rgb),.06); }
.ns-fkpi .hd { background: var(--ns-primary); color: #fff; padding: 10px 18px; }
.ns-fkpi .hd small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-accent); }
.ns-fkpi .hd b { display: block; font-size: 19px; font-weight: 800; }
.ns-fkpi .ld { padding: 10px 18px 0; font-size: 16px; font-weight: 700; color: var(--ns-muted); }
.ns-fkpi .cols { display: grid; grid-template-columns: .8fr .8fr 1.1fr 1.2fr; padding: 6px 18px 4px; }
.ns-fkpi .c span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ns-muted); }
.ns-fkpi .c b { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 800; color: var(--ns-muted); letter-spacing: -.02em; white-space: nowrap; }
.ns-fkpi .c.act b { color: var(--ns-primary); }
.ns-fkpi .ar { font-style: normal; font-size: 15px; }
.ns-fkpi .ar.good { color: var(--ns-good); } .ns-fkpi .ar.bad { color: var(--ns-bad); } .ns-fkpi .ar.warn { color: #B7791F; }
.ns-fkpi .nt { padding: 0 18px 10px; font-size: 14px; color: var(--ns-muted); }
.ns-flist .ns-cardbody { padding: 14px 22px; }
.ns-flist ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ns-flist li { font-size: 18px; line-height: 1.38; color: var(--ns-ink); }
.ns-flist li::marker { color: var(--ns-accent); }
.ns-flist ul.rk { list-style: none; padding-left: 0; }
.ns-flist .rk em { font-style: normal; display: inline-block; margin-right: 10px; padding: 1px 9px; border-radius: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; vertical-align: 2px; }
.ns-flist .rk em.bad { background: var(--ns-bad); } .ns-flist .rk em.warn { background: #B7791F; } .ns-flist .rk em.good { background: var(--ns-good); }
.ns-legend span { white-space: nowrap; }
.ns-cardhead { flex-wrap: wrap; row-gap: 6px; }
