/* Trial Studio - styled to match Epicflow itself (Ben, 16 Nov: "consistent with the Epicflow styling ...
   rather than a bolt-on"). Every value below is taken from Epicflow v2.93's own stylesheets or measured from
   its screen on subdomain-391 on 16 Nov 2026:
   - type: Epicflow's "Glow" faces are Open Sans (css/layout/fonts.css); the same files are bundled in ./fonts
     (Open Sans, Apache 2.0) so the studio does not depend on the instance for its type;
   - accent #5774e7 (links, selected tabs), text #4a4a4a, lines #dcdcdc, panels #f5f5f5, selected #eef1fe,
     #f6f7fe; status green #6ebc2c, amber #ffb400, red #ec4a43;
   - the navigation gradient, sampled from the sidebar: #4d5578 -> #434d75 -> #5c4e75 -> #685469. */

@font-face { font-family: "GlowRegular"; src: url(fonts/OpenSans-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "GlowSemibold"; src: url(fonts/OpenSans-Semibold.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "GlowBold"; src: url(fonts/OpenSans-Bold.ttf) format("truetype"); font-display: swap; }

:root {
  --ef-blue: #5774e7; --ef-blue-hover: #4a66d6; --ef-blue-soft: #eef1fe; --ef-blue-softer: #f6f7fe;
  --ef-text: #4a4a4a; --ef-muted: #808080; --ef-faint: #b6b6b6; --ef-line: #dcdcdc; --ef-panel: #f5f5f5;
  --ef-green: #6ebc2c; --ef-amber: #ffb400; --ef-red: #ec4a43;
  --ef-nav: linear-gradient(90deg, #434d75 0%, #4d5578 30%, #5c4e75 65%, #685469 100%);
  --font: "GlowRegular", "Open Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-semi: "GlowSemibold", "Open Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rail-l: 300px; --rail-r: 340px; --top: 50px; --banner: 0px;
  /* older names, kept so inline styles keep working */
  --ok: var(--ef-green); --warn: var(--ef-amber); --accent: var(--ef-blue); --brand: #434d75; --muted: var(--ef-muted);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ef-text); font: 13px/1.45 var(--font); }
body.has-banner { --banner: 34px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--ef-blue); outline-offset: 2px; }
b, strong, h1, h2, h3 { font-family: var(--font-semi); font-weight: normal; }

/* ── top bar: Epicflow's navigation gradient ───────────── */
.topbar { height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--ef-nav); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { height: 22px; display: block; }
.brand small { font-family: var(--font-semi); font-size: 12px; opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
.meter { display: flex; align-items: center; gap: 8px; margin-left: 6px; white-space: nowrap; font-size: 12px; opacity: .95; }
.meter .bar { width: 120px; height: 6px; background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; }
.meter .fill { height: 100%; width: 0; background: var(--ef-green); transition: width .4s; }
.topbar .spacer { flex: 1; }
.tb-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px;
  padding: 5px 12px; white-space: nowrap; font: 12px var(--font-semi); text-decoration: none; }
.tb-btn:hover { background: rgba(255,255,255,.12); }
.tb-btn[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.tb-btn.primary { background: #fff; color: var(--ef-blue); border-color: #fff; }
.tb-btn.primary:hover { background: var(--ef-blue-soft); }
.tb-menu { position: relative; }
.tb-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ef-text); border: 1px solid var(--ef-line);
  border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.14); min-width: 210px; z-index: 70; padding: 4px 0; }
.tb-menu .menu[hidden] { display: none; }
.tb-menu .menu a, .tb-menu .menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; background: none; border: 0; color: var(--ef-text); text-decoration: none; }
.tb-menu .menu a:hover, .tb-menu .menu button:hover { background: var(--ef-blue-soft); color: var(--ef-blue); }

/* ── trial countdown banner ───────────────────────────── */
.trial-banner { height: var(--banner); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px;
  color: #fff; font: 12px var(--font-semi); background: var(--ef-green); transition: background .4s; }
.trial-banner[hidden] { display: none; }
.trial-banner .tb-btn { padding: 2px 10px; border-color: rgba(255,255,255,.7); }
body.instance-full .trial-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 41; height: 22px; font-size: 11px; }
body.instance-full .trial-banner .tb-btn { display: none; }
.trial-banner.dark-text { color: var(--ef-text); }
.trial-banner.dark-text .tb-btn { color: var(--ef-text); border-color: rgba(74,74,74,.5); }
.trial-banner .short { display: none; }
body.instance-full .trial-banner .long { display: none; }
body.instance-full .trial-banner .short { display: inline; }
.trial-banner { white-space: nowrap; overflow: hidden; }
@media (max-width: 1200px) { .trial-banner .long { display: none; } .trial-banner .short { display: inline; } }

/* ── layout ──────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: var(--col-l, var(--rail-l)) 1fr var(--col-r, var(--rail-r)); height: calc(100% - var(--top) - var(--banner)); }
/* Panels hidden: the rails leave the grid entirely, so the stage must be the ONLY column (a '0 1fr 0'
   template put it in the zero-width first column and Epicflow vanished - Ben, 16 Nov). */
.layout[data-surround="off"] { grid-template-columns: 1fr; }
.layout[data-surround="off"] .rail { display: none; }
body.instance-full .topbar { display: none; }
body.instance-full .layout { height: 100vh; grid-template-columns: 1fr; }
body.instance-full.has-banner .layout { height: calc(100vh - 22px); margin-top: 22px; }
body.instance-full .rail { display: none; }
.rail { background: #fff; border-right: 1px solid var(--ef-line); overflow-y: auto; min-width: 0; }
.rail.right { border-right: 0; border-left: 1px solid var(--ef-line); display: flex; flex-direction: column; overflow: hidden; }
.rail h2 { font: 11px var(--font-semi); text-transform: uppercase; letter-spacing: .7px; color: var(--ef-muted); margin: 16px 16px 8px; }

/* ── steps ───────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0 8px 8px; }
.step { margin: 1px 0; }
.step > button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0;
  border-left: 3px solid transparent; padding: 8px 8px 8px 7px; border-radius: 0 4px 4px 0; color: var(--ef-text); font-size: 13px; }
.step > button:hover { background: var(--ef-panel); }
.step.active > button { background: var(--ef-blue-soft); border-left-color: var(--ef-blue); color: #2f3a5c; font-family: var(--font-semi); }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ef-faint); flex: none; display: grid; place-items: center;
  font: 10px var(--font-semi); color: var(--ef-muted); background: #fff; }
.step.done .dot { background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.step.next .dot { border-color: var(--ef-blue); color: var(--ef-blue); }
.step .tag { margin-left: auto; font-size: 11px; color: var(--ef-blue); }
.detail { padding: 4px 12px 12px 40px; }
.detail p.lede { margin: 0 0 6px; color: var(--ef-muted); }
.detail ul { margin: 0 0 8px; padding-left: 16px; }
.detail li { margin: 3px 0; }
.detail details.more { margin: 0 0 8px; font-size: 12.5px; }
.detail details.more summary { cursor: pointer; color: var(--accent); list-style-position: inside; }
.detail details.found summary { color: var(--ef-green); }
.detail details.more ul { margin: 6px 0 0; color: var(--ef-muted); }
.detail .found { font-size: 12px; color: var(--ef-green); margin: 4px 0 8px; }
.fe-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 4px;
  padding: 2px 12px 2px 6px; cursor: pointer; font-family: var(--font-semi); font-size: 13px; color: var(--ef-blue); white-space: nowrap; }
.fe-btn img { height: 30px; display: block; }
.fe-btn:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.fe-btn .fe-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.fe-btn .fe-txt b { font-family: var(--font-semi); font-weight: 600; font-size: 13px; color: var(--ef-blue); }
.fe-btn .fe-txt small { font-size: 11px; color: var(--ef-muted); }
.detail .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { border: 1px solid var(--ef-line); background: #fff; border-radius: 4px; padding: 5px 12px; color: var(--ef-text); font-family: var(--font-semi); text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ef-blue); color: var(--ef-blue); background: var(--ef-blue-softer); }
.btn.primary { background: var(--ef-blue); border-color: var(--ef-blue); color: #fff; }
.btn.primary:hover { background: var(--ef-blue-hover); color: #fff; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.money { margin: 4px 8px 0; border-top: 1px solid var(--ef-line); padding-top: 6px; }
.money-head { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; background: none; border: 0;
  padding: 8px; text-align: left; font-family: var(--font-semi); color: var(--ef-text); cursor: pointer; border-radius: 4px; }
.money-head:hover { background: var(--ef-panel); }
.money-head .dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ef-faint); display: grid; place-items: center; font-size: 11px; }
.money.gaps .money-head .dot { background: var(--warn); border-color: var(--warn); color: #fff; }
.money.ready .money-head .dot { background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.money-head .tag { font-size: 11px; color: #9a6c00; }
.money.ready .money-head .tag { color: var(--ef-green); }
.money-body { padding: 0 8px 8px 38px; font-size: 13px; }
.money-body .lede { color: var(--ef-muted); margin: 0 0 8px; }
.gap { border-left: 3px solid var(--warn); background: rgba(245,166,35,.08); padding: 6px 8px; margin: 0 0 8px; border-radius: 3px; }
.gap.ok { border-left-color: var(--ef-green); background: none; padding: 2px 8px; }
.gap .t { font-family: var(--font-semi); }
.gap .w { color: var(--ef-muted); font-size: 12px; margin: 2px 0 6px; }
.gap .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status-line { font-size: 12px; color: var(--ef-muted); padding: 8px 16px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--ef-blue); padding: 0; font-size: 12px; }

/* ── stage ───────────────────────────────────────────── */
.stage { position: relative; min-width: 0; background: #fff; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(67,77,117,.92); color: #fff;
  padding: 7px 12px; border-radius: 4px; font-size: 12px; pointer-events: none; }
.stage .hint[hidden] { display: none; }
.restore { display: none; position: fixed; right: 14px; bottom: 14px; z-index: 40; }
body.instance-full .restore, .layout[data-surround="off"] ~ .restore { display: block; }
.restore.tb-btn.primary { box-shadow: 0 4px 14px rgba(0,0,0,.18); border-color: var(--ef-blue); }

/* ── right rail: videos + coach ──────────────────────── */
.videos { padding-bottom: 6px; border-bottom: 1px solid var(--ef-line); flex: none; max-height: 44%; overflow-y: auto; }
.screen-note { margin: 0 16px 6px; font-size: 12px; color: var(--ef-muted); }
.vcard { display: flex; gap: 10px; align-items: center; width: calc(100% - 16px); margin: 4px 8px; padding: 8px; border: 1px solid var(--ef-line);
  border-radius: 4px; background: #fff; text-align: left; color: var(--ef-text); }
.vcard:hover { border-color: var(--ef-blue); background: var(--ef-blue-softer); }
.vcard .play { width: 28px; height: 28px; border-radius: 50%; background: var(--ef-blue); color: #fff; flex: none; display: grid; place-items: center; font-size: 10px; }
.vcard .t { font-family: var(--font-semi); font-size: 13px; }
.vcard .d { font-size: 11px; color: var(--ef-muted); }
.vcard.watched .play { background: var(--ef-green); }
.vcard.deep .play { background: #5c4e75; }

.coach { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.log { flex: 1; overflow-y: auto; padding: 4px 12px 8px; }
.msg { margin: 8px 0; padding: 8px 10px; border-radius: 4px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--ef-blue-softer); border: 1px solid #e7ebfb; }
.msg.me { background: var(--ef-blue-soft); margin-left: 28px; }
.msg p.para { margin: 0 0 4px; white-space: normal; }
.msg ul.steps, .msg ol.steps { margin: 4px 0 6px; padding-left: 18px; white-space: normal; }
.msg ul.steps li, .msg ol.steps li { margin: 3px 0; }
.step-link { all: unset; cursor: pointer; border-bottom: 1px dashed var(--ef-blue); }
.step-link:hover, .step-link:focus-visible { color: var(--ef-blue); }
.step-link::after { content: ' \25B8'; color: var(--ef-blue); font-size: 11px; }
.msg .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; white-space: normal; }
.chip { border: 1px solid var(--ef-line); background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; color: var(--ef-text); }
.chip:hover { border-color: var(--ef-blue); color: var(--ef-blue); background: var(--ef-blue-softer); }
.msg form { margin-top: 8px; display: grid; gap: 6px; white-space: normal; }
.msg label { font-size: 12px; color: var(--ef-muted); display: grid; gap: 3px; }
.msg input, .msg select, .msg textarea, .ask input, .modal input, .modal textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--ef-line); border-radius: 4px; width: 100%; background: #fff; }
.msg input:focus, .ask input:focus, .modal input:focus, .modal textarea:focus { border-color: var(--ef-blue); outline: none; }
.msg textarea { min-height: 70px; resize: vertical; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px; border-top: 1px solid var(--ef-line); }
.ask { display: flex; gap: 6px; padding: 8px 12px 12px; }
.ask input { flex: 1; }

/* ── video player: centred or floating ───────────────── */
.player { position: fixed; z-index: 50; background: #1d2030; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.player[hidden] { display: none; }
.player.centred { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(960px, 86vw); height: min(590px, 80vh); }
.player.floating { width: 440px; height: 290px; right: 24px; bottom: 24px; resize: both; min-width: 280px; min-height: 190px; }
.player .ph { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--ef-nav); color: #fff; cursor: default; user-select: none; }
.player.floating .ph { cursor: move; }
.player .ph .pt { flex: 1; font: 13px var(--font-semi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .ph button { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 4px; padding: 3px 9px; font: 12px var(--font-semi); }
.player .ph button:hover { background: rgba(255,255,255,.12); }
.player .pb { flex: 1; position: relative; }
.player .pb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.backdrop { position: fixed; inset: 0; background: rgba(35,38,46,.45); z-index: 45; }
.backdrop[hidden] { display: none; }
body.dragging iframe { pointer-events: none; }

/* ── modal (pricing and features, email an expert) ───── */
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 55; background: #fff; border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.3); width: min(980px, 92vw); max-height: 86vh; display: flex; flex-direction: column; }
.modal[hidden] { display: none; }
.modal .mh { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ef-line); }
.modal .mh h3 { margin: 0; flex: 1; font-size: 16px; color: #2f3a5c; }
.modal .mh button { background: none; border: 0; font-size: 20px; color: var(--ef-muted); }
.modal .mb { padding: 16px 18px 20px; overflow-y: auto; }
.modal.narrow { width: min(520px, 92vw); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.plan { border: 1px solid var(--ef-line); border-radius: 6px; padding: 14px; position: relative; }
.plan.featured { border: 2px solid var(--ef-blue); background: var(--ef-blue-softer); }
.plan .badge { position: absolute; top: -10px; left: 14px; background: var(--ef-blue); color: #fff; font: 11px var(--font-semi); padding: 2px 8px; border-radius: 10px; }
.plan h4 { margin: 2px 0 6px; font: 15px var(--font-semi); color: #2f3a5c; }
.plan .price { font: 22px var(--font-semi); color: var(--ef-blue); }
.plan .price small { font: 12px var(--font); color: var(--ef-muted); }
.plan .sub { font-size: 12px; color: var(--ef-muted); margin: 4px 0 8px; }
.plan ul { margin: 0; padding-left: 16px; font-size: 12px; }
.compare { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare th { text-align: left; background: var(--ef-panel); font-family: var(--font-semi); padding: 7px 10px; border-bottom: 1px solid var(--ef-line); }
.compare th.c, .compare td.c { text-align: center; width: 120px; }
.compare td { padding: 6px 10px; border-bottom: 1px solid #ececec; vertical-align: top; }
.compare td .desc { color: var(--ef-muted); font-size: 11px; }
.compare tr.section td { background: #fafafa; font-family: var(--font-semi); color: #2f3a5c; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.yes { color: var(--ef-green); font-family: var(--font-semi); }
.no { color: var(--ef-faint); }
.fineprint { font-size: 12px; color: var(--ef-muted); margin-top: 14px; }
.fineprint p { margin: 4px 0; }
.modal .intro { margin: 0 0 16px; }
.plan .gap { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--ef-line); font-size: 12px; color: var(--ef-muted); }
.plan.plain { background: var(--ef-panel); border-color: var(--ef-panel); }
.compare th.trial { color: var(--ef-blue); }
.compare td.c .part { color: var(--ef-text); }
.modal .mactions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
/* Buy online (studio.js buildBuy) - Epicflow tokens only */
.buy { border: 1px solid var(--ef-blue); background: var(--ef-blue-softer); border-radius: 6px; padding: 14px 16px; margin-bottom: 18px; }
.buy h4 { margin: 0 0 4px; color: var(--ef-text); }
.buy .buy-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 8px; }
.modal .buy select, .modal .buy input[type=number] { width: auto; display: inline-block; font: inherit; color: var(--ef-text); border: 1px solid var(--ef-line); border-radius: 4px; padding: 5px 8px; background: #fff; }
.modal .buy input[type=number] { width: 90px; margin-left: 4px; }
.buy .buy-copy { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--ef-text); }
.buy .buy-copy input { width: auto; margin: 0; }
.buy .buy-seats { display: inline-flex; align-items: center; color: var(--ef-text); }
.buy .buy-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.buy .buy-counts { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.buy .buy-msg { margin: 8px 0 0; font-size: 13px; color: var(--ef-muted); min-height: 1em; }
.expert-form { display: grid; gap: 10px; }
.expert-form[hidden], #expertDone[hidden] { display: none; }
.expert-form label { display: grid; gap: 4px; font-size: 12px; color: var(--ef-muted); }
.expert-form label.check { display: flex; gap: 8px; align-items: center; color: var(--ef-text); }
.expert-form label.check input { width: auto; }
.modal select { font: inherit; padding: 6px 8px; border: 1px solid var(--ef-line); border-radius: 4px; width: 100%; background: #fff; }
.fe-err { color: var(--ef-red); margin: 0; font-size: 12px; }
.fe-err[hidden] { display: none; }
.preview-note { background: var(--ef-blue-softer); border: 1px solid #e7ebfb; border-radius: 4px; padding: 8px 10px; margin: 0 0 10px; }
.mail-preview { white-space: pre-wrap; font-size: 12px; border: 1px solid var(--ef-line); border-radius: 4px; padding: 10px; background: #fafafa; margin: 0; max-height: 46vh; overflow: auto; }

/* ── toast ───────────────────────────────────────────── */
.toast { position: fixed; left: 50%; top: calc(var(--top) + var(--banner) + 12px); transform: translateX(-50%); z-index: 60; background: var(--ef-green);
  color: #fff; padding: 9px 14px; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: 80vw; font-family: var(--font-semi); }
.toast[hidden] { display: none; }
.toast button { background: rgba(255,255,255,.22); border: 0; color: #fff; border-radius: 4px; padding: 3px 9px; }

/* step videos inside the left-hand step */
.step-videos { margin: 4px 0 8px; }
.step-videos .vcard { width: 100%; margin: 4px 0; padding: 6px; }
.step-videos .vcard .play { width: 24px; height: 24px; font-size: 9px; }

/* trial ended page */
body.ended { display: grid; place-items: center; background: var(--ef-panel); }
.ended-card { background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.08); max-width: 540px; overflow: hidden; }
.ended-head { background: var(--ef-nav); padding: 16px 32px; }
.ended-head img { height: 24px; display: block; }
.ended-body { padding: 24px 32px 30px; }
.ended-card h1 { font-size: 20px; color: #2f3a5c; margin: 0 0 8px; }
.ended-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) { :root { --rail-l: 250px; --rail-r: 290px; } .meter .bar { width: 70px; } .plans { grid-template-columns: 1fr; } }
/* Plan cards: 'Choose ...' leads into the buy box (studio.js choosePlan) */
.plan .choose { margin-top: 10px; }
.buy.picked { box-shadow: 0 0 0 3px var(--ef-blue-soft), 0 0 0 4px var(--ef-blue); transition: box-shadow .3s; }

.coach-head { display: flex; justify-content: space-between; align-items: baseline; }
.coach-head .linkish { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Path to level 6 in the top bar (FEMM, Ben 21 Nov: gamify the climb) */
.climb { position: relative; margin-left: 14px; }
.climb-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px; padding: 4px 12px 4px 14px; color: #fff; cursor: pointer; font: inherit; font-size: 12px; white-space: nowrap; }
.climb-btn:hover { background: rgba(255,255,255,.18); }
.climb-label { font-family: var(--font-semi); }
.climb-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.climb-steps li { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center;
  font-size: 10px; position: relative; margin-right: 10px; }
.climb-steps li:not(:last-child)::after { content: ''; position: absolute; left: 100%; top: 50%; width: 10px; height: 2px; background: rgba(255,255,255,.35); }
.climb-steps li.done { background: var(--ef-green); border-color: var(--ef-green); }
.climb-steps li.done:not(:last-child)::after { background: var(--ef-green); }
.climb-steps li.current { box-shadow: 0 0 0 3px rgba(110,188,44,.45); }
.climb-steps li.next { border-color: var(--ef-amber); color: var(--ef-amber); animation: climbPulse 1.8s ease-in-out infinite; }
.climb-steps li.partial { border-color: var(--ef-amber); color: var(--ef-amber); background: rgba(255,180,0,.22); animation: climbPulse 1.8s ease-in-out infinite; }
.climb-steps li.gap-after { margin-right: 18px; }
.climb-steps li.gap-after::after { width: 18px !important; background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px) !important; }
.climb-next { opacity: .9; }
.climb.top .climb-btn { border-color: var(--ef-green); }
.climb.levelled .climb-btn { animation: climbGlow 1s ease-in-out 3; }
@keyframes climbPulse { 50% { box-shadow: 0 0 0 4px rgba(255,180,0,.35); } }
@keyframes climbGlow { 50% { box-shadow: 0 0 0 6px rgba(110,188,44,.55); background: rgba(110,188,44,.35); } }
.climb-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 460px; max-height: 78vh; overflow: auto; background: #fff;
  color: var(--ef-text); border-radius: 6px; box-shadow: 0 10px 34px rgba(0,0,0,.25); padding: 14px 16px; font-size: 13px; }
.climb-panel h3 { margin: 0 0 6px; font-size: 15px; }
.climb-panel h4 { margin: 12px 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-muted); }
.climb-panel .lede, .climb-panel .note { color: var(--ef-muted); margin: 0 0 8px; }
.climb-panel .note { font-size: 11px; margin-top: 10px; }
.moves, .climb-list { list-style: none; margin: 0; padding: 0; }
.moves li, .climb-list li { padding: 7px 0; border-bottom: 1px solid var(--ef-line); }
.moves .h, .climb-list .h { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.moves .n, .climb-list .n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ef-faint); display: grid; place-items: center; font-size: 10px; }
.moves li.done .n, .climb-list li.done .n { background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.moves .t, .climb-list .t { font-family: var(--font-semi); }
.moves .m, .moves .soon, .moves .btn, .climb-list .m, .climb-list .g, .climb-list .need { margin-left: 30px; }
.moves .m, .climb-list .m { color: var(--ef-muted); margin-top: 2px; }
.moves .btn { margin-top: 6px; }
.moves .soon { margin-top: 4px; font-size: 12px; font-style: italic; color: #9a6c00; }
.climb-list .g { margin-top: 3px; }
.climb-list li.current .t { color: var(--ef-green); }
.climb-list .you { font-size: 11px; color: var(--ef-green); }
.climb-list li.later { opacity: .8; }
.climb-list li.divider { border: 0; padding: 10px 0 2px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #9a6c00; }
.climb-list .need { margin-top: 6px; border-left: 3px solid var(--warn); background: rgba(245,166,35,.08); padding: 6px 8px; border-radius: 3px; }
.climb-list .need ul { margin: 2px 0 4px; padding-left: 16px; }
.climb-list .need .w { color: var(--ef-muted); margin: 4px 0; }
.climb-list .reads a { margin-right: 10px; font-size: 12px; }
.climb-list .actions { margin-top: 6px; }
@media (max-width: 1500px) { .climb-label, .climb-next { display: none; } }

/* Move 2: upload the money (21 Nov) */
#moneyModal { width: min(760px, 94vw); }
#moneyModal .mb { max-height: 76vh; overflow: auto; padding: 14px 18px; font-size: 13px; }
.money-steps { padding-left: 18px; margin: 8px 0 12px; }
.money-steps li { margin: 0 0 10px; }
.money-steps li > div { margin-top: 6px; }
.money-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 12px; }
.money-table th, .money-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--ef-line); }
.money-table th { color: var(--ef-muted); font-weight: normal; }
#moneyPreview h4 { margin: 10px 0 4px; }

/* Move 3: PMO as a Service answers (21 Nov) */
#pmoModal { width: min(860px, 95vw); }
#pmoModal .mb { max-height: 80vh; overflow: auto; padding: 14px 18px; font-size: 13px; }
.pmo-predict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ef-muted); margin: 0 0 10px; }
.pmo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pmo-card { text-align: left; border: 1px solid var(--ef-line); border-radius: 6px; background: #fff; padding: 10px 12px; cursor: pointer; font: inherit; display: grid; gap: 4px; }
.pmo-card:hover, .pmo-card.on { border-color: var(--ef-blue); background: var(--ef-blue-softer); }
.pmo-card .lv { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-green); }
.pmo-card .q { font-family: var(--font-semi); }
.pmo-card .tt { font-size: 12px; color: var(--ef-muted); }
.pmo-card.soon { opacity: .75; }
.pmo-result h4.hl { font-size: 15px; margin: 6px 0; }
.pmo-result h4.need { color: #9a6c00; }
.pmo-result .fact { margin: 4px 0; }
.pmo-result .note { color: var(--ef-muted); font-size: 12px; margin: 6px 0 0; }
.pmo-result .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 22 Nov: a level with some of its rules already in place */
.climb-list li.partial .n { border-color: var(--ef-amber); color: var(--ef-amber); }
.climb-list .part { margin-left: 8px; font-size: 11px; font-weight: 600; color: #8a5a00; background: rgba(255,180,0,.18); border-radius: 10px; padding: 1px 8px; }
.moves li.partial .n { border-color: var(--ef-amber); color: #8a5a00; background: rgba(255,180,0,.18); }
.moves .part { margin-left: 8px; font-size: 11px; font-weight: 600; color: #8a5a00; background: rgba(255,180,0,.18); border-radius: 10px; padding: 1px 8px; }
.moves .left { font-size: 12.5px; color: #8a5a00; margin: 4px 0 6px 30px; }

/* 22 Nov: panels you can shrink, pop out, move and resize */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-head .pctl { display: inline-flex; gap: 4px; align-items: center; text-transform: none; letter-spacing: 0; }
.pbtn { border: 1px solid var(--ef-line); background: #fff; color: var(--ef-muted); border-radius: 6px; width: 24px; height: 22px;
  font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pbtn:hover, .pbtn.on { color: var(--ef-blue); border-color: var(--ef-blue); }
.fold-strip { display: none; }
.layout.gs-fold .rail.left > :not(.fold-strip), .layout.rr-fold .rail.right > :not(.fold-strip) { display: none; }
.layout.gs-fold .rail.left .fold-strip, .layout.rr-fold .rail.right .fold-strip { display: block; width: 34px; height: 100%; border: 0; background: #f6f7fb; color: var(--ef-muted); cursor: pointer;
  writing-mode: vertical-rl; font: 12px var(--font-semi); letter-spacing: .6px; text-transform: uppercase; padding: 14px 0; }
.fold-strip:hover { color: var(--ef-blue) !important; }
.layout.gs-pop .rail.left { border: 0; }
.layout.gs-pop #gsFold, .layout.rr-pop #rrFold { display: none; }
.layout.gs-pop .rail.left, .layout.rr-pop .rail.right { border: 0; }
.floating { position: fixed !important; z-index: 70; background: #fff; border: 1px solid var(--ef-line) !important; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20,30,60,.28); resize: both; overflow: auto; min-width: 240px; min-height: 180px; }
.floating > .panel-head { cursor: move; position: sticky; top: 0; background: #fff; z-index: 1; margin: 0; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--ef-line); user-select: none; }
.coach.floating { display: flex; flex-direction: column; overflow: hidden; }
.coach.floating .log { flex: 1; min-height: 0; }
body.dragging iframe { pointer-events: none; }
body.dragging { cursor: move; user-select: none; }

/* 22 Nov: tune your bonus and penalty terms */
.terms-card { border: 1px solid var(--ef-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.terms-card h4 { margin: 0 0 6px; font: 14px var(--font-semi); }
.terms-card .says { margin: 2px 0; }
.terms-card .used { color: var(--ef-muted); font-size: 12.5px; margin: 6px 0; }
.terms-card .warn { color: #8a5a00; background: rgba(255,180,0,.14); border-radius: 6px; padding: 6px 8px; font-size: 12.5px; }
.terms-form fieldset { border: 1px solid var(--ef-line); border-radius: 8px; margin: 10px 0; padding: 8px 12px 12px; }
.terms-form legend { font: 12px var(--font-semi); text-transform: uppercase; letter-spacing: .5px; color: var(--ef-muted); padding: 0 4px; }
.terms-form .chk { display: block; margin: 4px 0 8px; }
.terms-grid { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 8px 12px; }
.terms-grid label { display: flex; flex-direction: column; font-size: 12.5px; gap: 3px; }
.terms-grid input, .terms-grid select { padding: 5px 7px; border: 1px solid var(--ef-line); border-radius: 6px; font: inherit; }
.terms-grid small { color: var(--ef-muted); font-size: 11px; }
.terms-out .chg { border-left: 3px solid var(--ef-blue); padding: 4px 8px; margin: 6px 0; font-size: 13px; }
.terms-out .chg .from { color: var(--ef-muted); }
.terms-out .ok-line { border-left: 3px solid var(--ef-green); padding: 4px 8px; }
.tune-link { margin-top: 14px; font-size: 13px; }

/* 22 Nov (2): every block keeps its own column, so a popped-out side leaves a 0px column, never a hole Epicflow
   slides into; the panel buttons stay in view while the panel scrolls; videos and Epica pop out together. */
.rail.left { grid-column: 1; } .stage { grid-column: 2; } .rail.right { grid-column: 3; }
.layout[data-surround="off"] .stage, body.instance-full .stage { grid-column: 1 / -1; }
.rail > .panel-head { position: sticky; top: 0; z-index: 2; background: #fff; margin: 0; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--ef-line); }
.rail.right > .panel-head { flex: none; }
.rail.right.floating { display: flex; flex-direction: column; overflow: hidden; }
.rail.right.floating .videos { max-height: 40%; }

/* 22 Nov: wiki article for the screen */
.wiki-link { display: block; margin: 8px 16px 4px; font-size: 12.5px; color: var(--ef-blue); text-decoration: none; }
.wiki-link:hover { text-decoration: underline; }

/* 22 Nov: point at it */
body.pointing .stage { box-shadow: inset 0 0 0 3px #4f6bed; }
.point-chip { border-color: var(--ef-blue) !important; color: var(--ef-blue) !important; }

/* 22 Nov: what are the six levels? */
.climb { position: relative; display: flex; align-items: center; gap: 6px; }
.climb-info { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff;
  font: italic 700 13px Georgia, serif; cursor: pointer; display: grid; place-items: center; padding: 0; }
.climb-info:hover { background: rgba(255,255,255,.18); }
.levels-list { list-style: none; padding: 0; margin: 10px 0 14px; }
.levels-list li { padding: 7px 0; border-bottom: 1px solid var(--ef-line); }
.levels-list .h { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; }
.levels-list .n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ef-line); display: grid; place-items: center; font-size: 12px; }
.levels-list li.done .n { background: var(--ef-green); border-color: var(--ef-green); color: #fff; }
.levels-list li.next .n { border-color: var(--ef-amber); color: #8a5a00; }
.levels-list .t { font: 14px var(--font-semi); }
.levels-list .m { margin-left: 32px; color: var(--ef-muted); font-size: 13px; }
.levels-list .you { font-size: 11px; color: var(--ef-green); }
.levels-list li.divider { border-bottom: 0; padding: 10px 0 2px; font: 11px var(--font-semi); text-transform: uppercase; letter-spacing: .6px; color: var(--ef-muted); border-top: 1px dashed var(--ef-line); }
#levelsModal .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#levelsModal a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.climb[hidden] { display: none !important; }

/* 22 Nov novice review: start here, and a top bar that fits a laptop */
.start-here { margin: 10px 12px 6px; padding: 12px; border: 1px solid var(--ef-blue); border-radius: 10px; background: #f5f7ff; }
.start-here .sh-promise { margin: 0 0 10px; font: 14px var(--font-semi); color: var(--ef-ink, #2b2f45); }
.start-here .sh-actions { display: flex; flex-direction: column; gap: 6px; }
.start-here .sh-actions .btn { width: 100%; white-space: normal; text-align: left; }
.start-here .sh-or { margin: 8px 0 0; font-size: 12px; color: var(--ef-muted); }
.topbar { flex-wrap: nowrap; }   /* never overflow: hidden - it clips the ladder panel and the expert menu (novice review 2, 22 Nov) */
@media (max-width: 1750px) { .fe-btn .fe-txt small { display: none; } }
@media (max-width: 1700px) { .fe-btn .fe-txt { display: none; } .meter .bar { width: 60px; } .brand small { display: none; } }
@media (max-width: 1250px) { .climb-label { display: none; } } @media (max-width: 1400px) { .tb-btn { padding-left: 9px; padding-right: 9px; } }

/* novice review 2: one place to choose how to start */
.start-here:not([hidden]) ~ .steps > li:first-child .actions { display: none; }

/* the before-day-14 offer in the buy box (Ben, 22 Nov) */
.buy .offer { margin: 4px 0 10px; padding: 8px 10px; border-left: 3px solid var(--accent, #2f6fde); background: var(--panel-2, rgba(47,111,222,.06)); font-weight: 600; }

/* 22 Nov: ask by voice */
.ask .mic { display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; }
.ask .mic[hidden] { display: none; }
.ask .mic.listening { background: #d93025; border-color: #d93025; color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 48, 37, .45); } 50% { box-shadow: 0 0 0 6px rgba(217, 48, 37, 0); } }

/* 22 Nov: delete groups tick-list */
.del-groups { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.del-groups .tick { display: flex; align-items: center; gap: 6px; font-weight: normal; }
.del-groups .tick input { width: auto; }
.del-groups .muted { color: var(--ef-muted, #6b7280); }
.del-groups button { align-self: flex-start; margin-top: 6px; }

/* 22 Nov: minimise the videos, maximise Epica */
.videos-head { display: flex; align-items: center; gap: 6px; padding-right: 10px; }
.videos-head h2 { flex: 1; }
.videos-head .vcount { font-size: 12px; color: var(--ef-muted); }
.rail.right.videos-min .videos { max-height: none; overflow: hidden; padding-bottom: 0; }
.rail.right.videos-min .videos > :not(.videos-head) { display: none; }
.rail.right.videos-min .videos-head h2 { cursor: pointer; }
.coach-head .pctl { display: inline-flex; align-items: center; gap: 8px; }

/* 22 Nov: What-If result */
.whatif-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.whatif-table th, .whatif-table td { text-align: left; padding: 3px 4px; border-bottom: 1px solid var(--ef-line); }
.whatif-table tr.earlier td:last-child { color: var(--ef-green, #1e8e3e); font-weight: 600; }
.whatif-table tr.later td:last-child { color: #c5221f; font-weight: 600; }

/* 22 Nov: Show me - the pointer that drives Epicflow */
.showme-pointer { position: fixed; z-index: 2147483000; pointer-events: none; transform: translate(-4px, -2px); filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.showme-pointer::after { content: ''; position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(245,158,11,.45); opacity: 0; }
.showme-pointer.press::after { animation: showmePress .5s ease-out; }
@keyframes showmePress { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.showme-form { display: flex; gap: 6px; margin-top: 6px; }
.showme-form input { flex: 1; }
