@import url("fonts/fonts.css");
/* GlideClip, light editor ("StudioLight"). Used by index.html and account.html. */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --sunk: #f3f4f6; --seg: #eef0f3; --ink: #12161c; --muted: #5b6472; --faint: #7a8492;
  --line: #e3e6eb; --line2: #dde1e7; --field: #c9cfd8;
  --accent: #f2b544; --accent-ink: #1a1306; --soft: #fff8e6; --link: #8a5a00; --focus: #0b3d91; --danger: #b4472a;
  --email: #ef4444; --phone: #f59e0b; --url: #8b5cf6; --number: #0ea5e9; --money: #ec4899; --date: #a16207; --term: #10b981; --manual: #64748b;
  --ok-ink: #1e6b4a; --ok-bg: #e8f6ef; --ok-line: #bfe5d2; --warn-ink: #8a5a00; --warn-line: #f2b544;
  --panel: #ffffff; --input: #ffffff; --icon: #4a5361; --hover: #eceef2; --hover-line: #a9b0bc; --ink-hover: #2a313b;
  --stage: #eceef2; --stage-dot: #d3d8df; --logo-top: #12161c;
  --head: "Instrument Sans", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --brand: "GlideClip Wordmark", "Segoe UI", system-ui, sans-serif;   /* the "GlideClip" wordmark: part of the logo (.wordmark in fonts.css) */
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
/* dark (the "Studio" artboard): follows the system unless the top-bar switch says otherwise (theme.js sets
   data-theme on <html>). Same values twice: once for the system setting, once for the switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1014; --surface: #11151b; --panel: #151a21; --sunk: #1b212a; --seg: #1a2028; --input: #0f1318;
    --ink: #e7ebf0; --muted: #9aa4b2; --faint: #6b7584; --line: #232a34; --line2: #29313c; --field: #3a4350;
    --soft: #241e10; --link: #f2c46a; --focus: #6cb4f5; --danger: #f29a7e; --icon: #9aa4b2;
    --hover: #232a34; --hover-line: #4a5361; --ink-hover: #c9d1dc; --stage: #0f1318; --stage-dot: #1c222b; --logo-top: #f4f5f7;
    --ok-ink: #9ee3c2; --ok-bg: #12261e; --ok-line: #2e6b52; --warn-ink: #ffd27a; --warn-line: #8a6a1f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1014; --surface: #11151b; --panel: #151a21; --sunk: #1b212a; --seg: #1a2028; --input: #0f1318;
  --ink: #e7ebf0; --muted: #9aa4b2; --faint: #6b7584; --line: #232a34; --line2: #29313c; --field: #3a4350;
  --soft: #241e10; --link: #f2c46a; --focus: #6cb4f5; --danger: #f29a7e; --icon: #9aa4b2;
  --hover: #232a34; --hover-line: #4a5361; --ink-hover: #c9d1dc; --stage: #0f1318; --stage-dot: #1c222b; --logo-top: #f4f5f7;
  --ok-ink: #9ee3c2; --ok-bg: #12261e; --ok-line: #2e6b52; --warn-ink: #ffd27a; --warn-line: #8a6a1f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.offscreen { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); }
a { color: var(--link); }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 10px 16px; padding: 10px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; flex: none; }
a.brand { color: inherit; text-decoration: none; }
.brand { font-family: var(--brand); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.logo { color: var(--accent); flex: none; }
img.logo { display: block; }
.logo-top { fill: var(--logo-top); }   /* the logo's top step: ink on light, light on dark */
.theme-btn svg { display: none; }
.theme-btn[data-pick="system"] .i-system, .theme-btn[data-pick="light"] .i-light, .theme-btn[data-pick="dark"] .i-dark { display: block; }
.spacer { flex: 1 1 0; min-width: 0; }
.file-info { color: var(--muted); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
/* wide windows: one row; a long file name shortens with "..." (full name on hover) instead of pushing items to a 2nd row */
@media (min-width: 1100px) {
  .editor-page .top { flex-wrap: nowrap; }
  .editor-page .top > * { flex-shrink: 0; }
  .editor-page .file-info { flex: 0 1 auto; max-width: none; }
  .editor-page .top .spacer { flex: 1 1 0; }
}
.file-info .mono { font-family: var(--mono); color: var(--faint); }
.open-editor { display: flex; width: 100%; box-sizing: border-box; padding: 16px 20px; font-size: 17px; font-weight: 600; border-radius: 14px; text-decoration: none; }
.privacy { margin-left: auto; text-decoration: none; font-size: 13px; color: var(--ok-ink); background: var(--ok-bg);
  border: 1px solid var(--ok-line); padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.privacy u { color: var(--ink); }
.editor-page .privacy { margin-left: 0; }
/* "Sent from this tab": green while nothing has been sent, amber once something has (netmeter.js) */
/* the top bar's account control: the plan (and Team), and a round avatar that opens the account menu with "Sent from
   this tab" (license.js avatarIn, netmeter.js) */
.acct-top { position: relative; }
.acct-avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; padding: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; flex: none; }
.acct-avatar.signed-in { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.acct-avatar:hover { box-shadow: 0 0 0 3px var(--soft); }
.acct-info { display: grid; gap: 4px; justify-items: start; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.acct-info:empty { display: none; }
.acct-info p { margin: 0; }
.acct-pop .net-num { font-family: var(--mono); font-weight: 500; }
.net-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(440px, 92vw); padding: 14px 16px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18); font-size: 13px; }
.net-list { margin: 8px 0; padding: 0; list-style: none; max-height: 220px; overflow: auto; font-family: var(--mono); font-size: 12px; }
.net-list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.license { font-size: 13px; color: var(--muted); border: 1px solid var(--line2); padding: 5px 12px; border-radius: 999px; cursor: default; }
.license.ok { color: var(--ok-ink); border-color: var(--ok-line); background: var(--ok-bg); }
.license.warn { color: var(--warn-ink); border-color: var(--warn-line); background: var(--soft); }
.account-btn { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.acct-slot { display: flex; align-items: center; gap: 8px; }
.acct-slot:empty { display: none; }
/* license, account and policy: the bottom of the start screen's drop box, then the top of the editor's rail */
.acct-drop { justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.rail-spacer { flex: 1 1 auto; min-height: 84px; }   /* the foot stays clear for the assistant's round button */
.rail-acct { flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rail-acct .license { white-space: normal; overflow-wrap: anywhere; border-radius: 10px; font-size: 12px; line-height: 1.35; }
.rail-acct .account-btn { border-radius: 10px; }
.stage-bar .file-info { font-size: 13px; max-width: 32ch; }
.undo-row { display: flex; gap: 4px; }
.btn.icon-sq { width: 34px; height: 34px; padding: 0; border-radius: 8px; border-color: var(--line2); background: transparent; color: var(--icon); }
.btn.pill-btn { border-radius: 999px; padding: 7px 16px; font-size: 14px; }
/* before a video is loaded, the editor's own top-bar controls have nothing to act on */
body:has(#work[hidden]) .top :is(.undo-row, [data-section], #fileInfo) { display: none; }

/* ---------- phones: Home works; video actions ask first, "best on a computer" (phone.js; data-device="phone" on <html>) ---------- */
.phone-notice[hidden], .phone-home-note[hidden] { display: none; }
.phone-notice { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; background: rgb(0 0 0 / 0.5); }
.pn-card { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px);
  overflow-y: auto; padding: 22px 18px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.3); }
.phone-notice h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.phone-notice .btn.primary { min-height: 48px; margin-top: 6px; }
.phone-home-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); }
.pn-tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 12px; color: var(--ink); }
.pn-why { margin: 0; color: var(--muted); }
.pn-head { margin: 10px 0 0; font-weight: 600; }
.pn-act { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pn-act svg { flex: none; color: var(--icon); }
.pn-act > span { display: flex; flex-direction: column; }
.pn-name { font-weight: 600; }
.pn-sub { font-size: 13px; color: var(--muted); }
.pn-link { margin: -4px 2px 0; font-size: 13px; color: var(--muted); }
.pn-url { font-family: var(--mono); color: var(--ink); user-select: all; word-break: break-all; }
.pn-anyway { text-align: center; font-size: 14px; color: var(--muted); padding: 10px; }

/* ---------- account page ---------- */
.account-page { max-width: 620px; display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; margin: 0 auto; }
.account-page h1 { font-size: 26px; margin: 0 0 4px; }
.account-page h2 { margin: 0 0 4px; }
.account-page .who { font-weight: 600; margin: 0; }
.ws-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--soft); border: 1px solid var(--accent); font-size: 14px; }
.ws-using { margin: 6px 0; font-weight: 600; font-size: 14px; }
.rec-helper { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: var(--warn-bg, #FFF6E3); border: 1px solid var(--warn-line, #F2B544); color: var(--ink); }
.rec-helper.on { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.ok-note { padding: 8px 10px; border-radius: 8px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.account-page .msg:empty { display: none; }
.account-page .msg { color: var(--warn-ink); }
.account-page input { width: 100%; margin: 8px 0; }
.account-page .note { margin: 0 4px; }
.admin-page { max-width: 760px; }
.admin-page #panels { display: flex; flex-direction: column; gap: 16px; }
.admin-page #panels[hidden] { display: none; }
.admin-page textarea { width: 100%; box-sizing: border-box; margin: 6px 0 10px; font: inherit; }
.admin-page .toggle input, .admin-page .adm-field .toggle input { width: auto; margin: 0 6px 0 0; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; margin-top: 8px; }
.adm-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; margin: 4px 0 10px; }
.adm-field { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.4fr) auto auto; gap: 8px; align-items: center; }
.adm-field input[type="text"] { margin: 4px 0; }
.adm-tpl { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.adm-save { grid-template-columns: 1fr; }
@media (max-width: 600px) { .adm-field { grid-template-columns: 1fr 1fr; } }
.locked::after { content: "Pro"; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600;
  vertical-align: 1px; color: var(--link); background: var(--soft); border: 1px solid var(--accent); }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--field);
  background: var(--sunk); color: var(--ink); padding: 9px 14px; border-radius: 10px; font-weight: 600;
  cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--hover-line); background: var(--hover); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: #e9a930; border-color: #e9a930; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* a button at work (studio.js working()): it fills from the left as the job goes, with a moving sheen */
.btn.working { position: relative; overflow: hidden; isolation: isolate; opacity: 1; cursor: progress; }
.btn.working::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); z-index: -1;
  background: var(--accent); opacity: .5; transition: width .5s ease; }
