/* ============================================================
   NASWP prototype — shared shell styles
   Screen content keeps the source's inline styles verbatim;
   this file covers the app shell, hover states (which the
   Claude Design runtime expressed as style-hover attributes),
   and the prototype view switcher.
   ============================================================ */

*{box-sizing:border-box}
html{background:#F6F4F0;height:100%}
/* In fullscreen the root element is painted directly, so body's background no
   longer propagates to the canvas — Chrome's default black shows at the edges
   unless the root paints it itself. */
:fullscreen{background:#F6F4F0}
html:fullscreen,body:fullscreen{width:100%;height:100%;margin:0}
::backdrop{background:#F6F4F0}
body{
  margin:0;background:#F6F4F0;min-height:100%;
  font-family:'Instrument Sans',sans-serif;color:#1F2422;
  -webkit-font-smoothing:antialiased;
}
a{color:#11605C;text-decoration:none;cursor:pointer}
a:hover{color:#0C4A47}
button{font-family:inherit}

::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#D8D3CA;border-radius:8px;border:2px solid #F6F4F0}
::-webkit-scrollbar-track{background:transparent}

@keyframes slideIn{from{transform:translateX(24px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ── hover / interaction states ─────────────────────────────── */
.h-card:hover{box-shadow:0 4px 14px rgba(28,35,33,.08)}
.h-card-soft:hover{box-shadow:0 4px 14px rgba(28,35,33,.07)}
.h-ghost:hover{border-color:#B9D6D1 !important;background:#EFF6F4 !important}
.h-primary:hover{background:#11605C !important}
.h-white:hover{background:#DBEBE8 !important}
.h-row:hover{background:#FAF8F5}
.h-tint:hover{background:#EFF6F4 !important}
.h-mint:hover{background:#DBEBE8 !important}
.h-sand:hover{background:#F1EEE8 !important}
.h-fade:hover{opacity:.85}
.h-nav:hover{color:#0C4A47 !important}
.h-navdark:hover{color:#fff !important}
.h-x:hover{color:#1F2422 !important}
input:focus,select:focus,textarea:focus{outline:none;border-color:#B9D6D1 !important}
[data-act]{cursor:pointer}

.screen-fade{animation:fadeIn .16s ease}

/* ── member portal shell ────────────────────────────────────── */
.mp-root{min-height:100vh;display:flex;flex-direction:column;background:#F6F4F0}
.mp-header{background:#fff;border-bottom:1px solid #E7E3DC;position:sticky;top:0;z-index:50}
.mp-headbar{max-width:1240px;margin:0 auto;padding:0 32px;height:64px;display:flex;align-items:center;gap:16px;min-width:0}
.mp-nav{display:flex;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.mp-nav::-webkit-scrollbar{display:none}
.mp-main{flex:1;width:100%;min-width:860px;max-width:1240px;margin:0 auto;padding:32px 32px 96px}

/* ── staff admin shell ──────────────────────────────────────── */
.sa-root{min-height:100vh;display:flex;background:#F6F4F0}
.sa-side{width:232px;flex:none;background:#10312F;color:#C8E0DC;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.sa-main{flex:1;min-width:860px;padding:28px 32px 96px;max-width:1220px}

/* ── mobile stage ───────────────────────────────────────────── */
.mob-stage{
  min-height:100vh;background:#EBE8E1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:14px;
}
.mob-scale{transform-origin:top center}

/* iOS device frame — ported from ios-frame.jsx (IOSDevice) */
.device{
  width:402px;height:874px;border-radius:48px;overflow:hidden;
  position:relative;background:#F2F2F7;
  box-shadow:0 40px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.12);
  font-family:-apple-system, system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  --ios-fg:#000;
}
.device.dark{background:#000;--ios-fg:#fff}
.island{
  position:absolute;top:11px;left:50%;transform:translateX(-50%);
  width:126px;height:37px;border-radius:24px;background:#000;z-index:50;
}
.statusbar{
  position:absolute;top:0;left:0;right:0;z-index:10;
  display:flex;gap:154px;align-items:center;justify-content:center;
  padding:21px 24px 19px;width:100%;
}
.statusbar-time{flex:1;height:22px;display:flex;align-items:center;justify-content:center;padding-top:1.5px}
.statusbar-time span{
  font-family:-apple-system,"SF Pro",system-ui;font-weight:590;
  font-size:17px;line-height:22px;color:var(--ios-fg);
}
.statusbar-icons{
  flex:1;height:22px;display:flex;align-items:center;justify-content:center;
  gap:7px;padding-top:1px;padding-right:1px;color:var(--ios-fg);
}
.statusbar-icons svg{fill:var(--ios-fg)}
.device-body{height:100%;display:flex;flex-direction:column}
.device-content{flex:1;overflow:auto}
.home-indicator{
  position:absolute;bottom:0;left:0;right:0;z-index:60;
  height:34px;display:flex;justify-content:center;align-items:flex-end;
  padding-bottom:8px;pointer-events:none;
}
.home-indicator > div{width:139px;height:5px;border-radius:100px;background:rgba(0,0,0,.25)}
.device.dark .home-indicator > div{background:rgba(255,255,255,.7)}

.mob-screen{height:100%;overflow-y:auto;background:#F6F4F0;font-family:'Instrument Sans',sans-serif;color:#1F2422}
.mob-screen--flex{overflow-y:visible;display:flex;flex-direction:column}
.mob-tabbar{
  position:absolute;bottom:0;left:0;right:0;z-index:40;
  background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-top:1px solid #E7E3DC;display:flex;padding:10px 8px 26px;
}
.mob-tab{flex:1;text-align:center;color:#98A19B;cursor:pointer}
.mob-tab.on{color:#0C4A47}
.mob-tab-ico{font-size:17px}
.mob-tab-lbl{font-size:9.5px;font-weight:600;margin-top:1px}
.mob-tab.on .mob-tab-lbl{font-weight:700}

/* ── self-driving demo mode ─────────────────────────────────── */
/* The narration bar reserves real space rather than overlaying the app:
   #app becomes a shorter "stage" that scrolls its own content.
   Deliberately NOT transformed — a transform would make the stage the
   containing block for position:fixed descendants, and those then scroll
   with the content instead of staying put. The slide-over panels are
   inset against the bar individually below. */
:root{--demo-bar:170px;--stage-h:100vh;--tour-rail:0px}
.demo-on{overflow:hidden}
.demo-on #app{
  position:fixed;top:var(--tour-rail);left:0;right:0;bottom:var(--demo-bar);
  overflow-y:auto;overflow-x:hidden;
  background:#F6F4F0;
}
/* vh units ignore CSS zoom, so the stage height comes from JS instead */
.demo-on .sa-root,.demo-on .mp-root,.demo-on .mob-stage{min-height:var(--stage-h)}
.demo-on .sa-side{height:var(--stage-h)}
/* every full-height overlay stops where the bar starts */
.slideover{position:fixed;inset:0;z-index:100}
.demo-on .ovl,
.demo-on .ask-wrap,
.demo-on .slideover{top:var(--tour-rail);bottom:var(--demo-bar)}
.demo-on .toast-layer{bottom:calc(var(--demo-bar) + 14px)}
.demo-on #switcher,.demo-on #switcher-restore{display:none}
/* handed over to a human: hide the tour bar, bring the page switcher back */
.demo-interactive .demo-bar{display:none}
.demo-interactive #switcher{display:flex}
.demo-interactive .demo-cursor,.demo-interactive .demo-spot{display:none}

.demo-cursor{
  position:fixed;top:0;left:0;z-index:2000;pointer-events:none;
  filter:drop-shadow(0 3px 7px rgba(16,49,47,.45));
}
/* The press shrink lives on the svg, never on .demo-cursor itself. The
   `scale` property composes with the `transform: translate()` that positions
   the cursor, so scaling this element scaled its position too — every click
   yanked the pointer ~160px toward the origin and back. */
.demo-cursor svg{
  display:block;
  transition:scale .12s ease;
  transform-origin:6px 3px;   /* the arrow tip */
}
.demo-cursor.down svg{scale:.82}
.demo-tv .demo-cursor svg{width:34px;height:34px}
.demo-ripple{
  position:absolute;top:-4px;left:-4px;width:34px;height:34px;border-radius:50%;
  border:2px solid #1E8A84;opacity:0;transform:scale(.4);
}
.demo-cursor.down .demo-ripple{animation:ripple .5s ease-out}
@keyframes ripple{
  0%{opacity:.85;transform:scale(.35)}
  100%{opacity:0;transform:scale(1.9)}
}

.demo-spot{
  position:fixed;z-index:1900;pointer-events:none;border-radius:14px;
  box-shadow:0 0 0 3px rgba(111,194,184,.95), 0 0 0 9999px rgba(10,20,19,.5);
  opacity:0;transition:opacity .28s ease;
}
.demo-spot.on{opacity:1}

/* Flush to the bottom and both edges. Separation from the dark admin
   sidebar comes from the near-black fill, the teal rule along the top,
   and the upward shadow — not from a gap. */
.demo-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:1950;
  background:#070F0E;
  box-shadow:0 -10px 34px rgba(0,0,0,.42);
  font-family:'Instrument Sans',sans-serif;
}
.demo-accent{
  position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#6FC2B8,#1E8A84 45%,#11605C 80%,#6FC2B8);
}
.demo-main{padding:15px 28px 17px}

.demo-meta{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.demo-num{
  font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:700;
  color:#04100F;background:#6FC2B8;border-radius:5px;padding:3px 7px;
  white-space:nowrap;flex:none;letter-spacing:.02em;
}
.demo-num i{font-style:normal;opacity:.55}
.demo-title{
  font-size:12px;font-weight:800;color:#6FC2B8;letter-spacing:.12em;
  text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none;
}
.demo-dots{display:flex;gap:4px;flex:1;min-width:40px;margin:0 4px}
.demo-dots span{
  height:3px;flex:1;border-radius:999px;background:rgba(255,255,255,.13);
  cursor:pointer;transition:background .2s;
}
.demo-dots span.done{background:rgba(111,194,184,.5)}
.demo-dots span.on{background:#6FC2B8}
.demo-dots span:hover{background:rgba(255,255,255,.45)}
.demo-ctrl{display:flex;gap:5px;flex:none}
.demo-ctrl button{
  width:30px;height:30px;border-radius:7px;border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.07);color:#9DBBB6;font-size:12px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:all .12s;
}
.demo-ctrl button:hover{background:rgba(255,255,255,.18);color:#fff}
.demo-ctrl .demo-play{background:#1E8A84;border-color:#2FA69F;color:#fff}

/* the sentence gets its own full-width line, in white */
.demo-say{
  font-size:19px;line-height:1.35;color:#fff;font-weight:500;
  letter-spacing:-.005em;opacity:0;transform:translateY(4px);
  /* reserve two lines so the bar keeps a constant height — otherwise the
     stage resizes mid-act and whatever was just scrolled into view moves */
  min-height:2.7em;
}
.demo-say.in{animation:sayIn .34s cubic-bezier(.22,1,.36,1) forwards}
.demo-say b{color:#6FC2B8}
@keyframes sayIn{to{opacity:1;transform:translateY(0)}}

.demo-progress{
  position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.07);
}
.demo-progress i{
  display:block;height:100%;width:0;background:linear-gradient(90deg,#1E8A84,#6FC2B8);
  transition:width .4s linear;
}

.demo-paused .demo-say,.demo-interactive .demo-say{color:#F0CE8B}
.demo-paused .demo-accent,.demo-interactive .demo-accent{
  background:linear-gradient(180deg,#F0CE8B,#D8A94E);
}
.demo-interactive .demo-cursor{display:none}
.demo-paused .demo-spot,.demo-interactive .demo-spot{opacity:.35}

/* TV: bigger type, readable across an aisle */
.demo-tv .demo-accent{height:4px}
.demo-tv .demo-main{padding:18px 36px 22px}
.demo-tv .demo-meta{gap:16px;margin-bottom:11px}
.demo-tv .demo-num{font-size:14px;padding:4px 9px}
.demo-tv .demo-title{font-size:14px;letter-spacing:.14em}
.demo-tv .demo-say{font-size:27px;line-height:1.3}
.demo-tv .demo-ctrl button{width:38px;height:38px;font-size:15px}
.demo-tv .demo-dots span{height:4px}
.demo-tv .demo-progress{height:4px}

/* the bar floats and auto-hides — no demo chrome for a passer-by */
.demo-bar{transform:translateY(110%);transition:transform .34s cubic-bezier(.22,1,.36,1)}
.demo-bar-on .demo-bar,.demo-paused .demo-bar{transform:translateY(0)}
.demo-interactive .demo-bar{transform:translateY(110%)}

/* the current claim stays on screen, small, while its proof plays */
.demo-chip{
  position:fixed;left:50%;transform:translate(-50%,8px);bottom:22px;z-index:1940;
  background:rgba(7,15,14,.9);border:1px solid rgba(111,194,184,.34);
  color:#fff;border-radius:999px;padding:11px 20px;
  font-family:'Instrument Sans',sans-serif;font-size:17px;font-weight:650;
  letter-spacing:-.005em;box-shadow:0 8px 24px rgba(0,0,0,.32);
  opacity:0;transform:translateY(8px);
  transition:opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.demo-chip.in{opacity:1;transform:translate(-50%,0)}
.demo-tv .demo-chip{font-size:23px;padding:14px 28px;bottom:30px}
.demo-interactive .demo-chip{display:none}

/* ── statement cards ────────────────────────────────────────── */
.demo-card{
  position:fixed;inset:0;z-index:2100;
  display:flex;align-items:center;justify-content:flex-start;
  background:linear-gradient(140deg,#0C4A47 0%,#10312F 55%,#071A19 100%);
  opacity:0;transition:opacity .42s ease;
}
.demo-card.in{opacity:1}
.demo-card.out{opacity:0;transition:opacity .4s ease}
.demo-card::after{
  content:'';position:absolute;right:-8%;top:-30%;
  width:60vw;height:160vh;border-radius:50%;
  border:90px solid rgba(111,194,184,.055);pointer-events:none;
}
.demo-card-inner{
  position:relative;max-width:1180px;padding:0 7vw;
}
.demo-card-kicker{
  font-family:'IBM Plex Mono',monospace;font-size:15px;font-weight:600;
  letter-spacing:.22em;color:#6FC2B8;margin-bottom:34px;
  opacity:0;transform:translateY(10px);
}
.demo-card-kicker i{font-style:normal;color:rgba(111,194,184,.45)}
.demo-card-q{
  font-size:74px;line-height:1.08;font-weight:700;color:#fff;
  letter-spacing:-.022em;max-width:15.5em;
  opacity:0;transform:translateY(18px);
}
.demo-card-s{
  margin-top:30px;font-size:28px;line-height:1.5;font-weight:400;
  color:#9CC4BF;max-width:30em;
  opacity:0;transform:translateY(14px);
}
.demo-card-url{
  margin-top:40px;font-family:'IBM Plex Mono',monospace;
  font-size:26px;color:#6FC2B8;letter-spacing:.02em;
  opacity:0;transform:translateY(14px);
}
.demo-card.in .demo-card-kicker{animation:cardIn .5s cubic-bezier(.22,1,.36,1) .08s forwards}
.demo-card.in .demo-card-q     {animation:cardIn .62s cubic-bezier(.22,1,.36,1) .16s forwards}
.demo-card.in .demo-card-s     {animation:cardIn .62s cubic-bezier(.22,1,.36,1) .42s forwards}
.demo-card.in .demo-card-url   {animation:cardIn .62s cubic-bezier(.22,1,.36,1) .62s forwards}
@keyframes cardIn{to{opacity:1;transform:translateY(0)}}
.demo-card--closer .demo-card-q{font-size:66px}
.demo-carding .demo-cursor{display:none}

/* TV: the card is the thing people read from across an aisle */
.demo-tv .demo-card-q{font-size:92px}
.demo-tv .demo-card-s{font-size:34px;margin-top:36px}
.demo-tv .demo-card-kicker{font-size:18px;margin-bottom:40px}
.demo-tv .demo-card-url{font-size:32px}
.demo-tv .demo-card--closer .demo-card-q{font-size:80px}

/* ── Ask your data ──────────────────────────────────────────── */
.sa-ask{
  width:100%;display:flex;align-items:center;gap:9px;
  background:linear-gradient(120deg,#1E8A84,#177571);color:#fff;
  border:1px solid rgba(255,255,255,.18);border-radius:9px;
  font-family:inherit;font-size:13px;font-weight:650;
  padding:10px 12px;cursor:pointer;transition:filter .14s;
}
.sa-ask:hover{filter:brightness(1.1)}
.sa-ask-spark{font-size:13px;opacity:.9}

.ask-wrap{position:fixed;inset:0;z-index:120}
.ask-scrim{position:absolute;inset:0;background:rgba(16,49,47,.34)}
.ask-panel{
  position:absolute;top:0;right:0;bottom:0;width:580px;max-width:94vw;
  background:#FAF8F5;display:flex;flex-direction:column;
  box-shadow:-16px 0 48px rgba(16,49,47,.24);animation:slideIn .24s cubic-bezier(.22,1,.36,1);
}
.ask-head{
  flex:none;display:flex;align-items:center;gap:11px;padding:17px 20px;
  background:#10312F;color:#fff;
}
.ask-spark{
  width:30px;height:30px;flex:none;border-radius:9px;
  background:linear-gradient(120deg,#1E8A84,#6FC2B8);
  display:flex;align-items:center;justify-content:center;font-size:14px;
}
.ask-title{font-size:15px;font-weight:700}
.ask-sub{font-size:11.5px;color:#7FA8A2;margin-top:2px}
.ask-x{background:none;border:none;color:#7FA8A2;font-size:15px;cursor:pointer;padding:4px}
.ask-x:hover{color:#fff}
.ask-body{flex:1;overflow-y:auto;padding:20px}
.ask-foot{
  flex:none;display:flex;gap:10px;align-items:center;
  padding:14px 20px;border-top:1px solid #EFECE6;background:#fff;
}
.ask-foot input{
  flex:1;font-family:inherit;font-size:13.5px;border:1px solid #E7E3DC;
  border-radius:999px;padding:11px 16px;outline:none;color:#1F2422;background:#fff;
}
.ask-send{
  width:38px;height:38px;flex:none;border-radius:50%;border:none;cursor:pointer;
  background:#0C4A47;color:#fff;font-size:15px;
}
.ask-send:hover{background:#11605C}

.ask-q{
  align-self:flex-end;max-width:86%;margin:0 0 14px auto;
  background:#0C4A47;color:#fff;font-size:13.5px;line-height:1.5;
  padding:11px 15px;border-radius:14px 14px 4px 14px;width:fit-content;
}
.ask-a{
  background:#fff;border:1px solid #E7E3DC;border-radius:14px;
  padding:16px 18px;margin-bottom:10px;
}
.ask-text{font-size:13.5px;line-height:1.6;color:#1F2422}
.ask-thinking{display:flex;align-items:center;gap:5px;font-size:12.5px;color:#98A19B}
.ask-thinking em{font-style:normal;margin-left:6px}
.ask-thinking span{
  width:6px;height:6px;border-radius:50%;background:#6FC2B8;
  animation:blink 1.1s infinite;
}
.ask-thinking span:nth-child(2){animation-delay:.18s}
.ask-thinking span:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}

.ask-bars{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.ask-bar{display:grid;grid-template-columns:130px 1fr 74px;gap:10px;align-items:center}
.ask-bar-label{font-size:12px;color:#68716C;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ask-bar-track{height:16px;background:#F3F0EA;border-radius:5px;overflow:hidden}
.ask-bar-fill{height:100%;border-radius:5px;animation:growBar .6s cubic-bezier(.22,1,.36,1)}
@keyframes growBar{from{width:0 !important}}
.ask-bar-value{font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:#1F2422;text-align:right;font-weight:600}

.ask-table{margin-top:14px;border:1px solid #E7E3DC;border-radius:10px;overflow:hidden}
.ask-tr{
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:8px;
  padding:9px 13px;font-size:12.5px;border-bottom:1px solid #F3F0EA;
}
.ask-tr:last-child{border-bottom:none}
.ask-th{
  background:#FAF8F5;font-size:10px;font-weight:700;color:#98A19B;letter-spacing:.05em;
}
.ask-src{
  margin-top:13px;padding-top:11px;border-top:1px solid #F3F0EA;
  font-size:11px;color:#98A19B;line-height:1.5;
}
.ask-draft{
  margin-top:14px;border:1.5px solid #B9D6D1;border-radius:11px;overflow:hidden;
}
.ask-draft-head{background:#EFF6F4;padding:9px 14px;font-size:11.5px;color:#11605C;font-weight:600}
.ask-draft-sub{padding:10px 14px 0;font-size:13px;font-weight:700}
.ask-draft-body{padding:8px 14px 14px;font-size:12.5px;line-height:1.65;color:#3A423E}

.ask-chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px}
.ask-chips--center{justify-content:center;margin-top:18px}
.ask-chips span{
  background:#fff;border:1px solid #CFE3DF;color:#11605C;
  font-size:12px;font-weight:600;border-radius:999px;padding:7px 13px;cursor:pointer;
}
.ask-chips span:hover{background:#EFF6F4}
.ask-empty{text-align:center;padding:44px 20px}
.ask-empty-mark{
  width:52px;height:52px;margin:0 auto 14px;border-radius:15px;
  background:linear-gradient(120deg,#1E8A84,#6FC2B8);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:22px;
}
.ask-empty-title{font-size:16px;font-weight:700}
.ask-empty-sub{font-size:13px;color:#68716C;margin-top:6px;line-height:1.55;max-width:340px;margin-left:auto;margin-right:auto}

/* ── feedback layer: toasts ─────────────────────────────────── */
.toast-layer{
  position:fixed;right:20px;bottom:20px;z-index:1200;
  display:flex;flex-direction:column;gap:10px;align-items:flex-end;
  pointer-events:none;
}
.toast{
  pointer-events:auto;display:flex;align-items:flex-start;gap:11px;
  min-width:300px;max-width:420px;
  background:#fff;border:1px solid #E7E3DC;border-radius:12px;
  padding:13px 14px 13px 16px;
  box-shadow:0 10px 30px rgba(28,35,33,.16), 0 2px 6px rgba(28,35,33,.06);
  opacity:0;transform:translateY(10px) scale(.98);
  transition:opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
.toast.in{opacity:1;transform:translateY(0) scale(1)}
.toast.out{opacity:0;transform:translateY(6px) scale(.98)}
.toast-dot{width:8px;height:8px;border-radius:50%;background:#1E8A84;flex:none;margin-top:5px}
.toast--warn .toast-dot{background:#D8A94E}
.toast--bad  .toast-dot{background:#C96B5D}
.toast--info .toast-dot{background:#3E5E82}
.toast-body{flex:1;min-width:0}
.toast-title{font-size:13.5px;font-weight:650;line-height:1.4;color:#1F2422}
.toast-detail{font-size:12px;color:#68716C;line-height:1.45;margin-top:3px}
.toast-action{
  flex:none;align-self:center;background:#EFF6F4;border:1px solid #CFE3DF;color:#0C4A47;
  font-size:12px;font-weight:650;border-radius:7px;padding:6px 11px;cursor:pointer;
}
.toast-action:hover{background:#DBEBE8}
.toast-x{
  flex:none;background:none;border:none;color:#C9C3B8;font-size:15px;
  line-height:1;padding:2px 0 0 2px;cursor:pointer;
}
.toast-x:hover{color:#68716C}

/* ── feedback layer: overlays ───────────────────────────────── */
.ovl{position:fixed;inset:0;z-index:1100}
.ovl-scrim{
  position:absolute;inset:0;background:rgba(31,36,34,.34);
  opacity:0;transition:opacity .2s ease;
}
.ovl.in .ovl-scrim{opacity:1}
.ovl-panel{
  position:absolute;background:#fff;display:flex;flex-direction:column;
  transition:transform .24s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.ovl-panel--drawer{
  top:0;right:0;bottom:0;width:520px;max-width:92vw;
  box-shadow:-14px 0 44px rgba(31,36,34,.2);
  transform:translateX(28px);opacity:0;
}
.ovl.in .ovl-panel--drawer{transform:translateX(0);opacity:1}
.ovl-panel--modal{
  top:50%;left:50%;width:560px;max-width:92vw;max-height:86vh;
  border-radius:16px;box-shadow:0 26px 70px rgba(31,36,34,.28);
  transform:translate(-50%,-46%);opacity:0;
}
.ovl.in .ovl-panel--modal{transform:translate(-50%,-50%);opacity:1}
.ovl-panel--wide{width:760px}
.ovl-head{
  display:flex;align-items:flex-start;gap:12px;
  padding:18px 22px;border-bottom:1px solid #EFECE6;flex:none;
}
.ovl-head-text{flex:1;min-width:0}
.ovl-title{font-size:16.5px;font-weight:700;line-height:1.3}
.ovl-sub{font-size:12.5px;color:#98A19B;margin-top:3px;line-height:1.45}
.ovl-x{background:none;border:none;font-size:15px;color:#98A19B;cursor:pointer;padding:4px;flex:none}
.ovl-body{flex:1;overflow-y:auto;padding:20px 22px}
.ovl-foot{
  flex:none;display:flex;gap:10px;align-items:center;justify-content:flex-end;
  padding:14px 22px;border-top:1px solid #EFECE6;background:#FAF8F5;
}

/* shared control styles used inside overlays */
.btn-primary{
  font-family:inherit;font-size:13px;font-weight:650;background:#0C4A47;color:#fff;
  border:none;border-radius:9px;padding:10px 18px;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
}
.btn-primary:hover{background:#11605C}
.btn-primary.is-pending{background:#3D6D6A;cursor:default}
.btn-primary.is-done{background:#166A4B}
.btn-ghost{
  font-family:inherit;font-size:13px;font-weight:600;background:#fff;color:#1F2422;
  border:1px solid #E7E3DC;border-radius:9px;padding:10px 16px;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
}
.btn-ghost:hover{border-color:#B9D6D1;background:#EFF6F4}
.btn-ghost.is-pending,.btn-ghost.is-done{color:#0C4A47;border-color:#B9D6D1;background:#EFF6F4}
.spin{
  width:12px;height:12px;flex:none;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:spin .6s linear infinite;
}
.btn-ghost .spin{border-color:rgba(12,74,71,.25);border-top-color:#0C4A47}
@keyframes spin{to{transform:rotate(360deg)}}

.cf-body{font-size:13.5px;line-height:1.6;color:#3A423E;margin-bottom:14px}
.cf-rows{border:1px solid #E7E3DC;border-radius:11px;overflow:hidden}
.cf-row{
  display:flex;justify-content:space-between;gap:16px;align-items:baseline;
  padding:11px 14px;font-size:13px;border-bottom:1px solid #F3F0EA;
}
.cf-row:last-child{border-bottom:none}
.cf-row span{color:#98A19B}
.cf-row strong{text-align:right}
.cf-note{
  margin-top:14px;background:#F7EEDD;color:#A96A1C;border-radius:9px;
  padding:11px 13px;font-size:12.5px;font-weight:600;line-height:1.5;
}

.fld{margin-bottom:13px}
.fld label{font-size:11.5px;font-weight:650;color:#68716C;display:block;margin-bottom:5px;letter-spacing:.02em}
.fld input,.fld select,.fld textarea{
  width:100%;font-family:inherit;font-size:13.5px;border:1px solid #E7E3DC;
  border-radius:9px;padding:10px 12px;color:#1F2422;background:#fff;
}
.fld textarea{min-height:120px;line-height:1.6;resize:vertical}
.fld-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.sk-wrap{display:flex;flex-direction:column;gap:10px}
.sk{
  height:13px;border-radius:6px;
  background:linear-gradient(90deg,#EFECE6 25%,#F7F5F1 50%,#EFECE6 75%);
  background-size:220% 100%;animation:shimmer 1.15s linear infinite;
}
@keyframes shimmer{from{background-position:220% 0}to{background-position:-20% 0}}

.flash{animation:flash 1.6s ease}
@keyframes flash{
  0%{background-color:#DBEBE8}
  70%{background-color:#EFF6F4}
  100%{background-color:transparent}
}

/* ── prototype view switcher ────────────────────────────────── */
.switcher{
  position:fixed;bottom:20px;left:50%;transform:translateX(-50%);
  z-index:900;display:flex;align-items:stretch;
  background:rgba(16,49,47,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.14);border-radius:14px;
  box-shadow:0 12px 32px rgba(16,49,47,.32);
  transition:opacity .18s ease, transform .18s ease;
}
.switcher.hidden{opacity:0;pointer-events:none;transform:translateX(-50%) translateY(12px)}
.switcher-inner{display:flex;align-items:center;gap:14px;padding:8px 8px 8px 16px}
.switcher-label{
  font-size:10px;font-weight:800;letter-spacing:.12em;color:#7FA8A2;
  text-transform:uppercase;white-space:nowrap;
}
.switcher-segs{display:flex;gap:3px;background:rgba(0,0,0,.22);border-radius:9px;padding:3px}
.seg{
  display:flex;align-items:center;gap:7px;
  font-size:12.5px;font-weight:600;color:#9DBBB6;
  background:transparent;border:none;border-radius:7px;
  padding:7px 13px;cursor:pointer;white-space:nowrap;transition:all .12s;
}
.seg:hover{color:#fff}
.seg.on{background:#fff;color:#0C4A47;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.seg-key{
  font-family:'IBM Plex Mono',monospace;font-size:9px;font-weight:600;
  border:1px solid currentColor;border-radius:4px;padding:1px 4px;opacity:.5;
}
.switcher-collapse{
  background:transparent;border:none;border-left:1px solid rgba(255,255,255,.12);
  color:#7FA8A2;font-size:16px;line-height:1;padding:0 12px;cursor:pointer;
  order:2;
}
.switcher-collapse:hover{color:#fff}
.switcher-tour{
  background:#1E8A84;border:1px solid #2FA69F;color:#fff;
  font-family:inherit;font-size:12px;font-weight:700;border-radius:8px;
  padding:7px 12px;margin-left:10px;cursor:pointer;white-space:nowrap;
}
.switcher-tour:hover{background:#25A29B}

.demo-info{
  position:fixed;left:14px;top:14px;z-index:2100;
  background:rgba(7,15,14,.94);color:#C8E0DC;border:1px solid rgba(111,194,184,.4);
  border-radius:10px;padding:12px 14px;font-family:'IBM Plex Mono',monospace;
  font-size:12px;line-height:1.6;pointer-events:none;white-space:nowrap;
}
.demo-info b{color:#6FC2B8}
.switcher-reset{
  background:transparent;border:none;color:#7FA8A2;font-size:14px;
  padding:0 4px 0 10px;cursor:pointer;line-height:1;
}
.switcher-reset:hover{color:#fff}
.switcher-restore{
  position:fixed;bottom:20px;left:50%;transform:translateX(-50%);
  z-index:899;display:none;
  background:rgba(16,49,47,.94);color:#9DBBB6;border:1px solid rgba(255,255,255,.14);
  border-radius:10px;padding:7px 12px;font-size:13px;cursor:pointer;
  box-shadow:0 8px 22px rgba(16,49,47,.28);
}
.switcher-restore.show{display:block}
.switcher-restore:hover{color:#fff}

/* ════════════════════════════════════════════════════════════════
   EMAILABLE TOUR — cover, player rail, caption, end card

   Layout model: the rail reserves --tour-rail at the top and the
   caption reserves --demo-bar at the bottom, so the product is
   never covered by either. Both heights are fixed rather than
   measured from content, so a two-line caption can't resize the
   stage mid-sentence and move a spotlight out from under itself.
   ════════════════════════════════════════════════════════════════ */
.tour-email.demo-on{--tour-rail:46px}

/* ── the cover: what this is, before anything moves ──────────── */
.tour-cover,.tour-end{
  position:fixed;inset:0;z-index:2400;
  display:flex;align-items:center;justify-content:flex-start;
  background:linear-gradient(140deg,#0C4A47 0%,#10312F 55%,#071A19 100%);
  font-family:'Instrument Sans',sans-serif;
  opacity:0;transition:opacity .42s ease;
}
.tour-cover.in,.tour-end.in{opacity:1}
.tour-cover.out,.tour-end.out{opacity:0;transition:opacity .4s ease}
.tour-cover::after,.tour-end::after{
  content:'';position:absolute;right:-8%;top:-30%;
  width:60vw;height:160vh;border-radius:50%;
  border:90px solid rgba(111,194,184,.055);pointer-events:none;
}
.tour-cover-inner,.tour-end-inner{position:relative;max-width:1120px;padding:0 7vw}

/* the organisation's full name, in the mono treatment the acronym used to have.
   Bigger, because on an emailed link this is the first thing that has to land. */
.tour-cover-org{
  font-family:'IBM Plex Mono',monospace;font-size:21px;font-weight:600;
  letter-spacing:.13em;color:#6FC2B8;margin-bottom:32px;
  line-height:1.45;max-width:24em;
}
.tour-cover-lede{
  margin:0;font-size:58px;line-height:1.1;font-weight:700;color:#fff;
  letter-spacing:-.022em;max-width:17em;
}
.tour-cover-blurb{
  margin:26px 0 0;font-size:21px;line-height:1.55;font-weight:400;
  color:#9CC4BF;max-width:35em;
}
.tour-cover-actions{display:flex;align-items:center;gap:22px;margin-top:40px;flex-wrap:wrap}

.tour-btn-go{
  display:inline-flex;align-items:center;gap:12px;
  background:#1E8A84;border:1px solid #2FA69F;border-radius:11px;
  color:#fff;font-family:inherit;font-size:19px;font-weight:650;
  padding:16px 26px;cursor:pointer;text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
  transition:filter .16s, transform .16s;
}
.tour-btn-go:hover{filter:brightness(1.1);transform:translateY(-1px)}
.tour-btn-play{font-size:14px;opacity:.9}
.tour-btn-go i{
  font-style:normal;font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;font-weight:500;letter-spacing:.08em;
  color:rgba(255,255,255,.62);padding-left:12px;margin-left:2px;
  border-left:1px solid rgba(255,255,255,.22);
}
.tour-btn-alt{
  background:none;border:none;color:#9CC4BF;font-family:inherit;
  font-size:17px;font-weight:600;cursor:pointer;padding:8px 2px;
  border-bottom:1px solid rgba(156,196,191,.3);transition:color .16s,border-color .16s;
}
.tour-btn-alt:hover{color:#fff;border-color:rgba(255,255,255,.6)}


/* ── the player rail ────────────────────────────────────────── */
.tour-rail{display:none}
.tour-email.demo-on .tour-rail{
  display:flex;align-items:center;gap:18px;
  position:fixed;top:0;left:0;right:0;height:46px;z-index:1960;
  background:#070F0E;padding:0 16px 0 14px;
  box-shadow:0 3px 16px rgba(0,0,0,.3);
  font-family:'Instrument Sans',sans-serif;
}
.tour-rail-segs{display:flex;align-items:stretch;gap:8px;flex:1;min-width:0;height:100%}
.tour-seg{
  flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px;
  background:none;border:none;padding:0;cursor:pointer;font-family:inherit;
}
.tour-seg-track{
  display:block;height:3px;border-radius:2px;
  background:rgba(255,255,255,.15);overflow:hidden;
}
.tour-seg-track i{
  display:block;height:100%;width:0;background:#6FC2B8;
  transition:width .5s cubic-bezier(.22,1,.36,1);
}
.tour-seg-label{
  display:block;font-size:11.5px;font-weight:600;letter-spacing:.01em;
  color:rgba(255,255,255,.42);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;text-align:left;transition:color .2s;
}
.tour-seg.done .tour-seg-label{color:rgba(255,255,255,.55)}
.tour-seg.on .tour-seg-label{color:#fff}
.tour-seg.done .tour-seg-track{background:rgba(111,194,184,.28)}
.tour-seg:hover .tour-seg-label{color:#fff}

.tour-rail-note{
  flex:none;font-size:11.5px;font-weight:500;color:rgba(255,255,255,.4);
  padding-right:4px;border-right:1px solid rgba(255,255,255,.14);
  white-space:nowrap;
}
.tour-rail-ctrl{display:flex;align-items:center;gap:7px;flex:none}
.tour-rail-ctrl button{
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.8);border-radius:7px;width:30px;height:30px;
  font-size:12px;cursor:pointer;font-family:inherit;
  display:flex;align-items:center;justify-content:center;transition:background .14s,color .14s;
}
.tour-rail-ctrl button:hover{background:rgba(255,255,255,.2);color:#fff}
.tour-rail-play{background:#1E8A84 !important;border-color:#2FA69F !important;color:#fff !important}
.tour-rail-out{
  width:auto !important;padding:0 13px;font-size:12px;font-weight:600;white-space:nowrap;
}

/* ── the caption: the same bar, restyled to be read ─────────── */
.tour-email .demo-bar{height:84px;transform:none !important;display:flex;align-items:center}
.tour-email .demo-meta,.tour-email .demo-progress{display:none}
.tour-email .demo-main{padding:0 34px;width:100%}
.tour-email .demo-say{
  font-size:19.5px;line-height:1.45;color:#EAF2F0;font-weight:400;
  min-height:0;max-width:none;
}
.tour-email .demo-say b{color:#6FC2B8}
/* a human took the wheel: keep the rail, swap the caption's tone.
   Bar mode only — in anchored mode there is no bar to bring back, and this
   rule used to out-rank .tour-call's hide and pop an empty strip up. */
.tour-email.demo-interactive:not(.tour-call) .demo-bar{display:flex}
.tour-email.demo-interactive #switcher{display:flex;bottom:calc(var(--demo-bar) + 16px)}
.tour-email.demo-interactive .demo-say{color:#F0CE8B}

/* ── the end card ───────────────────────────────────────────── */
.tour-end-title{
  margin:0;font-size:62px;line-height:1.08;font-weight:700;color:#fff;letter-spacing:-.022em;
}
.tour-end-body{
  margin:26px 0 0;font-size:22px;line-height:1.55;color:#9CC4BF;max-width:29em;
}
.tour-end-cta{
  margin-top:38px;padding:20px 24px;max-width:31em;
  background:rgba(111,194,184,.09);border:1px solid rgba(111,194,184,.26);
  border-radius:12px;font-size:19px;line-height:1.5;color:#EAF2F0;font-weight:600;
}
.tour-btn-go--link{margin-top:38px}
.tour-end-actions{display:flex;align-items:center;gap:24px;margin-top:36px;flex-wrap:wrap}

/* ── the persistent sample badge ────────────────────────────── */
/* shown whenever someone is in the product without the tour running —
   during the tour the rail carries the same line instead */
.sample-badge{
  position:fixed;top:12px;right:14px;z-index:1930;
  background:rgba(7,15,14,.9);border:1px solid rgba(111,194,184,.3);
  color:rgba(255,255,255,.82);border-radius:999px;padding:7px 15px;
  font-family:'Instrument Sans',sans-serif;font-size:12px;font-weight:600;
  letter-spacing:.005em;pointer-events:none;
  box-shadow:0 4px 16px rgba(0,0,0,.22);
}
.demo-on .sample-badge,
.tour-cover-on .sample-badge,
.tour-end-on .sample-badge{display:none}

/* the cover and end card own the screen — no other chrome */
.tour-cover-on #switcher,.tour-cover-on #switcher-restore,
.tour-end-on #switcher,.tour-end-on #switcher-restore{display:none}
.tour-cover-on .demo-cursor,.tour-end-on .demo-cursor{display:none}
.tour-cover-on{overflow:hidden}

/* ── narrower windows (email gets opened on laptops) ────────── */
/* six chapters on a 13" laptop leaves ~105px a segment — drop the label a
   step before it starts ellipsing */
@media (max-width:1400px){
  .tour-seg-label{font-size:10.5px}
  .tour-rail-note{font-size:10.5px}
}
@media (max-width:900px){
  .tour-cover-lede{font-size:42px}
  .tour-cover-blurb{font-size:18px}
  .tour-end-title{font-size:44px}
  .tour-end-body{font-size:19px}
  .tour-rail-note{display:none}
  .tour-seg-label{font-size:10.5px}
}

/* ── anchored callout (?caption=call) ───────────────────────── */
/* An alternative to the bottom caption strip: the sentence sits beside
   whatever is highlighted with a tip pointing at it, the way an in-app
   product tour works. placeCall() picks the first side with room, so the
   box never covers its own subject. */
.tour-call .demo-bar{display:none}
.demo-call{
  position:fixed;top:0;left:0;z-index:1945;
  background:#070F0E;border:1px solid rgba(111,194,184,.34);
  border-radius:13px;padding:16px 19px;
  box-shadow:0 16px 44px rgba(0,0,0,.45);
  font-family:'Instrument Sans',sans-serif;
  opacity:0;pointer-events:none;
  transition:opacity .26s ease, transform .34s cubic-bezier(.22,1,.36,1);
}
.demo-call.on{opacity:1}
.demo-call-text{
  font-size:16.5px;line-height:1.45;color:#EAF2F0;font-weight:450;
}
.demo-call-text b{color:#6FC2B8}
/* the tip — a rotated square tucked under the box edge */
.demo-call-tip{
  position:absolute;width:13px;height:13px;background:#070F0E;
  border:1px solid rgba(111,194,184,.34);transform:rotate(45deg);
}
.demo-call[data-side="left"]  .demo-call-tip{left:-7px;margin-top:-7px;border-right:none;border-top:none}
.demo-call[data-side="right"] .demo-call-tip{right:-7px;margin-top:-7px;border-left:none;border-bottom:none}
.demo-call[data-side="top"]   .demo-call-tip{top:-7px;margin-left:-7px;border-right:none;border-bottom:none}
.demo-call[data-side="bottom"] .demo-call-tip{bottom:-7px;margin-left:-7px;border-left:none;border-top:none}
/* floating variant: no target to point at, so no tip */
.demo-call[data-anchored="0"] .demo-call-tip{display:none}
.demo-call[data-anchored="0"]{
  text-align:center;padding:18px 26px;
  border-color:rgba(111,194,184,.24);
}
.demo-call[data-anchored="0"] .demo-call-text{font-size:18px}
/* on take-over the anchored box goes, but the floating "you have control"
   message must not — it is the only thing telling them how to resume */
.demo-interactive .demo-call[data-anchored="1"]{opacity:0}

/* ── "you clicked, but the tour is driving" hint ────────────── */
/* The emailed tour swallows stray clicks rather than handing over — losing
   the tour is worse than a click that does nothing — so it has to say why. */
.tour-hint{
  position:fixed;top:58px;left:50%;z-index:1970;
  transform:translate(-50%,-8px);
  background:rgba(7,15,14,.94);border:1px solid rgba(111,194,184,.34);
  color:#EAF2F0;border-radius:999px;padding:9px 18px;
  font-family:'Instrument Sans',sans-serif;font-size:13.5px;font-weight:550;
  box-shadow:0 8px 24px rgba(0,0,0,.34);
  opacity:0;pointer-events:none;
  transition:opacity .2s ease, transform .28s cubic-bezier(.22,1,.36,1);
}
.tour-hint.on{opacity:1;transform:translate(-50%,0)}
.tour-hint b{color:#6FC2B8;font-weight:700}

/* ── Next, in the callout ───────────────────────────────────── */
/* The emailed tour is stepped by the viewer. Mechanical beats (opening a
   menu, typing, pressing a button) play through on their own; only the
   explanatory ones stop and wait, and that is where this appears. */
/* Only hit-testable while actually shown. Left on, the hidden box parks near
   the foot of the stage and silently eats clicks on whatever is underneath —
   the view switcher lives exactly there. */
.demo-call{pointer-events:none}
.demo-call.on{pointer-events:auto}
.demo-call-next{
  display:none;margin-top:14px;
  align-items:center;gap:8px;
  background:#1E8A84;border:1px solid #2FA69F;border-radius:9px;
  color:#fff;font-family:'Instrument Sans',sans-serif;
  font-size:14px;font-weight:650;padding:9px 16px;cursor:pointer;
  transition:filter .14s, transform .14s;
}
.demo-call.has-next .demo-call-next{display:inline-flex}
.demo-call-next:hover{filter:brightness(1.12);transform:translateX(1px)}
.demo-call-next span{opacity:.85}
/* the floating variant centres its button like its text */
.demo-call[data-anchored="0"] .demo-call-next{margin-left:auto;margin-right:auto}
