/* Pest Solutions branding, ported from the Pest Insights Hub design tokens */
:root {
  --background: #f2f6f8; --foreground: #141b24; --card: #ffffff; --secondary: #ecf1f5; --muted: #eff2f5; --muted-foreground: #606a74;
  /* P.A.T.H orange is the default accent; a company's brand colour replaces these once it is set on the Branding page */
  --primary: #ee9916; --primary-foreground: #141b24; --accent: #f5b043; --destructive: #d01d21; --border: #dadfe3;
  --brand-navy: #020306; --brand-blue: #ee9916; --brand-blue-dark: #b56f0a; --logo-blue: #f7c46a;
  --gradient-brand: linear-gradient(160deg, #b56f0a, #ee9916 55%, #f5b043);
  --shadow-card: 0 12px 30px -18px rgba(3, 23, 44, 0.45);
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px; --radius-2xl: 16px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ok: #1f8f4e; --warn: #b35c00; --bad: #d01d21;
}
* { box-sizing: border-box; border-color: var(--border); }
html { background: var(--background); }
body { margin: 0; font-family: var(--font); color: var(--foreground); background: var(--background); font-size: 14px; line-height: 1.45; }

/* ---- Top bar ---- */
.topbar { background: var(--brand-navy); color: #fff; }
.topbar-inner { max-width: 1280px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px; }
.topbar .logo { height: 36px; width: auto; }
.topbar .app-name { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; letter-spacing: .02em; border-left: 1px solid rgba(255,255,255,.15); padding-left: 16px; white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; }
.topbar nav a { color: rgba(255,255,255,.7); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar nav a.icon { display: inline-flex; align-items: center; padding: 7px 8px; margin-left: 4px; }
.topbar nav a.icon svg { display: block; }
.topbar nav a.active { background: var(--primary); color: var(--primary-foreground); }
.rule { height: 4px; background: var(--primary); }
.badge.running { background: var(--primary); color: #fff; }
.jobs-table td { vertical-align: top; }
.session-box { margin-left: 12px; font-size: 12px; color: rgba(255,255,255,.7); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.session-box button { color: #fff; background: rgba(255,255,255,.12); border: none; border-radius: 6px; padding: 5px 9px; font-size: 12px; cursor: pointer; box-shadow: none; }
.session-box button:hover { background: rgba(255,255,255,.22); }
/* loading state: a spinner, never a blank page */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 40vh; color: var(--muted-foreground); font-size: 13px; }
.loading .spinner { width: 34px; height: 34px; border: 3px solid color-mix(in srgb, var(--primary) 18%, transparent); border-top-color: var(--primary); border-radius: 50%; animation: spin .9s linear infinite; }
body.signed-out .loading { min-height: 100vh; color: rgba(255,255,255,.7); }
body.signed-out .loading .spinner { border-color: rgba(255,255,255,.18); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
/* sign-in page (the app shell is hidden until a company is signed in) */
body.signed-out { background: var(--brand-navy); }
body.signed-out main { max-width: none; padding: 0; }
.login-page { min-height: 100vh; padding: 64px 24px 40px; background: radial-gradient(900px 520px at 50% -8%, #7a4a05 0%, var(--brand-navy) 62%); display: flex; flex-direction: column; align-items: center; color: #fff; }
.login-brand { text-align: center; margin-bottom: 30px; }
.login-soapbox { height: 66px; width: auto; display: block; margin: 0 auto 22px; }
.login-path { height: 32px; width: auto; display: block; margin: 0 auto 8px; opacity: .95; }
.login-strap { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.login-card { background: #fff; color: var(--foreground); border-radius: 14px; padding: 26px 28px 24px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0 0 2px; font-size: 20px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.login-card input { font-size: 15px; padding: 10px 12px; }
.login-card button[type=submit] { margin-top: 4px; padding: 11px 16px; font-size: 15px; }
.login-error { background: rgba(208,29,33,.08); color: var(--destructive); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.login-foot { margin-top: 30px; color: rgba(255,255,255,.4); font-size: 12px; letter-spacing: .06em; }
.sketch .sk-namecard .sk-logo-img { height: 2.4em; width: auto; max-width: 10em; flex: none; padding-right: 4%; border-right: 1px solid rgba(255,255,255,.4); }
.bg-preview { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.bg-preview img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.bg-preview span { font-size: 12px; }
.pills { display: flex; gap: 6px; }
.pill { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); white-space: nowrap; }
.pill.ok { color: #9fd3ff; background: color-mix(in srgb, var(--primary) 35%, transparent); } .pill.bad { color: #ffb4a8; }

/* ---- Layout ---- */
main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
h3 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-foreground); margin: 14px 0 6px; }
p.muted, .muted { color: var(--muted-foreground); }
a { color: var(--primary); }
.panel { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 18px 20px; margin-bottom: 16px; }
details.panel summary { cursor: pointer; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-review { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 18px; align-items: start; }

/* ---- Forms ---- */
label { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 5px; }
input[type=text], input[type=number], input[type=password], input[type=url], input[type=email], select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; background: #fff; color: var(--foreground); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 1px; border-color: var(--primary); }
textarea { resize: vertical; min-height: 60px; line-height: 1.45; }
.field { margin-bottom: 12px; }
button, .button { font: inherit; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--foreground); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: background .15s, opacity .15s; }
button:hover, .button:hover { background: var(--secondary); }
button.primary, .button.primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
button.primary:hover, .button.primary:hover { background: var(--primary); opacity: .9; }
button.danger { color: var(--destructive); }
button.small, .button.small { padding: 4px 9px; font-size: 12px; }
button:disabled { opacity: .5; cursor: default; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); background: var(--secondary); border-bottom: 1px solid var(--border); }
th:first-child { border-radius: var(--radius-md) 0 0 0; } th:last-child { border-radius: 0 var(--radius-md) 0 0; }
td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: rgba(236,241,245,.5); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--muted); color: var(--muted-foreground); white-space: nowrap; }
.badge.modules { background: #ffe3c2; color: #9a4b00; }
.badge.review { background: #fff4e0; color: #b35c00; } .badge.done { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); } .badge.failed { background: rgba(208,29,33,.1); color: var(--destructive); }
.badge.drafting, .badge.audio, .badge.video, .badge.queued, .badge.approved { background: rgba(47,138,220,.12); color: var(--brand-blue-dark); }
.badge.audio_ready { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

/* ---- Progress / logs / notices ---- */
.progress { height: 8px; background: var(--muted); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--gradient-brand); transition: width .4s; }
.log { background: var(--brand-navy); color: #cbd5e1; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; padding: 12px; border-radius: var(--radius-lg); max-height: 260px; overflow: auto; white-space: pre-wrap; }
.error { background: rgba(208,29,33,.08); color: #8a1418; padding: 10px 12px; border-radius: var(--radius-lg); margin: 10px 0; border-left: 3px solid var(--destructive); }
.notice { background: #fff4e0; color: #7a4a00; padding: 10px 12px; border-radius: var(--radius-lg); margin: 10px 0; border-left: 3px solid #e8a33d; }

/* ---- Script editor ---- */
.segment { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.segment.dirty { border-color: var(--primary); }
.segment.toolong { border-color: var(--destructive); background: #fff8f7; }
.segment .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted-foreground); }
.segment .meta { font-weight: 600; } .segment .meta.bad { color: var(--destructive); }
.segment textarea { border: none; padding: 4px 2px; min-height: 48px; font-size: 14px; }
.segment textarea:focus { outline: none; background: #f7fafd; }
.segment .sources { font-size: 11px; color: var(--muted-foreground); margin-top: 4px; }
.module-title { margin: 18px 0 8px; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-blue-dark); }

/* ---- Chat ---- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; position: sticky; top: 20px; }
.chat .messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.msg { padding: 9px 12px; border-radius: var(--radius-xl); max-width: 92%; white-space: pre-wrap; line-height: 1.45; }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; } .msg.assistant { background: var(--secondary); align-self: flex-start; }
.msg small { display: block; opacity: .75; font-size: 11px; margin-top: 4px; }
.chat form { display: flex; gap: 8px; margin-top: 8px; }
.chat textarea { min-height: 44px; }

/* ---- Media ---- */
.clip { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.clip .text { font-size: 13px; color: #344054; }
audio { height: 32px; }
video { width: 100%; max-height: 560px; background: #000; border-radius: var(--radius-lg); }

/* ---- Misc ---- */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--brand-navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-lg); z-index: 10; max-width: 420px; box-shadow: var(--shadow-card); }
.toast.bad { background: var(--destructive); }
.loading { color: var(--muted-foreground); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 14px; font-size: 13px; }
.kv b { color: var(--muted-foreground); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.doclist td.name { max-width: 420px; word-break: break-word; }
.inline { display: inline; width: auto; }
code { background: var(--muted); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (max-width: 900px) { .grid2, .grid-review { grid-template-columns: 1fr; } .topbar .path-logo { display: none; } .topbar nav a { padding: 8px 8px; } }
.segment.focused { outline: 2px solid var(--accent); outline-offset: 1px; }
.segment.changed { animation: flash 4s ease-out; }
@keyframes flash { 0% { background: #fff4c2; } 100% { background: #fff; } }
.seg-focus { padding: 1px 7px; font-size: 11px; }
.course-head .muted { line-height: 1.6; }
details.panel { padding: 14px 20px; }
.mini-chat { margin-top: 8px; padding: 10px; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: #f4f9ff; }
.mini-quote { font-size: 12px; color: var(--brand-blue-dark); font-style: italic; margin-bottom: 6px; }
.mini-reply { font-size: 13px; margin-bottom: 8px; white-space: pre-wrap; }
.mini-chat input[type=text] { padding: 6px 8px; }
.seg-audio { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.seg-audio audio { flex: 1; min-width: 200px; height: 30px; }

/* plus button between script sections */
.seg-gap { display: flex; align-items: center; gap: 8px; margin: -4px 0 6px; opacity: .45; transition: opacity .15s; }
.seg-gap:hover { opacity: 1; }
.seg-gap::before, .seg-gap::after { content: ""; flex: 1; border-top: 1px dashed var(--border); }
.seg-gap button.gap-add { width: 26px; height: 26px; border-radius: 50%; padding: 0; font-size: 17px; line-height: 1; }
/* video generating page */
.panel.generating { text-align: center; padding: 40px 24px; }
.spinner { width: 42px; height: 42px; margin: 0 auto; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
a.button, label.button { display: inline-block; text-decoration: none; } label.button { text-transform: none; letter-spacing: 0; font-size: inherit; margin: 0; }

/* storyboard: segments down the left, each sketch spanning the segments it covers */
.storyboard { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 10px 16px; align-items: stretch; margin-top: 10px; }
.sb-seg { grid-column: 1; border-left: 3px solid var(--border); padding: 4px 10px; font-size: 12px; min-width: 0; }
.sb-seg .sb-head { margin-bottom: 3px; }
.sb-seg .sb-text { color: var(--muted-foreground); line-height: 1.4; }
/* narration edited after its slide was made: orange until the slide is edited or confirmed */
.sb-seg.changed { border-left-color: #f0a33a; background: #fff7e8; border-radius: 0 6px 6px 0; }
.sb-seg.changed .sb-text { color: #7a4a05; }
.slide-card.stale { outline: 2px solid #f0a33a; outline-offset: 2px; }
.sb-slide { grid-column: 2; min-width: 0; }
.sb-slide .slide-card { height: 100%; box-sizing: border-box; }
.sb-none { grid-column: 2; border: 1px dashed var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted-foreground); font-size: 12px; min-height: 56px; }

/* talk to a slide */
.sk-hint { font-size: 11px; margin: 6px 0 -2px; }
.slide-chat { margin-top: 10px; padding: 10px; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: #f4f9ff; }
.slide-chat .messages { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; margin-bottom: 8px; font-size: 13px; }
.slide-chat .msg { padding: 6px 10px; }
.slide-chat .msg.thinking { opacity: .6; font-style: italic; }
.slide-chat form input { flex: 1; padding: 6px 8px; }
button.small.active { background: var(--secondary); border-color: var(--primary); }

/* ---------- stage stepper ---------- */
.stepper { list-style: none; display: flex; margin: 0 0 22px; padding: 14px 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.04)); overflow-x: auto; }
.stepper .step { flex: 1; position: relative; min-width: 96px; text-align: center; }
.stepper .step a, .stepper .step .step-link { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--muted-foreground); font-size: 12px; font-weight: 500; }
.stepper .step.blocked { opacity: .5; }
.stepper .step.blocked .step-link { cursor: not-allowed; }
.stepper .step::before, .stepper .step::after { content: ""; position: absolute; top: 15px; height: 3px; background: var(--border); width: 50%; z-index: 0; }
.stepper .step::before { left: 0; } .stepper .step::after { right: 0; }
.stepper .step:first-child::before, .stepper .step:last-child::after { display: none; }
.stepper .step.done::before, .stepper .step.done::after, .stepper .step.active::before, .stepper .step.working::before, .stepper .step.error::before, .stepper .step.skipped::before, .stepper .step.skipped::after { background: var(--primary); }
.stepper .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #fff; border: 3px solid var(--border); color: var(--muted-foreground); box-sizing: border-box; }
.stepper .step.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper .step.done .label { color: var(--foreground); }
.stepper .step.active .dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.stepper .step.active .label { color: var(--primary); font-weight: 700; }
.stepper .step.working .dot { border-color: var(--primary); }
.stepper .step.working .label { color: var(--primary); font-weight: 700; }
.stepper .dot-spin { width: 14px; height: 14px; border: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.stepper .step.error .dot { background: var(--destructive); border-color: var(--destructive); color: #fff; }
.stepper .step.error .label { color: var(--destructive); font-weight: 700; }
.stepper .step.skipped .dot { border-color: var(--primary); border-style: dashed; color: var(--primary); }
.final-review.complete { border-left: 4px solid var(--primary); }
@media (max-width: 760px) { .stepper .step .label { font-size: 11px; } .stepper .step { min-width: 80px; } }

/* ---------- stage locks, current step, warning dialog ---------- */
.stepper .step.current .label { text-decoration: underline; text-underline-offset: 4px; }
.stepper .step .lock { font-size: 10px; opacity: .7; }
.stage-lock { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; background: #fff7e6; border: 1px solid #f0cf8a; border-left: 4px solid #e8a33d; border-radius: var(--radius-lg); color: #6b4a00; font-size: 13px; }
.stage-lock.open { background: #eef6fc; border-color: #b9d8ef; border-left-color: var(--primary); color: #0b3d5c; }
.stage-lock .lock-icon { font-size: 20px; }
.stage-lock > div { flex: 1; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,3,6,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 100; overflow-y: auto; padding: 24px 0; box-sizing: border-box; }
.modal { background: #fff; border-radius: var(--radius-xl, 14px); padding: 22px 26px; max-width: 520px; width: calc(100% - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.25); margin: auto; }   /* centred when it fits, scrolls with the backdrop when it does not */
.modal h2 { margin: 0 0 8px; }
.modal ul { margin: 8px 0 0; padding-left: 20px; }
.modal li { margin: 6px 0; }

/* ---------- slide sketches, drawn over a frame of the rendered video ---------- */
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--brand-gradient, var(--brand, #ee9916)) center / cover no-repeat; container-type: inline-size; }   /* the brand gradient stands in until a preview frame with the real background arrives */
/* an animated slide: the summary line on its card, and the preview dialog's stage at the zone's proportions on the brand gradient */
.anim-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font-size: 12px; }
.anim-line .chip { background: var(--primary); color: #fff; border-color: transparent; }
.anim-line .chip.off { background: var(--muted); color: var(--muted-foreground); }
.anim-line label { white-space: nowrap; }
.anim-stage { position: relative; overflow: hidden; border-radius: 8px; background: var(--brand-gradient, var(--brand, #ee9916)); margin-top: 12px; }
.anim-stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: top left; background: transparent; }
/* the Branding page's sample slides: a title card and a content slide in the colour and fonts being tried */
.brand-preview { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.brand-preview .frame { flex: 1 1 380px; max-width: 640px; }
.brand-preview .frame-tag { display: none; }
/* the LMS quiz on Final Review: the correct answer stands out; questions are the same cards as objectives */
.quiz-answers li { margin: 4px 0; } .quiz-answers li.correct > label > span { font-weight: 600; color: var(--ok); }
.quiz-q [contenteditable]:hover { background: rgba(0,0,0,.04); border-radius: 3px; } .quiz-q [contenteditable]:focus { outline: 1px dashed var(--primary); background: #fff; border-radius: 3px; }
.frame .frame-tag { position: absolute; right: 6px; bottom: 5px; font-size: 10px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 4px; pointer-events: none; }
.frame.left .sketch { left: 35.4%; }   /* the presenter stands on the left: the zone sits on the right, the same width in from the edge */
.frame .sketch { position: absolute; left: 4.6%; top: 6.5%; width: 60%; height: 87%; aspect-ratio: auto; background: transparent; border: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: 3.5%; color: #fff; font-family: var(--sk-font-body, var(--font)); font-size: calc(var(--sk-base, clamp(6px, 1.9cqw, 14px)) * var(--sk-scale, 1) * var(--sk-user, 1)); line-height: 1.35; overflow: hidden; max-width: none; }
/* the company's slide fonts (Branding page): headings, labels and figures in the heading face, everything else in the body face */
.sketch .sk-title, .sketch .sk-h, .sketch .sk-modlabel, .sketch .sk-logo, .sketch .sk-huge, .sketch .sk-bignum, .sketch .sk-num, .sketch .sk-colhead, .sketch .sk-banner, .sketch .sk-table th { font-family: var(--sk-font-heading, var(--sk-font-body, var(--font))); }
.sketch .sk-title { font-weight: 700; font-size: 1.85em; letter-spacing: -.01em; line-height: 1.22; }   /* tall enough for the type's own ascent, so the glyph box stays inside the zone (the zone clips) */
.sketch .sk-title.big { font-size: 2.3em; margin-top: 4%; }
.sketch .sk-underline { width: 20%; height: 3px; background: var(--brand-light, #f9d18a); border-radius: 2px; margin-top: -2%; }
.sketch .sk-modlabel { font-size: .85em; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 8%; }
.sketch .sk-namecard { margin-top: auto; display: flex; align-items: center; gap: 4%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: 3% 4%; backdrop-filter: blur(2px); }
.sketch .sk-namecard .sk-logo { font-weight: 800; letter-spacing: -.02em; font-size: 1.15em; padding-right: 4%; border-right: 1px solid rgba(255,255,255,.4); }
.sketch .sk-namecard .sk-h { font-size: 1.25em; }
.sketch .sk-intro { color: rgba(255,255,255,.9); }
.sketch .sk-card, .sketch .sk-tile, .sketch .sk-bar, .sketch .sk-flowbox, .sketch .sk-level, .sketch .sk-checkrow, .sketch .sk-node, .sketch .sk-wheel-item, .sketch .sk-stat, .sketch .sk-image, .sketch .sk-quote, .sketch .sk-col .sk-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: .55em .75em; min-width: 0; position: relative; backdrop-filter: blur(2px); }
.sketch .sk-tiles { gap: .7em; } .sketch .sk-tile .sk-h { margin-bottom: .2em; } .sketch .sk-tiles.tall .sk-tile { padding: .8em .9em; }
.sketch .sk-statement { display: flex; flex-direction: column; gap: .2em; }
.sketch .sk-statement.closing { margin-top: auto; }
.sketch .sk-h { display: block; font-weight: 600; }
.sketch .sk-b { display: block; color: rgba(255,255,255,.85); font-size: .92em; }
.sketch .sk-banner { background: rgba(255,255,255,.22); border-radius: 4px; text-align: center; padding: .35em .6em; font-weight: 600; }
/* the callout bar: translucent like the tiles, its top line coloured by kind (warning orange, tip green, info the brand colour) */
.sketch .sk-callout { display: flex; align-items: center; gap: .65em; padding: .5em .8em; border-radius: 5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-top: 3px solid #f0a33a; }
.sketch .sk-callout.tip { border-top-color: #4fd18a; } .sketch .sk-callout.info { border-top-color: var(--brand-light, #f9d18a); }
.sketch .sk-ico, .sketch .sk-tick { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85em; }
/* the footer bar at the bottom stands apart from the rest: white, dark text, the brand colour as its top line */
/* the footer bar is a fixed band at the foot of the zone: the same height whatever its text, the slide's text size or the fit scale (the text shrinks to fit it) */
.sketch .sk-footer { margin-top: auto; flex: none; height: 4.2cqw; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; padding: .25em .9em; border-radius: 5px; background: #fff; color: #17324d; border: none; border-top: max(3px, .35cqw) solid var(--brand, #ee9916); font-weight: 600; line-height: 1.2; backdrop-filter: none; }
.sketch .sk-footer > [data-field] { flex: 1; min-width: 0; }
.sketch .sk-footer .sk-x { background: rgba(0,0,0,.45); color: #fff; }
/* content blocks never shrink below their content: when a slide is too full the sketch overflows and the type is fitted down, rather than boxes being squeezed into each other */
.sketch .sk-tiles { display: grid; gap: .6em; flex: 1; align-content: start; }
.sketch .sk-tiles.cols2 { grid-template-columns: 1fr 1fr; } .sketch .sk-tiles.cols3 { grid-template-columns: repeat(3, 1fr); } .sketch .sk-tiles.cols4 { grid-template-columns: repeat(4, 1fr); }
.sketch .sk-tiles.tall { align-content: stretch; } .sketch .sk-tiles.big .sk-tile { flex-direction: column; padding: .9em 1em; }
.sketch .sk-tile { display: flex; gap: .7em; align-items: flex-start; }
.sketch .sk-tiles.centred .sk-tile { flex-direction: column; align-items: center; text-align: center; }
.sketch .sk-tiles.compact .sk-tile { padding: .4em .65em; }
.sketch .sk-num { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(255,255,255,.3); font-size: .8em; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sketch .sk-icon { flex: none; width: 2.2em; height: 2.2em; border-radius: 6px; background: rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.sketch .sk-icon .ms { font-size: 1.5em; }
.sketch .sk-icon.empty { position: absolute; top: 4px; right: 24px; width: 14px; height: 14px; border-radius: 3px; border: 1px dashed rgba(255,255,255,.7); background: transparent; color: rgba(255,255,255,.85); font-size: 11px; line-height: 1; padding: 0; opacity: 0; cursor: pointer; box-shadow: none; }
.sketch *:hover > .sk-icon.empty { opacity: 1; }
.frame:not(.editing) .sk-icon.empty { display: none; }
.frame.editing .sk-icon.has { cursor: pointer; }
.sketch .sk-bar:has(> .sk-icon.has), .sketch .sk-flowbox:has(> .sk-icon.has), .sketch .sk-tstep:has(> .sk-icon.has), .sketch .sk-level:has(> .sk-icon.has) { display: flex; gap: .7em; align-items: flex-start; text-align: left; }
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
/* the right-click menu on a slide block or item */
.ctx-menu { position: absolute; z-index: 70; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; min-width: 170px; display: flex; flex-direction: column; }
.ctx-menu button { text-align: left; border: none; background: none; padding: 7px 10px; border-radius: 6px; font-size: 13px; color: #111; box-shadow: none; cursor: pointer; }
.ctx-menu button:hover { background: #eef6fc; }
.ctx-menu button.danger { color: var(--destructive); }
/* the waiting screen while a video renders: the Soapbox megaphone, its sound bars filling one by one, then emptying */
.megaphone-loader { display: flex; justify-content: center; margin: 6px 0 4px; }
.megaphone-loader .megaphone { width: 92px; height: 62px; }
.megaphone .mp-body { fill: var(--foreground); stroke: var(--foreground); stroke-width: .6; stroke-linejoin: round; }   /* a hairline stroke hides the seams between the logo's sub-paths */
.megaphone .mp-bar { fill: var(--primary); stroke: var(--primary); stroke-width: .6; stroke-linejoin: round; opacity: .15; animation: mp-fill 2.4s ease-in-out infinite; }
.megaphone .mp-bar.b2 { animation-delay: .3s; }
.megaphone .mp-bar.b3 { animation-delay: .6s; }
@keyframes mp-fill { 0% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: 1; } 85% { opacity: .15; } 100% { opacity: .15; } }
/* HeyGen's preview pictures of avatar looks */
.look-thumb { height: 72px; width: auto; border-radius: 6px; border: 1px solid var(--border); background: #eef1f4; flex: none; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; padding: 2px; }
.look-card { border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; box-shadow: none; font-size: 12px; }
.look-card img, .look-card .look-blank { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #eef1f4; display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.look-card:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, #fff); }
.look-card.current { outline: 2px solid var(--primary); }
.icon-picker { position: absolute; z-index: 60; width: 328px; max-height: 360px; background: #fff; color: #111; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.icon-picker input { width: 100%; box-sizing: border-box; }
.icon-picker .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; overflow: auto; min-height: 60px; }
.icon-picker .grid button { border: 1px solid transparent; background: none; border-radius: 6px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 9px; color: #555; box-shadow: none; overflow: hidden; }
.icon-picker .grid button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-picker .grid button:hover { border-color: var(--primary); background: #eef6fc; }
.icon-picker .grid button .ms { font-size: 22px; color: var(--primary); }
.sketch .sk-bullets { margin: 0; padding-left: 16px; } .sketch .sk-bullets li { margin: .25em 0; position: relative; } .sketch .sk-bullets .sk-h, .sketch .sk-bullets .sk-b { display: inline; }
.sketch .sk-stack { display: flex; flex-direction: column; gap: .6em; } .sketch .sk-bar { text-align: center; border-top: 3px solid #f08a5d; }
.sketch .sk-wheel { display: flex; gap: 4%; flex: 1; min-height: 0; align-items: center; }
.sketch .sk-wheel-left { position: relative; width: 38%; aspect-ratio: 1; flex: none; }
.sketch .sk-half { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 180deg, var(--brand-light, #f9d18a) 0 20%, var(--brand-mid, #f3b04a) 20% 40%, var(--brand, #ee9916) 40% 60%, var(--brand-dark, #b56f0a) 60% 80%, var(--brand-darker, #7a4a05) 80% 100%); clip-path: inset(0 0 0 50%); }
.sketch .sk-centre { position: absolute; left: 4%; top: 22%; width: 56%; height: 56%; border-radius: 50%; background: #fff; color: var(--brand, #ee9916); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sketch .sk-centre .sk-h { font-size: 1.4em; font-weight: 800; } .sketch .sk-centre .sk-b { color: #3c5a74; font-size: .7em; letter-spacing: .08em; text-transform: uppercase; }
.sketch .sk-wheel-list { flex: 1; display: flex; flex-direction: column; gap: .5em; }
.sketch .sk-wheel-item { display: flex; gap: .7em; align-items: flex-start; background: transparent; border: none; backdrop-filter: none; padding: .3em .4em; }
.sketch .sk-bignum { font-weight: 800; font-size: 1.4em; opacity: .9; border-right: 2px solid rgba(255,255,255,.5); padding-right: 6px; line-height: 1.1; }
.sketch .sk-cycle { position: relative; flex: 1; min-height: 0; }
.sketch .sk-ring { position: absolute; left: 15%; top: 10%; width: 70%; height: 80%; border: 2px dashed rgba(255,255,255,.5); border-radius: 50%; }
.sketch .sk-node { position: absolute; transform: translate(-50%, -50%); width: 30%; display: flex; gap: .5em; align-items: flex-start; padding: .45em .6em; z-index: 1; font-size: .9em; }
.sketch .sk-timeline { display: flex; gap: .6em; position: relative; padding-top: 10px; flex: 1; align-items: flex-start; }
.sketch .sk-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: rgba(255,255,255,.55); }
.sketch .sk-tstep { flex: 1; position: relative; padding-top: 12px; }
.sketch .sk-dot { position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-light, #f9d18a); border: 2px solid #fff; }
.sketch .sk-flow { display: flex; flex-direction: column; align-items: center; gap: .25em; flex: 1; }
.sketch .sk-flowbox { width: 70%; text-align: center; padding: .45em .8em; } .sketch .sk-arrow { font-size: .8em; opacity: .8; line-height: 1; }
.sketch .sk-statwrap, .sketch .sk-imagewrap { display: flex; gap: .6em; flex: 1; }
.sketch .sk-stat { flex: 1.2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.sketch .sk-huge { font-size: 3.2em; font-weight: 800; line-height: 1; color: var(--brand-light, #f9d18a); } .sketch .sk-unit { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .75em; opacity: .85; margin: 2px 0 4px; }
.sketch .sk-statside { flex: 1; display: flex; flex-direction: column; gap: .6em; justify-content: center; }
.sketch .sk-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5em .6em; flex: 1; align-content: start; }
.sketch .sk-compare .l { grid-column: 1; } .sketch .sk-compare .r { grid-column: 3; } .sketch .sk-compare .sk-vs { grid-column: 2; }
.sketch .sk-col { flex: 1; display: flex; flex-direction: column; gap: 4px; } .sketch .sk-colhead { text-align: center; font-weight: 700; padding: .35em .6em; background: rgba(255,255,255,.25); border-radius: 4px; }
.sketch .sk-vs { align-self: center; font-weight: 800; opacity: .7; }
.sketch .sk-gap { min-height: 0; }
.sketch .sk-check { display: flex; flex-direction: column; gap: .5em; } .sketch .sk-checkrow { display: flex; gap: .7em; align-items: center; padding: .45em .7em; } .sketch .sk-tick { background: #4fd18a; color: #063; }
.sketch .sk-quote { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: .8em 1.1em; position: relative; }
.sketch .sk-qmark { position: absolute; left: 6px; top: 0; font-size: 3em; opacity: .4; line-height: 1; } .sketch .sk-qtext { font-size: 1.25em; font-weight: 600; font-style: italic; padding-left: 14px; } .sketch .sk-qsrc { margin-top: 6px; padding-left: 14px; opacity: .85; }
.sketch .sk-pyramid { display: flex; flex-direction: column; align-items: center; gap: .5em; flex: 1; }
.sketch .sk-level { text-align: center; padding: .45em .8em; }
.sketch .sk-table { width: 100%; border-collapse: collapse; font-size: .95em; } .sketch .sk-table th, .sketch .sk-table td { border: 1px solid rgba(255,255,255,.4); padding: .35em .7em; text-align: left; } .sketch .sk-table th { background: rgba(255,255,255,.25); font-weight: 700; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.4); }   /* the app's own table-heading style must not leak into a slide */
.sketch .sk-table td { vertical-align: top; } .sketch .sk-table td:first-child { width: 28%; }
.sketch .sk-image { flex: 1.3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 0; border-style: dashed; overflow: hidden; }
.sketch .sk-image.has-photo { border-style: solid; }
.sketch .sk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sketch .sk-image.has-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 0; pointer-events: none; }
.sketch .sk-image.has-photo .sk-imgicon { display: none; }
.sketch .sk-image.has-photo > .sk-h, .sketch .sk-image.has-photo > .sk-b { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sketch .sk-image.dropping { outline: 2px dashed #fff; outline-offset: -4px; }
/* the photo controls sit in the middle of the box, in place of the placeholder icon; once a photo is in, they show on hover */
.sketch .sk-photo-tools { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .12s; }
.sketch .sk-image.has-photo .sk-photo-tools { opacity: 0; }
.sketch .sk-image.has-photo:hover .sk-photo-tools { opacity: 1; }
.frame.editing .sk-image:not(.has-photo) .sk-imgicon { display: none; }
.sketch .sk-photo-tools .chip { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.65); border-radius: 14px; padding: 4px 12px; cursor: pointer; line-height: 1.2; white-space: nowrap; box-shadow: none; margin: 0; }
.sketch .sk-photo-tools .chip:hover { background: rgba(0,0,0,.65); }
.sketch .sk-photo-tools label.chip:first-child { font-size: 12px; padding: 6px 14px; background: var(--primary); border-color: transparent; }
.sketch .sk-imgicon { font-size: 2.4em; opacity: .5; margin: auto; }
/* one box's or one block's own text size (from the right-click menu): a multiplier on top of the slide's size. Blocks with a size of their own keep it as the base. */
.sketch [data-item], .sketch [data-block] { font-size: calc(1em * var(--sk-item, 1)); }
.sketch .sk-node[data-item] { font-size: calc(.9em * var(--sk-item, 1)); }
.sketch .sk-title[data-block] { font-size: calc(1.85em * var(--sk-item, 1)); } .sketch .sk-title.big[data-block] { font-size: calc(2.3em * var(--sk-item, 1)); }
.sketch .sk-modlabel[data-block] { font-size: calc(.85em * var(--sk-item, 1)); } .sketch .sk-table[data-block] { font-size: calc(.95em * var(--sk-item, 1)); }
.sketch .sk-footer, .sketch .sk-footer[data-block] { font-size: 1.55cqw; line-height: 1.2; }   /* one size on every slide, whatever the slide's own scale; fitSketch shrinks it so the footer stays on one line */
.sketch .sk-footer > [data-field] { white-space: nowrap; overflow: hidden; }
.sketch [contenteditable] { border-radius: 3px; padding: 0 2px; margin: 0 -2px; cursor: text; min-width: 1em; }
.sketch [contenteditable]:hover { background: rgba(255,255,255,.18); }
.sketch [contenteditable]:focus { outline: 1px dashed #fff; background: rgba(0,0,0,.35); }
.sketch [contenteditable]:empty::before { content: attr(data-placeholder); color: rgba(255,255,255,.55); font-style: italic; }
.sketch .sk-x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 700; padding: 0; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: none; opacity: 0; cursor: pointer; z-index: 4; }
.sketch .sk-tile:hover .sk-x, .sketch li:hover .sk-x, .sketch .sk-bar:hover .sk-x, .sketch .sk-node:hover .sk-x, .sketch .sk-wheel-item:hover .sk-x, .sketch .sk-tstep:hover .sk-x, .sketch .sk-flowbox:hover .sk-x, .sketch .sk-level:hover .sk-x, .sketch .sk-checkrow:hover .sk-x, .sketch .sk-card:hover .sk-x, .sketch .sk-stat:hover .sk-x, .sketch .sk-image:hover .sk-x, .sketch td:hover .sk-x { opacity: 1; }
.sketch .sk-x:hover { color: #fff; background: #d01d21; }
.sketch.changed { animation: flash 3s ease-out; }

/* slide cards (controls under each sketch) */
.slides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; margin-top: 10px; }
.slide-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 10px; }
.slide-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.slide-meta select { padding: 2px 4px; font-size: 12px; width: auto; display: inline-block; }
.slide-meta label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sk-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; margin: 6px 0 -2px; }
.sk-hint .chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.sketch .sk-callout .sk-ico { cursor: pointer; }
.sketch .sk-compare .sk-card { padding: .55em .75em; } .sketch .sk-compare .sk-b { font-size: .88em; }

.sb-titlerow { border-left-color: var(--primary); }
.title-card.disabled { opacity: .45; }

/* sizing rules: fixed zone, footer band, removable bars */
.frame.editing::after { content: ""; position: absolute; left: 4.6%; top: 6.5%; width: 60%; height: 87%; border: 1px dashed rgba(255,255,255,.3); border-radius: 4px; pointer-events: none; }
.sketch .sk-intro, .sketch .sk-callout, .sketch .sk-footer, .sketch .sk-banner { position: relative; }
.sketch .sk-intro:hover .sk-x, .sketch .sk-callout:hover .sk-x, .sketch .sk-footer:hover .sk-x, .sketch .sk-banner:hover .sk-x { opacity: 1; }
.sketch .sk-reserve { margin-top: auto; flex: none; height: 4.2cqw; box-sizing: border-box; border: 1px dashed rgba(255,255,255,.18); border-radius: 5px; }   /* the same band, kept free when there is no footer */
.frame:not(.editing) .sk-reserve { border-color: transparent; }
.sketch.tight .sk-b { line-height: 1.2; }
/* free adjustment grips (edit mode only) */
.sketch .nudgeable { position: relative; }
.sketch .sk-grip, .sketch .sk-size { position: absolute; z-index: 3; opacity: 0; color: #fff; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.7); border-radius: 3px; user-select: none; transition: opacity .12s; }
.sketch .sk-grip { left: 2px; top: 2px; font-size: 11px; line-height: 1; padding: 1px 3px; cursor: move; }
.sketch .sk-size { width: 9px; height: 9px; }
.sketch .sk-size[data-dir="n"] { top: 0; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.sketch .sk-size[data-dir="s"] { bottom: 0; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.sketch .sk-size[data-dir="e"] { right: 0; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.sketch .sk-size[data-dir="w"] { left: 0; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.sketch .sk-size[data-dir="ne"] { right: 0; top: 0; cursor: nesw-resize; }
.sketch .sk-size[data-dir="se"] { right: 0; bottom: 0; cursor: nwse-resize; }
.sketch .sk-size[data-dir="sw"] { left: 0; bottom: 0; cursor: nesw-resize; }
.sketch .nudgeable:hover > .sk-grip, .sketch .nudgeable:hover > .sk-size, .sketch.nudging .sk-grip, .sketch.nudging .sk-size { opacity: 1; }
.sketch.nudging { background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 2% 2%; }
.sketch .nudged { position: relative; z-index: 2; }   /* a block someone moved sits above the blocks it now overlaps, in the preview and the render alike */
.frame.editing .sketch .nudged { outline: 1px dotted rgba(255,255,255,.45); outline-offset: 2px; }

/* course template previews + backgrounds library */
.tpl-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.tpl-previews figure { margin: 0; } .tpl-previews img { width: 100%; border-radius: 8px; display: block; background: var(--brand-blue-dark); aspect-ratio: 16 / 9; object-fit: cover; }
.tpl-previews figcaption { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; text-align: center; }
/* the live presenter editor on the Presenters page */
.p-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--brand-blue-dark); user-select: none; touch-action: none; }
.p-stage .p-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-avatar { position: absolute; overflow: hidden; cursor: move; touch-action: none; user-select: none; -webkit-user-drag: none; outline: 1px dashed rgba(255,255,255,.6); outline-offset: -1px; }
.p-avatar:hover, .p-avatar.active { outline: 2px solid #fff; }
.p-avatar img, .p-avatar svg { position: absolute; top: 0; height: 100%; pointer-events: none; }
.p-avatar.left .p-grip { left: auto; right: 0; cursor: nesw-resize; }
.p-avatar .p-grip { touch-action: none; position: absolute; left: 0; top: 0; width: 16px; height: 16px; background: #fff; border: 2px solid var(--primary); border-radius: 3px; cursor: nwse-resize; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bg-item { margin: 0; } .bg-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--border); }
.bg-item figcaption { font-size: 12px; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }

/* ---------- outline stage ---------- */
.outline-hero { background: linear-gradient(135deg, var(--brand-blue-dark, #04365a) 0%, var(--primary, #036eae) 100%); color: #fff; }
.outline-hero .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.outline-hero .outline-title { font-size: 28px; margin: 6px 0 8px; line-height: 1.2; }
.outline-hero .outline-desc { margin: 0 0 10px; font-size: 15px; line-height: 1.5; opacity: .95; max-width: 780px; }
.outline-hero .outline-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; opacity: .9; }
.outline-hero button { background: #fff; color: var(--primary); border-color: #fff; }
.outline-hero button.primary { background: #ffffff; color: var(--primary); font-weight: 600; }
.outline-hero button:disabled { opacity: .5; }
.outline-hero [contenteditable]:hover { background: rgba(255,255,255,.12); border-radius: 3px; }
.outline-hero [contenteditable]:focus { outline: 1px dashed #fff; background: rgba(0,0,0,.2); border-radius: 3px; }
[data-ofield][contenteditable]:empty::before { content: attr(data-placeholder); opacity: .55; font-style: italic; }
.objective-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.objective { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #f7fafd; line-height: 1.45; }
.objective .obj-num, .module-card .mod-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.objective.add, .module-card.add { justify-content: center; align-items: center; border-style: dashed; background: transparent; color: var(--muted-foreground); cursor: pointer; font: inherit; min-height: 54px; }
.objective.add:hover, .module-card.add:hover { border-color: var(--primary); color: var(--primary); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 12px; }
.module-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; background: #fff; position: relative; }
.module-card .module-head { display: flex; gap: 12px; align-items: flex-start; }
.module-card .mod-title { font-weight: 700; font-size: 15px; }
.module-card .mod-summary { color: var(--muted-foreground); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.module-card .mod-min { flex: none; font-size: 12px; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.module-card .mod-min input { width: 54px; padding: 2px 6px; font-size: 12px; }
.module-card .mod-presenter { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.module-card .mod-presenter select { font-size: 12px; padding: 3px 6px; max-width: 220px; }
.module-card.openable { cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.module-card.openable:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.module-card.openable::after { content: "Open →"; position: absolute; right: 14px; bottom: 12px; font-size: 12px; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .14s; pointer-events: none; }
.module-card.openable:hover::after { opacity: 1; }
.module-card .sk-x, .objective .sk-x { color: var(--muted-foreground); opacity: 0; }
.module-card:hover .sk-x, .objective:hover .sk-x, .module-card li:hover .sk-x { opacity: 1; }
[data-ofield][contenteditable]:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 3px; }
[data-ofield][contenteditable]:focus { outline: 1px dashed var(--primary); background: #fff; border-radius: 3px; }

/* script & audio stage */
.segment textarea { white-space: pre-wrap; line-height: 1.55; }
.segment.locked-in { border-color: #1a9c5b; background: #f3fbf6; }
.seg-audio .lockin.on { background: #1a9c5b; color: #fff; border-color: #1a9c5b; }
.seg-audio.draft { border-top-style: dotted; }
.segment.speaking { outline: 2px solid var(--accent); outline-offset: 1px; }
button.mic { padding: 4px 8px; display: inline-flex; align-items: center; } button.mic svg { display: block; } button.mic.on { background: #ffe9e9; border-color: var(--destructive); color: var(--destructive); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.sb-none.by-card { border-style: solid; border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); background: #f3f8fc; }

/* course landing page */
.module-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.module-row { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; background: #fff; }
.module-row.complete { border-left: 4px solid #1a9c5b; }
.module-row .module-head { display: flex; gap: 12px; align-items: center; }
.module-row .mod-title a { font-weight: 700; font-size: 15px; color: var(--foreground); text-decoration: none; }
.module-row .mod-title a:hover { color: var(--primary); }
.module-row .mini .stepper { margin: 10px 0 0; padding: 8px 4px 6px; box-shadow: none; background: #f7fafd; }
.module-row .mini .stepper .step { min-width: 70px; } .module-row .mini .dot { width: 22px; height: 22px; font-size: 10px; border-width: 2px; } .module-row .mini .step::before, .module-row .mini .step::after { top: 10px; height: 2px; } .module-row .mini .label { font-size: 11px; }

.new-build { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #041c2c; color: #fff; padding: 10px 14px 10px 18px; border-radius: 999px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 90; font-size: 13px; }

/* outline: editable text on the blue hero must stay visible while editing; key points live in a pop-up */
.outline-hero [data-ofield][contenteditable]:hover { background: rgba(255,255,255,.14); }
.outline-hero [data-ofield][contenteditable]:focus { background: rgba(0,0,0,.28); color: #fff; outline: 1px dashed #fff; }
.points-list { margin: 0; padding-left: 22px; line-height: 1.5; }
.points-list li { position: relative; padding: 4px 22px 4px 4px; border-radius: 4px; }
.points-list li:hover { background: #f4f8fc; } .points-list li .sk-x { top: 4px; right: 0; color: var(--muted-foreground); opacity: 0; } .points-list li:hover .sk-x { opacity: 1; }
.points-list [contenteditable]:focus { outline: 1px dashed var(--primary); background: #fff; }
.points-list [contenteditable]:empty::before { content: attr(data-placeholder); color: #9aa5b1; font-style: italic; }
.module-card .chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; }

/* stepper: later stages that will need regenerating while an earlier one is being edited */
.stepper .step.warn .dot { background: #fff7e6; border-color: #e8a33d; color: #b35c00; }
.stepper .step.warn .label { color: #b35c00; font-weight: 600; }
.stepper .step.warn .label::after { content: " needs regenerating if changed"; font-weight: 400; font-size: 10px; display: block; color: #b35c00; }
.stepper .step.warn::before, .stepper .step.warn::after { background: #e8a33d; }

/* landing: audience bubble */
.audience-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #f7fafd; line-height: 1.5; }
.audience-card .obj-tag { flex: none; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-top: 2px; }

/* slides: drag and drop; outline edit mode; inline number */
.drag-handle { cursor: grab; color: var(--muted-foreground); font-size: 14px; user-select: none; }
.slide-card[draggable] { cursor: grab; } .slide-card.dragging { opacity: .5; }
.sb-seg.drop-ok, .sb-none.drop-ok { outline: 2px dashed var(--primary); outline-offset: 2px; background: #eef6fc; }
.inline-num { width: 44px; padding: 1px 4px; font-size: 12px; text-align: right; border: 1px dashed var(--border); background: transparent; }

/* voiced-state rows, drag-only slides */
.chip.warn { background: #fff4e0; color: #b35c00; border-color: #f0cf8a; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.seg-audio.unvoiced, .seg-audio.changed { background: #fff8ec; border-top-color: #f0cf8a; padding: 6px 8px; border-radius: 6px; }
.sb-resize { margin-top: 8px; text-align: center; font-size: 11px; color: var(--muted-foreground); border-top: 1px dashed var(--border); padding-top: 5px; cursor: ns-resize; user-select: none; }
.sb-resize:hover { color: var(--primary); border-top-color: var(--primary); }

.slide-card.drop-replace { outline: 3px solid var(--destructive); outline-offset: 2px; }
.slide-card.drop-replace::after { content: "Drop to replace this slide"; position: absolute; }

/* P.A.T.H wordmark in the top bar */

/* the real P.A.T.H artwork */
.topbar .path-logo { flex: none; display: flex; align-items: center; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.topbar .path-logo img { height: 30px; width: auto; max-width: none; display: block; }
.modal.wide { max-width: 860px; }
.module-card.bookend { border-style: dashed; }
.module-card .mod-narration { margin-top: 8px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.check-frame .previews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-frame figure { margin: 0; min-width: 0; }
.check-frame figcaption { font-size: 12px; margin-top: 6px; }
.check-frame .frame-tag { display: none; }
.check-frame .check-warnings { margin: 12px 0 0; padding: 10px 14px 10px 30px; background: #fff8ec; border: 1px solid #f0cf8a; border-radius: 6px; }
.check-frame .check-warnings li { margin: 4px 0; }
.courses-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.courses-head h1 { margin: 0; }
.kind-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.kind-row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--foreground); }
.kind-row input { width: auto; } .kind-row label[hidden] { display: none; }
/* inline checkbox labels, and the knowledge base toolbar: choose files, upload, or add a web page, all one height */
.hint { border-bottom: 1px dotted currentColor; cursor: help; }
label.check { display: inline-flex; align-items: center; gap: 7px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--foreground); cursor: pointer; } label.check input { width: auto; margin: 0; }
.kb-tools { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.kb-tool { display: flex; gap: 8px; align-items: center; margin: 0; }
.kb-tool input[type=url] { width: 280px; padding: 8px 10px; }
.kb-sep { width: 1px; height: 26px; background: var(--border); }
.kb-tool .button.busy { opacity: .6; pointer-events: none; }

.modal-backdrop[hidden] { display: none; }

/* ---- Choosing which documents a course draws on: a pop-up box with room to search and read ---- */
.doc-choice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.modal.doc-picker { max-width: 760px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.doc-picker-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.doc-picker-tools input[type=search] { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; font-size: 14px; background: #fff; color: var(--foreground); }
.doc-picker-list { flex: 1 1 auto; min-height: 160px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--muted); padding: 6px; }
.doc-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 4px; border: 1px solid transparent; border-radius: var(--radius-md); background: #fff; cursor: pointer; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--foreground); }
.doc-row:last-child { margin-bottom: 0; }
.doc-row:hover { border-color: var(--border); }
.doc-row.on { border-color: var(--primary); background: #fffaf1; }
.doc-row input { margin: 3px 0 0; flex: none; width: 16px; height: 16px; }
.doc-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-row-text b { font-weight: 600; overflow-wrap: anywhere; }
.doc-row-meta { font-size: 12px; }
.doc-row-summary { font-size: 13px; line-height: 1.4; }

/* ---- the waiting screen in its smaller sizes ---- */
.generating-block { text-align: center; padding: 28px 16px; }
.working-banner { color: var(--foreground); display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fffaf1; font-size: 13px; text-align: left; }
.working-banner .megaphone-loader { margin: 0; flex: none; }
.working-banner .megaphone-loader .megaphone { width: 40px; height: 27px; }
.working-banner b { font-weight: 600; }
.module-row .working-banner { margin-top: 8px; padding: 6px 10px; }

/* ---- EDITOR: the Edit stage's timeline ---- */
.ed-preview { margin-top: 14px; }
.ed-frame { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; background: #0b1220; border-radius: var(--radius-lg); overflow: hidden; margin: 0 auto; }
.ed-under > video, .ed-under > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-under { position: absolute; inset: 0; }
.ed-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 4% 5%; color: rgba(255,255,255,.85); background: linear-gradient(160deg, #0f1a2e, #1c2b4a); }
.ed-ph-slide { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.ed-ph-seg { font-size: 13px; opacity: .75; }
.ed-transport { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 8px auto 0; }
.ed-timeline { display: flex; flex-direction: row-reverse; gap: 8px; margin-top: 14px; }
.ed-labels { display: flex; flex-direction: column; flex: none; width: 96px; font-size: 12px; color: var(--muted-foreground); }
.ed-labels span { height: 34px; display: flex; align-items: center; }
.ed-labels span:first-child { height: 22px; }
.ed-scroll { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--muted); }
.ed-lanes { position: relative; min-width: 100%; }
.ed-ruler { position: relative; height: 22px; border-bottom: 1px solid var(--border); cursor: pointer; background: #fff; }
.ed-tick { position: absolute; top: 3px; font-size: 10px; color: var(--muted-foreground); border-left: 1px solid var(--border); padding-left: 3px; height: 16px; line-height: 16px; }
.ed-titlecard { position: absolute; bottom: 0; height: 4px; background: var(--primary); opacity: .6; }
.ed-track { position: relative; height: 34px; border-bottom: 1px solid var(--border); }
.ed-track.ed-cuts { background: #fffaf1; }
.ed-track.ed-cuts.over { background: #ffe9c2; }
.ed-seg { position: absolute; top: 4px; height: 26px; background: #fff; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; color: var(--muted-foreground); overflow: hidden; cursor: pointer; }
.ed-seg span { padding: 0 4px; line-height: 24px; }
.ed-slide { position: absolute; top: 4px; height: 26px; background: #e8eef5; border: 1px solid #c9d6e4; border-radius: 4px; font-size: 11px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.ed-slide span { padding: 0 6px; line-height: 24px; }
.ed-clip { position: absolute; top: 3px; height: 28px; background: #fff; border: 1px solid var(--primary); border-radius: 5px; display: flex; align-items: center; gap: 4px; overflow: hidden; cursor: grab; user-select: none; }
.ed-clip.sel { box-shadow: 0 0 0 2px var(--primary); z-index: 2; }
.ed-clip img { height: 22px; width: 36px; object-fit: cover; border-radius: 3px; margin-left: 8px; flex: none; }
.ed-clip-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.ed-clip.video { background: #f2f7ff; }
.ed-h { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: transparent; }
.ed-h.l { left: 0; } .ed-h.r { right: 0; }
.ed-clip:hover .ed-h { background: rgba(238,153,22,.35); }
.ed-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--destructive); pointer-events: none; z-index: 3; }
.ed-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--destructive); }
.ed-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .ed-bottom { grid-template-columns: 1fr; } }
.ed-media, .ed-inspector { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; background: #fff; }
.ed-group { font-size: 12px; font-weight: 600; color: var(--muted-foreground); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.ed-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ed-item { position: relative; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--muted); cursor: grab; }
.ed-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b1220; }
.ed-item-name { display: block; font-size: 11px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-item-dur { position: absolute; top: 4px; left: 4px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; border-radius: 3px; }
.ed-item-add { position: absolute; top: 4px; right: 4px; padding: 0 7px; }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 10px; }
.ed-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.ed-fields label:nth-child(3) { grid-column: 1 / -1; }
.ed-fields input[type=number] { width: 100%; padding: 6px 8px; }

.ed-slide-frame { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(var(--ed-scale, .4)); pointer-events: none; background: transparent; }
.ed-frame #ed-ph-seg { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12px; color: rgba(255,255,255,.85); background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ---- EDITOR: a cutaway's box on the frame, dragged, resized and reframed by hand ---- */
.ed-guides { position: absolute; inset: 0; pointer-events: none; }
.ed-guide-zone { position: absolute; border: 1px dashed rgba(255,255,255,.22); border-radius: 4px; }
.ed-guide-footer { position: absolute; border: 1px dashed rgba(255,255,255,.4); background: rgba(255,255,255,.08); border-radius: 3px; }
.ed-cut { position: absolute; overflow: hidden; cursor: grab; }
.ed-cut-media { position: absolute; inset: 0; overflow: hidden; }
.ed-cut-media > img, .ed-cut-media > video { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.ed-handles { position: absolute; inset: 0; outline: 1.5px solid var(--primary); outline-offset: -1px; pointer-events: none; }
.ed-hh { position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid var(--primary); border-radius: 2px; pointer-events: auto; }
.ed-hh.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.ed-hh.n  { left: calc(50% - 6px); top: -6px; cursor: ns-resize; }
.ed-hh.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.ed-hh.e  { right: -6px; top: calc(50% - 6px); cursor: ew-resize; }
.ed-hh.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.ed-hh.s  { left: calc(50% - 6px); bottom: -6px; cursor: ns-resize; }
.ed-hh.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.ed-hh.w  { left: -6px; top: calc(50% - 6px); cursor: ew-resize; }
.ed-sub { font-size: 12px; font-weight: 600; color: var(--muted-foreground); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.ed-fields label input[type=range] { width: 100%; }
/* ---- EDITOR: a picture framed inside a locked window: the window stays put, the picture moves and scales behind it ---- */
.ed-cut.locked { cursor: move; }
.ed-cut.locked .ed-cut-media { cursor: move; }
.ed-ghost { position: absolute; opacity: .32; cursor: move; pointer-events: auto; }
.ed-ghost > img, .ed-ghost > video { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.ed-ghost-frame { position: absolute; outline: 1.5px dashed var(--primary); outline-offset: -1px; pointer-events: none; }
.ed-ghost-frame .ed-hh { pointer-events: auto; }
.ed-seg-btns { display: flex; gap: 0; }
.ed-seg-btns button { border-radius: 0; margin: 0; flex: 1; }
.ed-seg-btns button:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.ed-seg-btns button:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.ed-seg-btns button + button { margin-left: -1px; }
.ed-seg-btns button.on { background: var(--primary); color: #fff; border-color: var(--primary); position: relative; }

/* ---- Claude on each person's own computer ---- */
.runner-list { list-style: none; padding: 0; margin: 6px 0 0; }
.runner-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.runner-me code, #runner-steps code { background: var(--muted); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* ---- dictation: recording (red, pulsing, with the time) and transcribing (dimmed) ---- */
button.mic.busy { opacity: .55; cursor: progress; }
.mic-time { font-variant-numeric: tabular-nums; font-size: 12px; margin-left: 6px; }