.btn.primary.working::before { background: #b9800f; opacity: .45; }
.btn.working::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: btn-sheen 1.4s linear infinite; }
@keyframes btn-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .btn.working::after { animation: none; } .btn.working::before { transition: none; } }
.flash-target { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.btn.active { background: var(--soft); border-color: var(--accent); }
.fine { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.policy-note { display: block; margin: 4px 0 8px; }
.seg.mode button { font-size: 12px; line-height: 1.2; padding: 7px 2px; }
.locked[data-feature="trainingData"]::after { content: "Enterprise"; }
.locked[data-tag="team"]::after { content: "Business"; }
.locked[data-feature="team"]::after { content: "Business"; }
.locked[data-feature="ownVoice"]::after { content: "Business"; }
.locked[data-tag="enterprise"]::after { content: "Enterprise"; }
/* "Requires Pro" dialog (license.js) */
.gc-dialog { border: 0; padding: 0; border-radius: 16px; background: var(--panel); color: var(--ink); max-width: min(460px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.gc-dialog::backdrop { background: rgba(13,16,20,.45); }
.gc-dlg-box { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.gc-dlg-box h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.gc-dlg-box p { margin: 0; }
.gc-dlg-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; color: var(--link);
  background: var(--soft); border: 1px solid var(--accent); }
.gc-dlg-lead { font-size: 16px; }
.gc-dlg-list { margin: 2px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.gc-dlg-note { font-size: 13px; color: var(--muted); }
.gc-dlg-note.warn { color: var(--warn-ink); }
.gc-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
/* training data (training.js) */
.tr-field { margin-top: 10px; }
.tr-field input, .tr-field textarea, .tr-field select { margin-top: 4px; }
.tr-item { width: 100%; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; cursor: pointer; }
.tr-item.sel { background: var(--soft); border-color: var(--accent); }
.tr-num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
.tr-state { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.tr-state.ok { color: var(--ok-ink); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.tr-state.warn { color: var(--warn-ink); background: var(--soft); border: 1px solid var(--warn-line); }
.tr-seg { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.tr-h { margin: 10px 0 0; font-size: 15px; }
.tr-seg .grid2 { margin-top: 10px; }
.tr-seg .grid2 .btn { width: 100%; }
.tr-seg .btn.ghost { margin-top: 0; }
.tr-sumtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tr-pic { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
.tr-pic .lbl { flex-basis: 100%; }
.tr-pic .fine { flex-basis: 100%; margin: 0; }
.tr-qa { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.tr-qa-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.tr-qa-row input { grid-column: 1 / 2; }
.tr-qa-row textarea { grid-column: 1 / 2; }
.tr-qa-row button { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.tr-qa > .btn { align-self: flex-start; }
.tr-tags { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-tags .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px;
  background: var(--soft); border: 1px solid var(--line2); color: var(--ink); }
.tr-tags .tag-new { border-style: dashed; border-color: var(--accent); }
.tr-tags .tag-new::after { content: "new"; font-size: 11px; color: var(--muted); }
.tr-tags .tag-add { cursor: pointer; background: transparent; }
.tr-tags .tag-x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; }
.tr-ai { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.tr-ai .fine { margin: 0; }
.tr-by { margin: 4px 0 0; color: var(--warn-ink); }
.tr-said { margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--sunk); font-size: 13px; color: var(--muted); }
.tr-preview { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tr-q { align-self: flex-end; background: var(--ink); color: var(--bg); border-radius: 12px 12px 4px 12px; padding: 6px 12px; font-size: 14px; }
.tr-a { font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.tr-a ol { margin: 0; padding-left: 20px; }
.tr-cleared { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; }
.tr-format { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--accent); }
.tr-format .fine { margin: 2px 0 0; }
.tr-files { padding-left: 18px; }
.tr-checks { margin: 4px 0 6px; padding-left: 18px; color: var(--warn-ink); font-size: 14px; }
.linkish { border: 0; background: none; padding: 0; color: var(--link); text-align: left; font: inherit; cursor: pointer; text-decoration: underline; }
.warn-ink { color: var(--warn-ink); }
/* no blurring needed (app.js syncNoBlur): those steps step aside; a note if something sensitive turns up */
.nb-note { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--warn-line); color: var(--ink); font-size: 14px; }
.nb-note p { margin: 0 0 8px; }
.nb-actions { display: flex; gap: 8px; }
.nb-actions .btn { padding: 6px 12px; font-size: 13px; }
/* screen recording (recorder.js) */
.drop-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.drop-actions .drop-btn { width: 190px; justify-content: center; gap: 10px; font-size: 16px; padding: 11px 16px; }
.home-new { position: relative; }
.choose-from { position: absolute; z-index: 20; margin-top: 6px; display: flex; flex-direction: column; min-width: 230px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.choose-from button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.choose-from button:hover, .choose-from button:focus-visible { background: var(--hover); }
.home-integrations { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.home-integrations h2 { font-size: 18px; margin: 0 0 12px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.int-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.int-card .fine { margin: 8px 0 0; }
.int-card .btn-row { margin-top: 12px; }
.int-card .btn-row .btn { white-space: nowrap; flex: 0 0 auto; }
.int-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.int-tag { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--field); color: var(--muted); }
.int-soon { border-style: dashed; }
/* Publish to Confluence and Post to Teams (confluence.js, teams.js) */
.conf-pick { width: min(560px, calc(100vw - 32px)); max-width: none; }
.conf-pick .gc-dlg-box { width: 100%; max-width: none; box-sizing: border-box; min-width: 0; }
.conf-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.conf-field select, .conf-field input { width: 100%; box-sizing: border-box; }
.conf-mode { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; }
.conf-mode[hidden], .conf-field[hidden] { display: none; }
/* OneDrive's file browser (onedrive.js) */
.od-pick { width: min(620px, calc(100vw - 32px)); max-width: none; overflow-x: hidden; }
.od-pick .gc-dlg-box { width: 100%; max-width: none; box-sizing: border-box; min-width: 0; }
.od-row { min-width: 0; }
.od-tabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.od-crumbs { margin: 0 0 8px; }
.od-list { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.od-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.od-row:last-child { border-bottom: 0; }
.od-row:hover, .od-row:focus-visible { background: var(--hover); }
.od-ic { display: inline-flex; color: var(--muted); }
.od-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-list > .fine { padding: 10px 12px; margin: 0; }
.int-state { margin-left: auto; font-size: 12px; color: var(--muted); }
.int-state.on { color: var(--ok-ink); font-weight: 600; }
.int-state + .int-tag { margin-left: 6px; }
.int-card .btn-row .linkish { align-self: center; }
.save-files .gc-dlg-box { max-width: 560px; }
.sf-place { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.sf-place .select { width: auto; min-width: 200px; }
.sf-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.sf-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sf-row:has(input:checked) { border-color: var(--accent); background: var(--hover); }
.sf-row.off { cursor: default; }
.sf-row.off strong { color: var(--muted); }
.sf-row input { margin-top: 3px; }
.sf-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sf-txt .fine { margin: 0; }
.sf-act { align-self: flex-start; }
.item button.when { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.sf-tag { margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--field); color: var(--muted); text-decoration: none; }
.sf-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.sf-bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.sf-bar.bad > span { background: var(--danger); }
.pause-review { position: fixed; z-index: 60; inset: 76px 16px auto auto; margin: 0; max-width: min(460px, calc(100vw - 32px));
  max-height: max(260px, calc(100vh - 290px)); overflow: auto; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.pause-review .gc-dlg-box { max-width: none; }
.pause-review .pr-list { max-height: none; }
.pr-min { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.pr-min .select { width: auto; }
.pr-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; margin-bottom: 14px; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.pr-row.off { opacity: .65; }
.pr-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pr-txt .fine { margin: 0; }
.tr-outputs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.tr-output { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.tr-output:has(input:checked) { border-color: var(--accent); background: var(--hover); }
.tr-output input { margin-top: 3px; }
.tr-output > span { display: flex; flex-direction: column; gap: 2px; }
.tr-output .fine { margin: 0; }
.set-outputs { max-width: 620px; margin-bottom: 18px; }
.sr-codify .tr-outputs { max-width: 620px; }
.tr-out-tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--field); color: var(--muted); }
#saveFilesBtn { position: relative; }
.sf-count { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; background: var(--ink); color: var(--bg); }
.save-places { display: flex; flex-direction: column; gap: 8px; max-width: 620px; margin: 8px 0 18px; }
.save-place { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.save-place:has(input:checked) { border-color: var(--accent); background: var(--hover); }
.save-place > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.save-place .fine { margin: 0; }
.save-place .btn { flex: 0 0 auto; }
.save-place.off { opacity: .55; cursor: default; }
.save-place .int-tag { margin-left: 6px; }
.sp-kind { margin: -6px 0 4px; }
.sp-kind-note { max-width: 620px; margin: 0 0 18px; }
.sp-kind.off, .sp-kind-note.off { opacity: .6; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; vertical-align: 0; }
.rec-dot.paused { background: var(--faint); }
.rec-dialog { width: min(520px, calc(100vw - 32px)); max-width: min(520px, calc(100vw - 32px)); }
.rec-mic { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px 26px; }
.rec-meter { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.rec-meter span { display: block; height: 100%; width: 0; background: var(--ok-ink); transition: width .08s linear; }
.tr-check { border: 1px solid var(--ok-line, var(--line)); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.tr-check.warn { border-color: var(--warn-line, #F2B544); }
.tr-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.tr-check-row .txt { flex: 1 1 220px; }
.tr-check-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.spoken-box { margin-top: 16px; }
.spoken-box h3 { font-size: 15px; margin: 0 0 4px; }
.said-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; }
.said-row .said-what { flex: 1; min-width: 140px; word-break: break-word; }
.said-row.off .said-what { opacity: 0.6; }
.said-row .select { width: auto; }
.rec-offplan { margin: 6px 0 4px; padding: 8px 12px; border: 1px solid var(--warn-line, #F2B544); border-radius: 10px; }
.rec-offplan .gc-dlg-note { margin: 0 0 6px; }
.plan-guide { margin-top: -4px; }
.plan-took { margin: 6px 0; }
.plan-maybe { font-size: 13px; color: var(--muted); }
.rec-take-video { display: block; width: 100%; max-height: 46vh; background: #000; border-radius: 10px; margin: 6px 0 4px; }
.rec-count { font-family: var(--head); font-size: 72px; font-weight: 600; text-align: center; margin: 8px 0; }
.rec-time { font-family: var(--mono); font-size: 40px; text-align: center; margin: 4px 0; }
/* Plan the Video (prompter.js) */
.rec-plan { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.rec-plan.on { border-style: solid; background: var(--sunk); }
.rec-plan-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.rec-plan-txt .fine { margin: 0; }
.rec-plan-txt .toggle { margin: 2px 0 0; }
.plan-ed { display: grid; gap: 10px; }
.plan-ed input[type="text"], .plan-ed textarea { width: 100%; box-sizing: border-box; font: inherit; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.plan-n { width: 24px; height: 24px; margin-top: 6px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  border: 1.5px solid var(--accent); color: var(--accent); }
.plan-fields { display: grid; gap: 4px; }
.plan-fields textarea { font-size: 14px; resize: vertical; }
.plan-tools { display: flex; gap: 4px; margin-top: 2px; }
.plan-ed .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-dlg-actions .grow { flex: 1; }
/* Check Your Video (studio.js fast path) */
.check-dlg { width: min(560px, calc(100vw - 32px)); max-width: min(560px, calc(100vw - 32px)); }
.check-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.check-text { flex: 1; min-width: 200px; }
.check-icon { flex: none; width: 16px; height: 16px; border-radius: 50%; align-self: center; box-sizing: border-box; }
.check-ok .check-icon { background: var(--ok-ink); }
.check-warn .check-icon { background: var(--warn-line, #F2B544); }
.check-busy .check-icon { border: 2.5px solid var(--line); border-top-color: var(--accent); animation: plan-spin .9s linear infinite; }
/* Write the Plan with AI (prompter.js) */
.plan-stage { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-chip { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.plan-chip:hover { border-color: var(--accent); }
.plan-chip.on { background: var(--accent); border-color: var(--accent); color: #1b1406; font-weight: 600; }
.plan-other { flex: 1; min-width: 160px; font: inherit; font-size: 14px; }
.plan-q { margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.plan-busy { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font-size: 16px; font-weight: 600; }
.plan-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: plan-spin .9s linear infinite; }
@keyframes plan-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .plan-spin { animation-duration: 3s; } }
.plan-timer { margin: 0 0 8px 34px; }
.plan-ed > .btn { justify-self: start; }
.plan-mine { display: flex; align-items: center; gap: 10px; }
.plan-mine .select { flex: 1; }
.plan-or { margin: 4px 0 0; }
.plan-credits { margin: 0; }
.plan-aim { margin: -2px 0 0; }
.plan-length { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.plan-length p { margin: 4px 0 0; }
.plan-length.over { background: var(--warn-bg, #FFF6E3); border-color: var(--warn-line, #F2B544); color: var(--ink); }
.plan-before { padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 14px; }
.plan-before ul { margin: 4px 0 0; padding-left: 18px; }
.plan-fields .plan-memo { background: color-mix(in srgb, var(--focus) 9%, var(--input, #fff)); border-color: color-mix(in srgb, var(--focus) 40%, var(--line)); }   /* a note to yourself: never narrated */
.plan-check { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--warn-bg, #FFF6E3); border: 1px solid var(--warn-line, #F2B544); color: var(--ink); }
.plan-sources { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.plan-ed .plan-do { font-size: 14px; }
.plan-ed .plan-grow { resize: none; overflow: hidden; min-height: 0; }
.rec-prompt { border: 1px solid var(--line); border-radius: 12px; --btn: var(--surface); --btn-ink: var(--ink); }
/* join clips (join.js) */
.join-dialog { width: min(760px, calc(100vw - 32px)); max-width: min(760px, calc(100vw - 32px)); }
.join-box .lbl { margin-top: 4px; }
.join-list { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.join-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.join-row.odd { border-color: var(--warn-line); background: var(--soft); }
.join-num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
.join-thumb { width: 96px; flex: none; border-radius: 6px; border: 1px solid var(--line2); }
.join-txt { flex: 1 1 180px; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }   /* room for the name; the buttons wrap below when narrow */
.join-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-tools { display: flex; gap: 6px; flex: none; margin-left: auto; }
.join-redo { padding: 6px 10px; font-size: 13px; }
.join-add { display: flex; gap: 8px; flex-wrap: wrap; }
.join-seg { margin-bottom: 4px; }
.join-total { margin-right: auto; align-self: center; font-size: 14px; color: var(--muted); }
.join-bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.join-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.join-nothumb { height: 54px; background: var(--sunk); }
.join-clear { align-self: flex-start; font-size: 13px; }
.join-past-head { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.join-past { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 24vh; overflow: auto; }
.join-past li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
/* intro & outro editor (cards-ui.js) */
.co-tabs { margin: 4px 0 12px; }
.co-field { margin-top: 10px; }
.co-field input, .co-field select { margin-top: 4px; }
.co-block { border: 1px solid var(--line2); border-radius: 10px; padding: 8px; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.co-block-head { display: flex; align-items: center; gap: 8px; }
.co-block-head .spacer { flex: 1 1 auto; }
.co-add { margin-top: 6px; }
/* intro/outro: whether the card is in the video, said plainly (it applies as you type) */
.co-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.co-status strong { font-weight: 700; }
.co-status .fine { color: inherit; margin: 0; flex: 1 1 100%; }
.co-add-card { margin-top: 8px; }
.co-timing { margin: 4px 0 6px; }
.co-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
/* segment cards block (Studio > Callouts) */
.seg-cards { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-title { font-weight: 600; }
.sc-row { margin: 4px 0 6px; }
.lbl { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
textarea, input[type=text], input[type=number], input[type=password] { width: 100%; border: 1px solid var(--field); border-radius: 8px;
  padding: 8px 10px; background: var(--input); color: var(--ink); resize: vertical; }
.select { width: 100%; padding: 8px 10px; border: 1px solid var(--field); border-radius: 8px; background: var(--input);
  color: var(--ink); margin-bottom: 2px; }
input[type=range] { accent-color: var(--ink); }
/* checkboxes: a rounded square that fills in GlideClip yellow with a check mark */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--field); border-radius: 5px; background: var(--input) center / 14px no-repeat; vertical-align: -4px;
  transition: background-color .12s, border-color .12s; }
input[type=checkbox]:hover { border-color: var(--hover-line); }
input[type=checkbox]:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%231a1306%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.6 8.3 6.6 11.2 12.4 4.9%22/%3E%3C/svg%3E"); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .45; cursor: default; }
.toggle { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.toggle.strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.opt { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; }
.pill { background: var(--soft); color: var(--link); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600;
  font-family: var(--mono); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 6px; }
.grid2 select, .grid2 input { width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid var(--field); border-radius: 8px;
  background: var(--input); color: var(--ink); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.btn-row .btn { padding: 8px; font-size: 13px; }
.add-row { grid-template-columns: 1fr 1fr; }
.add-menu { position: relative; } .add-menu > .btn { width: 100%; height: 100%; }
.add-pop { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: max(100%, 300px); display: grid; gap: 1px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.add-pop button { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; text-align: left; background: none;
  border: 0; border-radius: 8px; padding: 7px 8px; color: inherit; font: inherit; cursor: pointer; }
.add-pop button:hover, .add-pop button:focus-visible, .add-pop button.active { background: var(--soft); }
.add-pop button:disabled { opacity: .45; cursor: default; }
.add-pop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.add-pop b { display: block; font-size: 13.5px; } .add-pop small { display: block; font-size: 12px; opacity: .7; } .add-pop kbd { font-size: 11px; }
.add-sep { margin: 6px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.add-hint { margin: 6px 0 0; }
.linkish { border: 0; background: none; color: var(--link); cursor: pointer; padding: 0; text-decoration: underline; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
/* the editor's account menu: Account Page (or Upgrade) and Sign Out side by side (license.js menu) */
.acct-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Home > Team: its people, invitations and the invite box (teamlib.js people) */
.team-h { font-size: 18px; margin: 24px 0 8px; }
/* a word list as tags (home.js tagBox): bubbles with an x, typed into an input that grows with the line */
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--field);
  border-radius: 10px; background: var(--surface); cursor: text; }
.tagbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--soft); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--soft);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.3; max-width: 100%; }
.tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-x { border: 0; background: none; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; }
.tag-x:hover { background: var(--line); color: var(--ink); }
.tagbox-in { flex: 1 1 140px; min-width: 120px; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; padding: 4px 2px; font: inherit; }
.pv-defaults-head { align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pv-save { display: inline-flex; align-items: center; gap: 12px; }
.team-people { display: grid; gap: 6px; max-width: 720px; }
.team-person { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.team-person .fine { display: block; }
.team-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip, #eef1f5); color: var(--muted); }
.team-tag.admin { background: var(--soft); color: var(--ink); }
.team-invite { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; max-width: 720px; }
.team-invite[hidden] { display: none; }
.team-invite input { flex: 1 1 240px; }
.team-acts { margin: 0; flex-wrap: nowrap; }
.drive-save { margin-top: 8px; }
.drive-save .fine { margin: 4px 0 0; }
.team-roles { max-width: 720px; margin-top: 10px; }
.team-roles p { margin: 4px 0; }
/* the account page's sign-in and sign-up: Clerk's own card, centred on the page (account.js) */
.signin-box { display: flex; justify-content: center; padding: 8px 0 24px; }
.signin-box[hidden] { display: none; }
/* the account page's plans, as on the landing page (account.html #pricingBox) */
.plans { display: grid; gap: 18px; width: min(1000px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }   /* wider than the account column, centred on it */
.plans[hidden] { display: none; }
.plans-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.plans-head h2 { margin: 0; font-family: "Instrument Sans", "IBM Plex Sans", sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.01em; max-width: 520px; }
.plan-period { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip, #eef1f5); border: 1px solid var(--line); }
.plan-period button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.plan-period button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.plan[hidden] { display: none; }
.plan h3 { margin: 0; font-family: "Instrument Sans", "IBM Plex Sans", sans-serif; font-size: 22px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.plan-price { margin: 0; font-family: "Instrument Sans", "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 40px; line-height: 1; }
.plan-price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-note { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan li.plan-soft { color: var(--muted); }
.plan li.plan-soft::before { content: ""; }
.plan-btn { margin-top: auto; width: 100%; padding: 12px 16px; text-decoration: none; }
.plan-pro { background: #12161C; border-color: #12161C; color: #F5F7FA; }
/* Start a Team in one step: the name and who pays (account.js) */
.team-form { display: grid; gap: 12px; margin-top: auto; }
.team-form[hidden] { display: none; }
.team-form input[type="text"] { width: 100%; }
.tf-pay { display: grid; gap: 8px; }
.tf-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--field); border-radius: 12px; cursor: pointer; }
.tf-opt:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.tf-opt input { margin-top: 3px; accent-color: var(--accent); }
.tf-opt span { display: grid; gap: 2px; }
.tf-opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.plan-pro .plan-price small, .plan-pro .plan-note, .plan-pro li.plan-soft { color: #B4BDC9; }
.card h2 { font-size: 18px; margin: 0 0 8px; }

/* ---------- page frame ---------- */
main { padding: 20px; }
.drop { border: 2px dashed var(--field); border-radius: 16px; background: var(--surface); min-height: 60vh; max-width: 1100px;
  margin: 0 auto; display: grid; place-items: center; text-align: center; padding: 24px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--soft); }
.drop-inner { max-width: 580px; }
.drop h1 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.drop p { color: var(--muted); }

/* the editor fills the window: top bar, then inspector | stage | rail, the timeline under the stage (the inspector
   keeps the full height, so its panels rarely scroll) */
.editor-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.editor-page main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.editor-page main:has(> .work:not([hidden])) { padding: 0; }
.work { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto; }

/* rail */
.rail { grid-column: 3; grid-row: 1 / 3; border-left: 1px solid var(--line); background: var(--surface); padding: 16px 14px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--seg); border: 1px solid var(--line2);
  border-radius: 10px; padding: 3px; }
.seg button { border: 0; border-radius: 8px; padding: 7px 0; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg.mode { margin-bottom: 12px; }
.rail-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; color: var(--ink);
  background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left; }
.rail-item svg { flex: none; color: var(--icon); }
.rail-item:hover { background: var(--sunk); }
.rail-item.on { background: var(--soft); border-color: var(--accent); }
.rail-item .ri-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rail-item .ri-name { font-weight: 600; }
.rail-item .ri-sub { font-size: 12px; color: var(--muted); }
.rail-item .pill { flex: none; }

/* stage */
.stage { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 20px 12px; background-color: var(--stage); background-image: radial-gradient(var(--stage-dot) 1px, transparent 1px);
  background-size: 18px 18px; }
.stage-bar { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg.shape { grid-auto-columns: auto; border-radius: 999px; }
.seg.shape button { padding: 4px 12px; border-radius: 999px; font-family: var(--mono); font-weight: 500; }
.shape-note { font-size: 13px; color: var(--faint); }
body[data-mode="safe"] .studio-only { display: none !important; }
.stage-title { font-size: 11px; letter-spacing: .08em; font-family: var(--mono); color: var(--faint); text-transform: uppercase; }
.canvas-wrap { flex: 1 1 auto; min-height: 0; position: relative; }
/* scaled to fit both ways, aspect kept: pointer maths uses the canvas's own box, so no object-fit letterboxing */
#view { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  border-radius: 8px; background: #000; box-shadow: 0 10px 30px rgba(18, 22, 28, .18); }
#view.drawing { cursor: crosshair; }
.draw-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--ink);
  color: var(--bg); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; pointer-events: none; }
.controls { flex: none; display: flex; align-items: center; gap: 12px; }
.controls input[type=range] { flex: 1; min-width: 120px; }
.btn.play { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 13px; }
.btn.play:hover:not(:disabled) { background: var(--ink-hover); }
.time { font-family: var(--mono); font-size: 14px; min-width: 110px; }

/* inspector */
.inspector { grid-column: 1; grid-row: 1 / 3; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; }
.sec { padding: 18px; }
.sec > h2 { margin: 0 0 10px; font-size: 22px; }
.sub-card { padding: 12px 14px; border-radius: 12px; background: var(--sunk); }
.sub-card .fine { margin-bottom: 0; }
.strong-line { margin: 0; font-weight: 600; }
.toggle-card { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toggle-card input { margin-top: 4px; }
.toggle-card > span { display: flex; flex-direction: column; gap: 2px; }
.audio-row { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.audio-row .lbl { font-weight: 600; color: var(--ink); font-size: 14px; margin: 0; }
.toggle.strong-ish { color: var(--ink); font-size: 14px; }
/* a header field Suggest filled in: marked until you change it */
input.suggested { border-color: var(--accent); background: var(--soft); }
.suggested-note { margin: 6px 0 0; }
.resume-bar { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px;
  background: var(--soft); border: 1px solid var(--accent); font-size: 14px; }
.resume-bar span { flex: 1 1 260px; }
.resume-bar .btn { padding: 6px 12px; font-size: 13px; }
.warn-note { color: var(--warn-ink); background: var(--soft); border: 1px solid var(--warn-line); border-radius: 8px; padding: 8px 10px; }
.cut-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cut-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: var(--sunk); font-family: var(--mono); font-size: 13px; }
.cut-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }

/* timeline */
.tl { grid-column: 2; grid-row: 2; border-top: 1px solid var(--line); background: var(--panel); padding: 8px 20px 12px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-label { font-size: 11px; letter-spacing: .08em; font-family: var(--mono); color: var(--faint); }
.tl { position: relative; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-tools { display: flex; gap: 4px; }
.tl-tools .btn.icon-sq { width: 26px; height: 24px; font-size: 15px; line-height: 1; }
.tl-fit { padding: 2px 10px; font-size: 12px; height: 24px; }
.tl-zoom-label { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tl-head .btn.tl-fold { width: 22px; height: 22px; font-size: 12px; line-height: 1; padding: 0; }
.tl.closed { padding-bottom: 8px; }
.tl.closed .timeline, .tl.closed .tl-tools, .tl.closed .tl-zoom-label { display: none; }
.tl-pop { position: absolute; z-index: 5; display: flex; gap: 6px; padding: 6px; border-radius: 10px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tl-pop .btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.timeline { width: 100%; border-radius: 6px; background: var(--sunk); display: block; cursor: pointer; }

/* the left panel folded to its icons (layout.js). The preview is limited by height, not width, so the title and the play
   controls share one line and the padding tightens. Narrow windows stack the panel under the stage: nothing to fold */
body:has(#work[hidden]) .side-fold, body.home-open .side-fold { display: none; }
@media (min-width: 1101px) {
  .work.side-closed { grid-template-columns: 60px minmax(0, 1fr); }
  .work.side-closed .inspector { overflow-x: hidden; }
  .work.side-closed .inspector > :not(.acc-head):not(.prep-row) { display: none; }
  .work.side-closed .rail-item { justify-content: center; gap: 0; padding: 12px 0; }
  .work.side-closed .rail-item :is(.ri-txt, .pill) { display: none; }
  .work.side-closed .acc-head.acc-head.acc-head::after { content: none; }
  .work.side-closed .acc-head.on { margin: 4px 8px; width: auto; padding: 8px 0; border: 1px solid var(--accent); border-radius: 10px; }
  .work.side-closed .acc-head.on svg { color: var(--ink); }
  .work.side-closed .stage { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 6px 16px; padding: 6px 14px 8px; }
  .work.side-closed .stage > * { grid-column: 1 / -1; }
  .work.side-closed .stage > .stage-bar { grid-column: 1; grid-row: 2; }
  .work.side-closed .stage > .controls { grid-column: 2; grid-row: 2; }
  .work.side-closed .stage > .canvas-wrap { grid-row: 3; }
  .work.side-closed .stage-bar .spacer, .work.side-closed .keys-hint { display: none; }
  .work.side-closed .btn.play { width: 30px; height: 30px; }
}
@media (max-width: 1100px) { .side-fold { display: none; } }

/* narrow windows: rail becomes a strip, inspector stacks under the stage, the page scrolls */
@media (max-width: 1100px) {
  .editor-page { height: auto; min-height: 100vh; overflow: visible; }
  .work { display: flex; flex-direction: column; }
  .rail { flex-direction: row; flex-wrap: wrap; align-items: center; border-left: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .rail-spacer { display: none; }
  .rail-acct { flex-direction: row; padding: 0; margin: 0 8px 0 0; border: 0; }
  .seg.mode { margin: 0 8px 0 0; }
  .stage { order: 1; }
  .canvas-wrap { flex: none; height: min(62vh, 56vw); }
  .tl { order: 2; }
  .inspector { order: 3; border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
}

/* ---------- lists ---------- */
.cats { display: grid; gap: 6px; margin-bottom: 10px; }
.cats label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
/* blur categories: a small line icon in the category's colour (the same colour marks them on the timeline) */
.dot:is(.email, .phone, .url, .number, .money, .term, .manual) { width: 16px; height: 16px; border-radius: 0; flex: none;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; vertical-align: -3px; }
.dot.email { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%221.8%22 y=%223.3%22 width=%2212.4%22 height=%229.4%22 rx=%221.8%22/%3E%3Cpath d=%22M2.4 4.4 8 8.7l5.6-4.3%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%221.8%22 y=%223.3%22 width=%2212.4%22 height=%229.4%22 rx=%221.8%22/%3E%3Cpath d=%22M2.4 4.4 8 8.7l5.6-4.3%22/%3E%3C/svg%3E"); }
.dot.phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.2 1.9h2l1 3.1-1.5 1a8 8 0 0 0 4.3 4.3l1-1.5 3.1 1v2a1.6 1.6 0 0 1-1.7 1.6A11.7 11.7 0 0 1 2.6 3.6 1.6 1.6 0 0 1 4.2 1.9z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.2 1.9h2l1 3.1-1.5 1a8 8 0 0 0 4.3 4.3l1-1.5 3.1 1v2a1.6 1.6 0 0 1-1.7 1.6A11.7 11.7 0 0 1 2.6 3.6 1.6 1.6 0 0 1 4.2 1.9z%22/%3E%3C/svg%3E"); }
.dot.url { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.2%22/%3E%3Cpath d=%22M1.8 8h12.4M8 1.8c1.7 1.8 2.5 3.8 2.5 6.2S9.7 12.4 8 14.2C6.3 12.4 5.5 10.4 5.5 8S6.3 3.6 8 1.8z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%226.2%22/%3E%3Cpath d=%22M1.8 8h12.4M8 1.8c1.7 1.8 2.5 3.8 2.5 6.2S9.7 12.4 8 14.2C6.3 12.4 5.5 10.4 5.5 8S6.3 3.6 8 1.8z%22/%3E%3C/svg%3E"); }
.dot.number { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6.3 2 5 14M11 2 9.7 14M2.5 5.7h11.3M2.2 10.3h11.3%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6.3 2 5 14M11 2 9.7 14M2.5 5.7h11.3M2.2 10.3h11.3%22/%3E%3C/svg%3E"); }
.dot.money { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 1.5v13M11.3 4.3c-.6-1-1.8-1.6-3.3-1.6-2 0-3.3 1-3.3 2.4 0 3.3 6.8 1.8 6.8 5.4 0 1.5-1.4 2.6-3.5 2.6-1.6 0-3-.7-3.6-1.9%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 1.5v13M11.3 4.3c-.6-1-1.8-1.6-3.3-1.6-2 0-3.3 1-3.3 2.4 0 3.3 6.8 1.8 6.8 5.4 0 1.5-1.4 2.6-3.5 2.6-1.6 0-3-.7-3.6-1.9%22/%3E%3C/svg%3E"); }
.dot.term { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8.6 1.9h4.6a.9.9 0 0 1 .9.9v4.6L7.7 13.8a1.3 1.3 0 0 1-1.8 0L2.2 10.1a1.3 1.3 0 0 1 0-1.8z%22/%3E%3Ccircle cx=%2211%22 cy=%225%22 r=%221%22 fill=%22%23000%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8.6 1.9h4.6a.9.9 0 0 1 .9.9v4.6L7.7 13.8a1.3 1.3 0 0 1-1.8 0L2.2 10.1a1.3 1.3 0 0 1 0-1.8z%22/%3E%3Ccircle cx=%2211%22 cy=%225%22 r=%221%22 fill=%22%23000%22/%3E%3C/svg%3E"); }
.dot.manual { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%223.5%22 width=%2212%22 height=%229%22 rx=%221.5%22 stroke-dasharray=%222.4 1.8%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222%22 y=%223.5%22 width=%2212%22 height=%229%22 rx=%221.5%22 stroke-dasharray=%222.4 1.8%22/%3E%3C/svg%3E"); }
.dot.email { background: var(--email); } .dot.phone { background: var(--phone); } .dot.url { background: var(--url); }
.dot.number { background: var(--number); } .dot.money { background: var(--money); } .dot.date { background: var(--date); } .dot.term { background: var(--term); } .dot.manual { background: var(--manual); }
.dot.step { background: #0ea5e9; } .dot.info { background: #3b82f6; } .dot.cond { background: #f59e0b; }
.dot.warn { background: #ef4444; } .dot.ok { background: #22c55e; } .dot.hl { background: transparent; border: 2px solid #0ea5e9; }
.status { margin-top: 10px; font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--seg); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.bar > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.findings { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.findings:empty { display: none; }
.findings .empty { color: var(--muted); font-size: 13px; margin: 4px 0; }
.item { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; padding: 7px 9px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 13px; }
.item:hover { background: var(--sunk); }
.item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .when { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.item.off .txt { text-decoration: line-through; color: var(--muted); }
.item .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.item.sel { background: var(--soft); border-color: var(--accent); }
.item .ttl[contenteditable] { outline: none; border-radius: 4px; }
.item .ttl[contenteditable]:focus { background: var(--input); box-shadow: 0 0 0 1px var(--accent); }
.manual-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8px 8px 30px; font-size: 12px; color: var(--muted); }
.manual-edit input { padding: 4px 6px; font-size: 12px; }
.toggle.ai { margin: 10px 0 4px; color: var(--ink); font-size: 14px; }
.ai-box { background: var(--sunk); border-radius: 10px; padding: 2px 10px 10px; }

/* ---------- callout editor ---------- */
.editor { border-top: 1px solid var(--line); padding: 14px 0 0; margin-top: 12px; display: flex;
  flex-direction: column; gap: 8px; font-size: 13px; }
.editor .r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editor .r3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.editor label { color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.editor input, .editor select { padding: 6px 8px; font-size: 13px; }
.editor select { border: 1px solid var(--field); border-radius: 8px; background: var(--input); color: var(--ink); }
.editor .time-in { display: flex; gap: 4px; }
.editor .time-in input { min-width: 0; font-family: var(--mono); }
.editor .now { border: 1px solid var(--field); background: var(--sunk); color: var(--ink); border-radius: 6px;
  font-size: 11px; padding: 0 6px; cursor: pointer; }
.editor .items { display: flex; flex-direction: column; gap: 4px; }
.editor .it { display: grid; grid-template-columns: 96px 1fr 72px auto auto; gap: 4px; align-items: center; }
.editor .it img { max-height: 28px; max-width: 100%; border-radius: 4px; }
.editor .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.editor .foot { display: flex; gap: 6px; justify-content: space-between; margin-top: 4px; }
.editor .foot .btn { padding: 6px 10px; font-size: 13px; }
.editor .hint { color: var(--muted); }
.pos-row { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: start; }
.pos-row .pos-lbl { grid-column: 1 / 3; color: var(--muted); }
.pos-grid { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 20px); gap: 4px; padding: 6px;
  border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); }
.pos-grid button { border: 1px solid var(--field); border-radius: 4px; background: var(--seg); padding: 0; cursor: pointer; }
.pos-grid button:hover { border-color: var(--accent); }
.pos-grid button.on { background: var(--accent); border-color: var(--accent); }
.pos-row .hint { align-self: center; }

/* ---------- callout preview (a short render in a dialog) ---------- */
.preview-dlg { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); color: var(--ink);
  width: min(1100px, 94vw); }
.preview-dlg::backdrop { background: rgba(18, 22, 28, 0.55); }
.preview-dlg video { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 8px; background: #000; display: block; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }

/* ---------- keyboard shortcuts ---------- */
kbd { font-family: var(--mono); font-size: 12px; padding: 0 5px; border: 1px solid var(--line2); border-bottom-width: 2px;
  border-radius: 5px; background: var(--surface); color: var(--ink); }
.keys-hint { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.keys-hint:hover { color: var(--ink); }
@media (max-width: 1300px) { .keys-hint { display: none; } }
.keys-dlg { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); color: var(--ink);
  width: min(520px, 94vw); }
.keys-dlg::backdrop { background: rgba(18, 22, 28, 0.55); }
.keys-dlg h2 { margin: 0 0 12px; font-size: 22px; }
.keys-dlg dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.keys-dlg dt { white-space: nowrap; }
.keys-dlg dd { margin: 0; color: var(--muted); }
/* Long Screenshot (longshot.js): the tall picture, scrolled in the dialog */
.ls-dlg { width: min(900px, 96vw); }
.ls-view { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); margin: 10px 0; }
.ls-view canvas { display: block; width: 100%; height: auto; }
.ls-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

/* ---------- brand kit ---------- */
/* folding groups in a panel (Frame & brand, Callouts): a heading row with a chevron, one open at a time */
.fold { border-top: 1px solid var(--line); margin: 0 -2px; padding: 0 2px; }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold + .fold { border-top: 1px solid var(--line); }
/* "?" tips: a small round button; its text shows in a popover (app.js) on hover, focus or tap */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; padding: 0; border-radius: 50%;
  border: 1px solid var(--field); background: var(--input); color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0;
  cursor: help; vertical-align: 1px; }
.tip:hover, .tip[aria-expanded="true"] { border-color: var(--accent); color: var(--ink); }
.tip-pop { position: fixed; z-index: 9500; max-width: 280px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45;
  background: var(--ink); color: var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,.25); pointer-events: none; }
/* text boxes in the settings panel grow with their content (app.js), up to about eight lines */
.inspector textarea { min-height: 40px; max-height: 190px; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 12px 0;
  font-weight: 600; font-size: 14px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; margin-left: auto; align-self: center; width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-3px);
  transition: transform .15s; }
.fold[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.fold > summary .opt { font-weight: 400; font-size: 12px; color: var(--muted); }
.fold[open] { padding-bottom: 12px; }
/* Look: a setting most leave alone, behind a link; a part's Designer link beside its Style */
.adjust { margin-top: 8px; }
.adjust > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 13px; }
.adjust > summary::-webkit-details-marker { display: none; }
.open-designer { float: right; font-size: 12px; }
.fold#brandBox { font-size: 13px; }
.fold#brandBox input[type=range] { width: 100%; }
.brand-kit { border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 13px; background: var(--sunk); }
.brand-kit summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.brand-kit[open] summary { margin-bottom: 8px; }
.bk-files { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.bk-files .btn { padding: 6px 12px; font-size: 13px; background: var(--surface); }
.bk-files img { height: 32px; width: auto; border-radius: 6px; }
.bk-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }
.bk-colors label { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); white-space: nowrap; }
.bk-colors input[type=color] { width: 34px; height: 26px; border: 1px solid var(--field); border-radius: 6px; padding: 1px; background: var(--surface); }
.brand-kit input[type=range] { width: 100%; }

/* ---------- intro / outro ---------- */
.intro-outro { display: flex; flex-direction: column; gap: 12px; }
.intro-outro .grid2 { margin: 8px 0 0; }
.intro-outro input[type=text] { padding: 7px 9px; font-size: 13px; }
.editor label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
/* blur presets: Save as preset... / Update / Delete under the level hint (app.js presetRow) */
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 2px 0 8px; }
.preset-row input[type=text] { flex: 1 1 160px; min-width: 0; }
/* owner console (/ops): one column of cards, works on a phone */
.ops-page { max-width: 760px; }
.account-page.ops-page:has(#panels:not([hidden])) { max-width: 1440px; }   /* signed in: room for two columns */
.ops-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ops-page #panels { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) {   /* overview left, customer and support right; each column scrolls on its own if long */
  .ops-page #panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ops-page #panels > .ops-col:last-child { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
.ops-page #panels[hidden] { display: none; }
.ops-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ops-head input { width: auto; margin: 0; }
.ops-find { display: flex; gap: 8px; flex-wrap: wrap; }
.ops-find input { flex: 1 1 220px; margin: 0; }
.ops-card { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.ops-card:first-child { border-top: 0; }
.ops-row { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; padding: 4px 0; font-size: 14px; }
.ops-k { color: var(--muted); }
.ops-v { overflow-wrap: anywhere; }
.ops-org { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 4px 152px; font-size: 14px; }
.ops-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0; }
.ops-stat { background: var(--soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.ops-stat b { font-size: 20px; } .ops-stat span { color: var(--muted); font-size: 13px; }
.ops-sub { font-size: 15px; margin: 14px 0 4px; }
.ops-prices { margin-top: 10px; } .ops-prices summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.ops-price { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ops-price strong { flex: 1 1 100%; font-size: 13px; }
.ops-price label { display: flex; flex-direction: column; gap: 2px; } .ops-price input { width: 90px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.ops-ticket { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; color: inherit; background: none;
  border: 0; border-top: 1px solid var(--line); padding: 10px 2px; cursor: pointer; }
.ops-ticket:hover { background: var(--soft); } .ops-ticket .fine { overflow-wrap: anywhere; }
.ops-msg { background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.ops-msg-us { margin-left: 24px; }
.ops-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#tkReply { width: 100%; box-sizing: border-box; font: inherit; margin: 6px 0; }
.ops-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--surface); color: var(--ink); }
.ops-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.ops-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; margin: 6px 0; }
.ops-dialog input { width: 100%; box-sizing: border-box; margin: 6px 0 10px; }
@media (max-width: 560px) { .ops-row { grid-template-columns: 1fr; gap: 0; } .ops-row .ops-k { font-size: 12px; } .ops-org { padding-left: 0; } }
.invite-card { position: fixed; left: 16px; bottom: 16px; z-index: 9000; width: min(340px, calc(100vw - 32px)); padding: 16px 16px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(13, 16, 20, .18); }
.invite-card p { margin: 6px 0 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.invite-title { display: block; padding-right: 22px; font-family: var(--head); font-size: 17px; }
.invite-btns { display: flex; justify-content: flex-end; gap: 8px; }
.invite-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.invite-x:hover { color: var(--ink); }
.fix-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fix-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.fix-head { display: flex; align-items: center; gap: 8px; }
.fix-head .fine { flex: 1; }
.fix-time { font-weight: 600; }
.fix-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.fix-del:hover { color: var(--ink); }
.fix-said { margin: 4px 0; font-style: italic; }
.fix-take { margin: 6px 0 4px; font-size: 13px; }
.fix-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fix-btns .btn { padding: 5px 10px; min-width: 0; }
.voice-box { margin: 8px 0; display: grid; gap: 6px; }
.voice-box label { display: flex; align-items: center; gap: 8px; }
.voice-box select { flex: 1; }
.voice-box .grid2:has(#voiceAll[hidden]) #voiceSteps { grid-column: 1 / -1; }
.voice-edit { display: grid; gap: 6px; margin-top: 8px; }
.voice-edit textarea { width: 100%; resize: vertical; font: inherit; font-size: 13px; }
.voice-edit .btn { justify-self: start; }
.fix-rec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fix-rec-time { font-weight: 600; color: var(--danger); }
.pc-list { margin: 10px 0; padding-left: 18px; max-height: 46vh; overflow: auto; display: grid; gap: 6px; font-size: 14px; }
.pc-list code { background: var(--sunk); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.pc-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ds-dlg { width: min(560px, calc(100vw - 32px)); }
.ds-dlg .lbl { margin-top: 10px; }
.ds-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; max-height: 46vh; overflow: auto; }
.ds-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ds-item.bad { border-color: var(--danger); }
.ds-row { display: flex; align-items: center; gap: 8px; }
.ds-row strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-n { color: var(--muted); }
.ds-btns { display: flex; gap: 4px; }
.ds-btns .btn { padding: 2px 8px; min-width: 0; }
.ds-probs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--danger); }
.ds-empty { padding: 6px 2px; }
.cats-fold > summary { margin-top: 2px; }
.cats-fold .cats { margin-top: 6px; }
.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; }
.cap-row .select { width: auto; }
.drop-sample { margin: 14px 0 4px; }
.drop-sample .linkish { font-size: 15px; }
/* the editor's step bar (tour.js): Prepare > Review > Create > Export */
.step-bar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; flex: none;
  background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.step-bar[hidden] { display: none; }
.sb-step { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; color: var(--muted);
  font: inherit; font-size: 14px; padding: 4px 12px 4px 6px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sb-step:hover { background: var(--sunk); color: var(--ink); }
.sb-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700;
  border: 1.5px solid currentColor; }
.sb-step.done { color: var(--ink); }
.sb-step.done .sb-n { background: var(--ok, #16a34a); border-color: transparent; color: #fff; }
.sb-step.next .sb-n { border-color: var(--accent); color: var(--link); }
.sb-step.on { background: var(--soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.sb-sep { color: var(--faint); }
@media (max-width: 560px) { .sb-t { display: none; } .sb-step { padding: 4px; } }
/* first-run tour and the "what's next" line (tour.js) */
.tour-spot { position: fixed; z-index: 9998; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent); }
.tour-dim { position: fixed; z-index: 9997; background: rgba(8, 10, 14, .55); }
.tour-card { position: fixed; z-index: 9999; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.tour-card .tour-n { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tour-card .tour-t { margin: 2px 0 6px; font-size: 17px; }
.tour-card .tour-p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.tour-btns { display: flex; gap: 8px; align-items: center; }
.tour-btns span { flex: 1; }
.next-step { display: flex; align-items: flex-start; gap: 4px; margin: 0 0 12px; padding: 8px 6px 8px 10px; border-radius: 10px;
  background: var(--soft); border: 1px solid var(--accent); font-size: 14px; }
.next-step[hidden] { display: none; }
.next-go { flex: 1; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; padding: 0; cursor: pointer; line-height: 1.4; }
.next-go:disabled { cursor: default; }
.next-k { font-weight: 700; color: var(--link); margin-right: 2px; }
.next-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
@keyframes next-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px var(--accent); } }
.next-flash { animation: next-flash 1.2s ease 2; }
/* Team Setups (setups.js) and the Save Folder (savefolder.js) */
.setup-chip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.setup-dlg { max-width: min(560px, calc(100vw - 32px)); }
.setup-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.setup-pick .lbl select { margin-top: 4px; width: 100%; }
.setup-save { border-top: 1px solid var(--line); padding-top: 10px; }
.setup-save summary { cursor: pointer; font-weight: 600; }
.setup-save-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 8px; }
.setup-save-row input, .setup-save-row select { margin-top: 4px; width: 100%; }
.setup-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin-top: 8px; }
.save-folder { margin: 6px 0 2px; overflow-wrap: anywhere; }
.save-folder .linkish { margin-left: 2px; }
@media (max-width: 560px) { .setup-pick, .setup-save-row, .setup-groups { grid-template-columns: 1fr; } }
/* Codify Tag Sets (training.js) and the account page's Shared Library (account.js) */
.tr-tagset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.tr-tagset .select { width: auto; min-width: 180px; flex: 1 1 180px; }
.lib-group h3 { margin: 14px 0 6px; font-size: 15px; }
.lib-row { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.lib-row.lib-archived { opacity: .7; }
.lib-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lib-who { margin: 0; }
.lib-acts { margin-top: 6px; }
.lib-acts .btn { padding: 4px 10px; font-size: 13px; }
.lib-more { margin-top: 6px; }
.lib-hist { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
/* the Designer (designer.js): a full-screen page over the editor */
.team-styles { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.team-styles .select { margin-top: 4px; width: 100%; }
body.designer-open { overflow: hidden; }
.designer { position: fixed; inset: 0; z-index: 900; background: var(--bg, #0d1014); color: var(--ink); display: flex; flex-direction: column; }
.designer[hidden] { display: none; }
.designer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.designer-title { font-family: var(--head); font-size: 18px; }
.designer-kind { display: inline-flex; }
.designer-kind button { padding: 6px 14px; } .designer-kind button.active { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--accent); border-radius: 8px; } .designer-play { justify-content: center; align-items: center; } .designer-play .btn { flex: 0 0 auto; width: auto; }
.designer-inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.designer-inline .select { width: auto; min-width: 220px; }
.designer-top .spacer { flex: 1 1 auto; }
.designer-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(280px, 360px) 1fr; min-height: 0; }
.designer-side { overflow-y: auto; padding: 12px 16px 24px; border-right: 1px solid var(--line); background: var(--panel); }
.designer-group { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.designer-row { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.designer-row.toggle { flex-direction: row; align-items: center; }
.designer-row input[type=range] { width: 100%; }
.designer-val { float: right; color: var(--muted); font-size: 12px; }
.designer-color { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.designer-color input[type=color] { width: 44px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
/* the Background tab (designer.js bgControls): a colour is the kit's or its own; each gradient colour or glow in a box */
/* Home > Privacy > Redactions (home.js redactPage) */
.pv-redact { margin-top: 28px; }
.pv-redact h3 { font-size: 16px; margin: 14px 0 6px; } .pv-redact h3:first-child { margin-top: 0; }
.rd-list { display: flex; flex-direction: column; gap: 8px; }
.rd-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rd-item .rd-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-item.off { opacity: 0.6; }
.rd-shape { min-height: 1.2em; }
.rd-test-out { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--sunk); white-space: pre-wrap; word-break: break-word; min-height: 2em; font-size: 14px; }
.rd-test-out mark { background: color-mix(in srgb, var(--term) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.rd-test-out mark[data-k="built"] { background: color-mix(in srgb, var(--email) 25%, transparent); }
.rd-built { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.rd-built span:nth-child(odd) { font-weight: 600; }
.redact-ticks { margin-top: 6px; }
.designer-bgpick { display: flex; gap: 8px; align-items: center; }
.designer-bgpick .select { flex: 1; min-width: 0; }
.designer-bgpick input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.designer-bgitem { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 8px 0; }
.designer-bgitem .btn { margin-top: 4px; }
.designer-save { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.designer-save input[type=text] { margin-top: 4px; width: 100%; }
.designer-stage { min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.designer-canvas { width: 100%; max-height: calc(100vh - 150px); aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #000; }
@media (max-width: 860px) { .designer-body { grid-template-columns: 1fr; } .designer-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 45vh; } }
/* narrow screens and phones (2026-10-22): one column that scrolls, the preview pinned on top so every change shows
   while the settings scroll under it; the kinds wrap instead of running off the screen */
@media (max-width: 860px) {
  .designer-body { display: flex; flex-direction: column; overflow-y: auto; }
  .designer-stage { order: -1; position: sticky; top: 0; z-index: 2; flex: none; justify-content: flex-start; gap: 6px;
    padding: 10px 12px; background: var(--bg, #0d1014); border-bottom: 1px solid var(--line); }
  .designer-canvas { max-height: 32vh; }
  .designer-play { grid-template-columns: auto 1fr; margin-top: 0; }
  .designer-side { flex: none; max-height: none; overflow: visible; border-bottom: 0; }
  .designer-top { padding: 8px 12px; gap: 8px; }
  .designer-kind { flex-wrap: wrap; }
  .designer-inline { flex: 1 1 100%; }
  .designer-inline .select { min-width: 0; flex: 1 1 auto; }
  .designer-top .spacer { display: none; }
}
/* the Designer's Arrange tools (designer.js) */
.designer-btn { font-weight: 600; }
.designer-arrange { margin-bottom: 6px; }
.designer-sel { margin-top: 10px; padding: 8px 10px 10px; border: 1px solid var(--accent); border-radius: 10px; background: var(--soft); }
.designer-sel textarea { width: 100%; margin-top: 4px; }
.designer-note { max-width: 520px; }
.designer-canvas { touch-action: none; }

/* ---------- Home (home.js): laid out like the editor, the main area scrolls and the rail switches pages ---------- */
.editor-page main:has(> .drop:not([hidden])) { padding: 0; }
.drop.home { flex: 1 1 auto; min-height: 0; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--bg);
  display: grid; grid-template-columns: minmax(0, 1fr) 248px; place-items: stretch; text-align: left; }
.drop.home.over { box-shadow: inset 0 0 0 3px var(--accent); background: var(--bg); }
.home-main { overflow-y: auto; min-height: 0; padding: 28px 36px 64px; }
.home-page { max-width: 1040px; }
.home-page h1 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.home-lead { color: var(--muted); max-width: 720px; margin: 0 0 18px; }
.home-rail { grid-column: 2; grid-row: 1; }
.home-ws { margin: 0 0 10px; font-family: var(--head); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.home-ws-setup { font-family: var(--body, inherit); font-size: 13px; font-weight: 600; color: var(--accent); }
.home-new { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.home-new .drop-actions { justify-content: flex-start; margin-bottom: 4px; }
.home-new .drop-sample { margin: 12px 0 2px; }
/* Your First Video (tour.js): three steps that tick themselves */
.first-path { max-width: 720px; margin: 0 0 18px; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.first-path[hidden] { display: none; }
.fp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fp-head strong { font-family: var(--head); font-size: 17px; }
.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fp-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.fp-steps li.now { background: var(--bg); }
.fp-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--line); color: var(--muted); }
.fp-steps li.now .fp-n { border-color: var(--accent); color: var(--accent); }
.fp-steps li.done .fp-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.fp-txt { display: grid; gap: 2px; }
.fp-txt .fine { margin: 0; }
.fp-steps li.done .fp-txt strong { color: var(--muted); }
.fp-steps li.done .btn { display: none; }
.fp-steps li:not(.now) .btn.primary { background: transparent; color: var(--ink); border-color: var(--line); }
@media (max-width: 640px) { .fp-steps li { grid-template-columns: 28px minmax(0, 1fr); } .fp-steps li .btn { grid-column: 2; justify-self: start; } }
.home-back-row { display: none; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.home-back-row #homeBack { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.has-video .home-back-row { display: flex; }
.drop.has-video .home-new { display: none; }
.home-btn { display: inline-flex; align-items: center; gap: 6px; }
body.home-open .undo-row, body.home-open #setupBtn, body.home-open #designerBtn,
body.home-open .top #saveFilesBtn { display: none; }
.home-recent h2 { font-size: 18px; margin: 0; }
/* the first-video steps carry the sample and Create Clip, so the same buttons below step aside */
.home-new:has(#firstPath:not([hidden])) :is(#recordBtn, .drop-sample) { display: none; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.home-recent .fine { margin: 12px 0 0; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.recent-grid:empty { display: none; }
.recent-card { position: relative; }
.recent-open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.recent-open:hover, .recent-open:focus-visible { border-color: var(--accent); }
.recent-card.is-open .recent-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.recent-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.recent-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-family: var(--mono); }
.recent-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.recent-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-did, .recent-when { font-size: 13px; color: var(--muted); }
.recent-rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; justify-content: center; opacity: 0; transition: opacity .15s; }
.recent-card:hover .recent-rm, .recent-rm:focus-visible { opacity: 1; }
.home-page .strong-line { margin: 18px 0 4px; }
.home-list { margin: 0 0 14px; padding-left: 20px; max-width: 720px; } .home-list li { margin: 6px 0; } .home-list strong { margin-right: 4px; }
.home-rail .rail-item.locked::after { margin-left: auto; }
/* Brand: the kit's form beside a rough preview in its colours (home.js brandPreview sets the --bp-* values) */
.brand-page { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 520px); gap: 28px; align-items: start; }
.brand-form { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 16px; }
.brand-form .strong-line { margin-top: 0; }
.brand-preview { display: grid; gap: 14px; position: sticky; top: 0;
  --bp-bg: #0b1628; --bp-panel: #121e33; --bp-accent: #0ea5e9; --bp-text: #f1f5f9; --bp-ok: #22c55e; --bp-cond: #f59e0b; --bp-warn: #ef4444; --bp-r: 14px; }
.bp-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bp-bg); color: var(--bp-text);
  border: 1px solid var(--line); }
.bp-intro, .bp-frame { background: var(--bp-back, var(--bp-bg)); }
.bp-frame { display: grid; grid-template-rows: 15% 1fr 7%; padding: 2.5% 4% 0; gap: 2%; }
.bp-band { display: flex; align-items: center; gap: 10px; min-height: 0; }
.bp-band .bp-logo { position: static; max-height: 70%; max-width: 22%; }
.bp-ftxt { display: flex; flex-direction: column; line-height: 1.1; } .bp-ftitle { font-family: var(--bp-fhead, inherit); font-size: clamp(12px, 1.6vw, 18px); }
.bp-video { position: relative; border-radius: calc(var(--bp-r) * .6); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.bp-video .bp-ui { inset: 0; border-radius: 0; background: #f7f8fa; }
.bp-progress { align-self: center; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); } .bp-progress span { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--bp-accent); }
.bp-frame.is-studio { grid-template-columns: 26% 1fr; grid-template-rows: 1fr; padding: 4%; gap: 3%; }
.bp-frame.is-studio .bp-band { flex-direction: column; align-items: flex-start; justify-content: flex-start; } .bp-frame.is-studio .bp-progress { display: none; }
.bp-frame.is-none { grid-template-rows: 1fr; padding: 0; gap: 0; } .bp-frame.is-none .bp-band, .bp-frame.is-none .bp-progress { display: none; }
.bp-frame.is-banner { grid-template-rows: 13% 1fr; padding: 0; gap: 0; } .bp-frame.is-banner .bp-progress { display: none; }
.bp-frame.is-banner .bp-band { padding: 0 3%; border-bottom: 3px solid var(--bp-accent); }
.bp-frame.is-none .bp-video, .bp-frame.is-banner .bp-video { border-radius: 0; box-shadow: none; }
.bp-video .bp-card { left: 5%; bottom: 8%; max-width: 70%; } .bp-video .bp-states { top: 8%; right: 5%; }
.bp-intro { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 9%; }
.bp-logo { position: absolute; top: 8%; left: 9%; max-height: 14%; max-width: 30%; object-fit: contain; }
.bp-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-accent); font-weight: 700; }
.bp-title { font-size: clamp(20px, 3vw, 34px); font-weight: 700; line-height: 1.1; }
.bp-by { font-size: 13px; opacity: .75; }
.bp-intro::after { content: ""; position: absolute; left: 9%; bottom: 12%; width: 18%; height: 4px; border-radius: 4px; background: var(--bp-accent); }
.bp-app { padding: 6% 7%; }
.bp-ui { position: absolute; inset: 10% 6% 10% 6%; border-radius: 8px; background: rgba(255,255,255,.92); display: grid; grid-template-rows: 14% repeat(3, 1fr); gap: 8%; padding: 6%; }
.bp-ui span { border-radius: 4px; background: #d9dee6; }
.bp-ui span:first-child { background: #b9c2cf; width: 40%; }
.bp-card { position: absolute; left: 9%; bottom: 12%; max-width: 62%; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;
  background: var(--bp-panel); color: var(--bp-text); border-radius: var(--bp-r); border-left: 4px solid var(--bp-accent); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.bp-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bp-accent); color: var(--bp-panel); font-weight: 700; font-size: 13px; }
.bp-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bp-txt small { opacity: .8; font-size: 12px; }
.bp-states { position: absolute; top: 14%; right: 9%; display: flex; flex-direction: column; gap: 6px; }
.bp-states span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: calc(var(--bp-r) / 2); color: #fff; }
.bp-states [data-s="ok"] { background: var(--bp-ok); } .bp-states [data-s="cond"] { background: var(--bp-cond); } .bp-states [data-s="warn"] { background: var(--bp-warn); }
/* what Look puts on: the card and its state colours, a highlight box, markers (an arrow, a click ring, a label, keys) */
.bp-hl { position: absolute; left: 9%; top: 45%; width: 52%; height: 15%; border: 3px solid var(--bp-hl, var(--bp-accent)); border-radius: calc(var(--bp-r) / 2);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.18); }
.bp-marks { position: absolute; inset: 0; pointer-events: none; }
.bp-click { position: absolute; left: 66%; top: 49%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid var(--bp-accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--bp-accent) 30%, transparent); }
.bp-arrow { position: absolute; left: 50%; top: 37%; width: 15%; fill: none; stroke: var(--bp-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(40deg); }
.bp-label, .bp-keys { position: absolute; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: calc(var(--bp-r) / 2); white-space: nowrap; }
.bp-label { left: 71%; top: 60%; background: var(--bp-accent); color: #fff; }
.bp-keys { right: 5%; bottom: 8%; background: rgba(15,23,42,.88); color: #fff; }
.bp-keys kbd { font: inherit; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.18); }
.brand-preview:not(.has-cards) .bp-card, .brand-preview:not(.has-cards) .bp-states, .brand-preview:not(.has-highlights) .bp-hl,
.brand-preview:not(.has-markers) .bp-marks { display: none; }
.bp-outro .bp-title { font-size: clamp(18px, 2.6vw, 30px); }
.bp-screen { font-family: var(--bp-ftext, inherit); }
.bp-eyebrow, .bp-title, .bp-txt b { font-family: var(--bp-fhead, inherit); }
.bk-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.font-pick { font-size: 15px; }
.bk-pairs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bk-pairs button { display: grid; text-align: left; gap: 1px; border: 1px solid var(--line); background: var(--field); color: inherit; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.bk-pairs button b { font-size: 15px; } .bk-pairs button small { font-size: 11.5px; opacity: .75; }
.bk-pairs button.on { border-color: var(--accent); background: var(--soft); }
.designer-swatches { display: flex; gap: 3px; margin-bottom: 4px; } .designer-swatches i { width: 18px; height: 14px; border-radius: 3px; border: 1px solid var(--line); }
.kit-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 4px 0 10px; } .kit-bar .lbl { min-width: 240px; }
#kitPickEd { width: 100%; }
.kit-summary { margin: 4px 0 16px; } .kit-summary > .fine { margin: 0 0 6px; }
.kit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-chip { display: grid; text-align: left; gap: 1px; border: 1px solid var(--line); background: var(--field); color: inherit; border-radius: 10px; padding: 6px 12px; cursor: pointer; font: inherit; }
.kit-chip small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; } .kit-chip b { font-size: 14px; }
.kit-chip:hover { border-color: var(--accent); }
#bkPresets small { display: flex; gap: 3px; margin-top: 3px; } #bkPresets i { width: 16px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
@media (max-width: 1100px) {
  .drop.home { display: flex; flex-direction: column; }
  .home-rail { order: -1; }
  .home-main { overflow: visible; padding: 20px; }
  .brand-page { grid-template-columns: minmax(0, 1fr); }
  .brand-preview { position: static; }
}
.brand-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; margin: 12px 0; }
.brand-link-name { font-weight: 600; }
.brand-link-pick, .brand-link .btn { grid-column: 1 / -1; }
/* the welcome after a new sign-up (account.js askProfile): one centred card over a soft gold wash, a question at a
   time; choices are tiles with a line saying what each means */
body.welcome-open { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, var(--soft), transparent 70%), var(--bg); }
.welcome[hidden] { display: none; }
.w-card { width: min(980px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 22, 28, .12); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.w-main { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; }
/* the info panel: a short note that follows the answer picked */
.w-aside { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(160deg, var(--soft), var(--surface) 70%); border-left: 1px solid var(--line); }
.w-aside-mark { color: var(--accent); }
.w-aside p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
@media (max-width: 760px) { .w-card { grid-template-columns: 1fr; } .w-aside { border-left: 0; border-top: 1px solid var(--line); } .w-aside p { font-size: 16px; } }
.w-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 22px; }
.w-step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.w-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.w-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .3s ease; }
.w-back { align-self: flex-start; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; margin-bottom: 8px; }
.welcome h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 20px; }
.w-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 24px; }
.w-body:has(.w-input) { display: block; }
.w-input { width: 100%; font-size: 18px; padding: 12px 14px; }
.w-choice { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--field); background: var(--surface);
  color: var(--ink); font: inherit; cursor: pointer; }
.w-choice strong { font-weight: 600; }
.w-choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.w-choice:hover { border-color: var(--hover-line); }
.w-choice.picked { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 1px var(--accent); }
.w-actions { display: flex; align-items: center; gap: 18px; }
.w-actions .btn.primary { padding: 12px 26px; font-size: 16px; }
.w-note { margin: 16px 0 0; }
/* the Designer inside Home's main area (designer.js open(kind, host)) */
.home-main.is-designer { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.home-main.is-designer .brand-tabs { margin: 12px 16px; align-self: flex-start; }
.home-designer { max-width: none; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.home-designer #designerAbout { padding: 28px 36px; max-width: 760px; }
.designer-host { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; }
.designer-host:empty { display: none; }
.designer.designer-embedded { position: static; inset: auto; z-index: auto; flex: 1 1 auto; min-height: 0; min-width: 0; }
@media (max-width: 1100px) { .home-main.is-designer { height: calc(100vh - 120px); } }
/* phones: the Designer on Home scrolls with the page (no box inside a box); its preview stays pinned on top */
@media (max-width: 600px) { .home-main.is-designer { height: auto; overflow: visible; } .designer.designer-embedded .designer-body { overflow: visible; } }
/* Home > Privacy: the blur rules for every video (home.js privacyPage) */
.pv-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 560px); gap: 18px; align-items: start; margin-bottom: 26px; }
.pv-card, .pv-preset { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 16px; }
.pv-card h2, .pv-presets h2 { font-size: 18px; margin: 0 0 4px; }
.pv-words textarea { width: 100%; }
.pv-words .lbl { margin-top: 10px; }
.pv-company { padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--ink); max-width: 900px; }
.pv-presets { max-width: 920px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-list { display: grid; gap: 10px; }
.pv-preset { display: flex; align-items: center; gap: 10px; }
.pv-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-txt .fine { margin: 0; }
.pv-form { display: block; }
.pv-form textarea, .pv-form input[type="text"] { width: 100%; }
.pv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; margin-bottom: 8px; }
.pv-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.my-words-note { margin: 4px 0 8px; }
@media (max-width: 1100px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } }
/* a section that used to be its own tab (docs/editor-plan.md): Sound in Edit, Intro & Outro in Look, Series in Render */
.sub-sec { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.sub-sec[hidden] { display: none; }
.sub-h { font-size: 16px; margin: 0 0 8px; }
/* Home > Brand's sub-tabs, Default Look, Templates, Series (home.js) */
.brand-tabs { display: inline-grid; grid-auto-flow: column; margin-bottom: 18px; }
.brand-tabs[hidden] { display: none; }
.brand-tabs button { padding: 7px 16px; }
.lk-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 320px)); gap: 12px 20px; align-items: end; margin-bottom: 8px; }
.vc-page { display: grid; gap: 14px; max-width: 560px; }
.vc-page textarea { width: 100%; resize: vertical; font: inherit; margin-top: 6px; }
.vc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vc-presets button { border: 1px solid var(--line); background: var(--field); color: inherit; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.vc-presets button.on { border-color: var(--accent); background: var(--soft); }
.vc-try { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice-cur { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.voice-lang { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice-lang select { min-width: 160px; }
.tp-h { font-size: 18px; margin: 22px 0 10px; }
.pv-preset .btn { flex: none; }

/* ---------- the editor's layout (2026-10-16): stages in the top bar, sections down the left (layout.js) ---------- */
/* the stages look like the Home button: pills; the one you're in is marked like an active button */
.top .top-modes { display: flex; gap: 6px; margin: 0 2px; padding: 0; border: 0; background: none; }
.top .top-modes button.stage-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px;
  font-weight: 600; color: var(--ink); background: var(--sunk); border: 1px solid var(--field); border-radius: 999px; line-height: 1.2; }
.top .top-modes button.stage-btn.on { background: var(--soft); border-color: var(--accent); color: var(--ink); }
.top .top-modes button.stage-btn:disabled { opacity: .5; cursor: default; }
.side-group { padding: 12px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.side-group[hidden] { display: none; }
.sf-extra { padding: 0 14px; }
.sf-extra:not(:has(> :not([hidden]))) { display: none; }
.setup-video .lbl { display: block; margin-top: 12px; }
.setup-video .select { margin-top: 4px; width: 100%; }
.setup-video .lbl .fine { display: block; margin: 4px 0 0; }
.inspector { display: flex; flex-direction: column; }
.inspector > .next-step { margin: 12px 12px 4px; }
.prep-row { padding: 0; }
.prep-row[hidden] { display: none; }
/* Labels: looks like a section header, but opens the Labels dialog (setups.js) */
.prep-labels { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.acc-head { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; flex: none; }
.acc-head[hidden] { display: none; }
.prep-labels::after { content: "+"; padding-left: 8px; color: var(--faint); font-size: 18px; line-height: 1; }
.rail-item .pill { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item .pill:empty { display: none; }
.rail-item .ri-txt { margin-right: auto; }
.work.side-closed .prep-labels::after { content: none; }
.scan-card { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(18, 22, 28, .62); }
.scan-card[hidden] { display: none; }
.sc-box { width: min(420px, 92%); max-height: 96%; overflow: auto; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.sc-box h3 { margin: 0 0 8px; font-size: 18px; }
.sc-summary { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.sc-summary[hidden] { display: none; }
.sc-box .fold { margin-bottom: 10px; }
.blur-dlg .sec { padding: 0; }
.narr-lines { max-height: 50vh; overflow: auto; margin: 8px 0; font-size: 14px; }
.acc-head::after { content: "+"; margin-left: auto; padding-left: 8px; color: var(--faint); font-size: 18px; line-height: 1; }
.acc-head.on { background: var(--soft); border-color: var(--line); }
.acc-head.on[aria-expanded="true"]::after { content: "−"; }
.acc-head.done .ri-name::after { content: " ✓"; color: var(--ok, #16a34a); }
.inspector .sec { border-bottom: 1px solid var(--line); }
.inspector .sec > h2 { display: none; }   /* the header above says it */
/* Home > Labels (home.js labelsPage) */
.lb-list { display: grid; gap: 14px; max-width: 920px; margin-bottom: 14px; }
.lb-kind h2 .opt { font-weight: 400; }
.lb-tools { display: flex; gap: 6px; }
.lb-add { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lb-add input { flex: 1 1 200px; }
.lb-newkind { max-width: 920px; }
.bk-head { margin: 14px 0 6px; font-weight: 700; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; }
.bk-back[hidden] { display: none; }
/* Home > Brand > Templates: the library (designer.js GlideClipTemplates) */
.tp-list { display: grid; gap: 6px; max-width: 1200px; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.tp-head .tp-h { margin: 0; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tp-tile { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px; }
.tp-tile.in-kit { border-color: var(--accent, #F2B544); box-shadow: 0 0 0 1px var(--accent, #F2B544); }
.tp-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--sunk); }
.tp-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-kit { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent, #F2B544); color: #111; }
.tp-acts { flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tp-acts .btn { padding: 5px 10px; font-size: 13px; }
.tp-form { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); padding: 18px 20px; }
.tp-form::backdrop { background: rgba(0,0,0,.5); }
.tp-form h2 { margin: 0 0 10px; font-size: 18px; }
.tp-form .lbl { display: grid; gap: 4px; margin-bottom: 10px; }
.tp-form input, .tp-form textarea { width: 100%; box-sizing: border-box; }
.designer-words textarea { width: 100%; box-sizing: border-box; resize: vertical; }
/* Home > Series: the series editor (home.js seriesEditor) */
.sr-edit { display: grid; gap: 8px; margin-bottom: 10px; }
.sr-edit h2 { margin: 0 0 4px; }
.sr-h { margin: 10px 0 0; font-size: 15px; }
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; }
.sr-grid .lbl, .sr-edit > .lbl { display: grid; gap: 4px; }
.sr-videos { display: grid; gap: 6px; }
.sr-video { display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 6px; align-items: center; }
.sr-n { color: var(--muted); font-size: 13px; }
.sr-mv { padding: 4px 9px; }
.lb-kit { flex: none; width: auto; max-width: 240px; }
/* Codify > Process and inherited Video Details (training.js renderProcess, renderDetails) */
.tr-pgrid { display: grid; gap: 6px; margin-bottom: 8px; }
.tr-prow { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 13px; align-items: baseline; }
.tr-inh { display: grid; gap: 2px; }
.tr-from { font-size: 12px; }
.sr-kit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-kit:empty { display: none; }
.pt-box { display: grid; gap: 8px; padding: 8px 0; }
.pt-look { display: grid; gap: 8px; }
.pt-look[hidden] { display: none; }
.pt-review { display: grid; gap: 4px; }
.pt-review[hidden] { display: none; }
.scan-parts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.scan-parts[hidden] { display: none; }
.vid-facts { margin-top: 12px; }
.vid-facts ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.vid-facts li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.vid-facts li strong { color: var(--muted); font-weight: 600; }
.vid-facts[hidden] { display: none; }
/* Studio's checklist (studio.js planUI; docs/scan-to-studio-plan.md part 3) */
.plan-wrap { position: relative; }
.plan-chip[hidden] { display: none; }
/* Home > Team > AI Assistants: a new key, shown once */
.ak-out { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 8px 0; }
.ak-out[hidden] { display: none; }
.ak-out input { font-family: ui-monospace, monospace; font-size: 12px; }
.ak-out p { grid-column: 1 / -1; margin: 0; }
.ak-list { margin: 6px 0 0; padding-left: 18px; }
/* feature tips (tips.js): a card with a looping clip, once per feature */
.tip-card { position: fixed; bottom: 20px; z-index: 90; width: min(380px, calc(100vw - 32px)); padding: 16px 16px 14px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); display: grid; gap: 8px; }
.tip-card.tip-left { left: 20px; } .tip-card.tip-right { right: 20px; }
.tip-card h3 { margin: 0; font-size: 18px; }
.tip-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tip-card video { width: 100%; aspect-ratio: 720 / 404; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.tip-ok { justify-self: start; }
.no-narr { display: grid; gap: 8px; margin-bottom: 12px; }
.no-narr[hidden] { display: none; }
.no-narr p { margin: 0; }
/* the step now: gold like the old hint in the panel; a pulse when it changes; its x takes the gold off */
.plan-chip.gold { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-color: var(--accent); }
/* What's Next's button: as tall as Save, the step and how far along, a line along its foot filling as steps are done */
#planChip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 420px;
  padding: 6px 16px; font-size: 15px; }
#planChip .pc-k { font-weight: 700; }
#planChip .pc-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#planChip .pc-n { color: var(--muted); font-size: 13px; white-space: nowrap; }
#planChip .pc-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--done, 0%); background: var(--accent); transition: width .4s; }
#planChip:not(.gold) .pc-bar { background: var(--line2); }
@media (max-width: 1250px) { #planChip .pc-n { display: none; } }
@media (max-width: 1000px) { #planChip .pc-t { display: none; } }
@keyframes plan-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 5px var(--accent); } }
.plan-chip.pulse { animation: plan-pulse 1.1s ease 1; }
.plan-wrap { display: flex; align-items: center; gap: 2px; }
.plan-x { border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.plan-x[hidden] { display: none; }
.studio-plan li.now .sp-mark { border-color: var(--accent); background: var(--soft); }
.studio-plan li.now .sp-txt { font-weight: 600; }
.studio-plan { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 560px);
  overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: grid; gap: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2); }
.studio-plan[hidden] { display: none; }
/* Home > Brand > Voice > Your Own Voice (home.js ownPage) */
.ov-box { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ov-box[hidden] { display: none; }
.ov-head { font-size: 16px; margin: 0; }
.ov-script { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 6px; font-size: 14px; line-height: 1.55; }
.ov-row { grid-template-columns: repeat(3, auto); justify-content: start; }
.ov-box audio { width: 100%; }
/* Codify > Process: the actions the recording showed (training.js recordingRows) */
.tr-trail > summary { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 13px; align-items: baseline; cursor: pointer; list-style: none; }
.tr-trail > summary::-webkit-details-marker { display: none; }
.tr-trail > summary > span:last-child::after { content: " ▸"; color: var(--muted); }
.tr-trail[open] > summary > span:last-child::after { content: " ▾"; }
.tr-actions { margin: 6px 0 0 118px; padding-left: 22px; font-size: 13px; display: grid; gap: 3px; max-height: 240px; overflow: auto; }
.sp-head { display: grid; gap: 2px; }
.studio-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.studio-plan li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.studio-plan li.done .sp-txt { color: var(--muted); }
.sp-mark { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.studio-plan li.done .sp-mark { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.sp-txt small { color: var(--muted); }
.sp-do { padding: 3px 10px; font-size: 12px; }
/* Quick Screenshot (snap.js) */
.snap-dlg { width: min(1100px, 96vw); }
.snap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.snap-head h2 { margin: 0 auto 0 0; }
.snap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.snap-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.snap-tools [data-tool] { padding: 5px 11px; font-size: 13px; }
.snap-tools [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.snap-text { flex: 1 1 160px; min-width: 120px; }
.snap-view { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); margin: 0 0 8px; }
.snap-view.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.snap-empty { display: grid; place-items: center; min-height: 260px; padding: 24px; color: var(--muted); text-align: center; }
.snap-canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
/* Quick Screenshot: choosing the part to keep (snap.js snip), over the whole window like the Snipping Tool */
.snip-dlg { inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0e13; }
.snip-dlg::backdrop { background: #0b0e13; }
.snip-wrap { width: 100%; height: 100%; overflow: auto; display: flex; align-items: center; justify-content: center; cursor: crosshair; }
.snip-wrap.tall { align-items: flex-start; }
.snip-wrap canvas { display: block; max-width: 100%; max-height: 100%; touch-action: none; }
.snip-wrap canvas.snip-tall { max-height: none; width: 100%; }
.snip-hint { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(18, 22, 28, 0.92); color: #fff; font-size: 15px; }
.snip-hint span { white-space: nowrap; }
.snap-size { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.snap-size input { width: 110px; }
/* Quick Screenshot: colour and style of a mark (snap.js) */
.snap-style { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: 100%; }
.snap-swatches { display: flex; gap: 6px; }
.snap-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.snap-swatch[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.snap-fill { margin: 0; }
