/* מיפוי תהליכים · HeyAI. One accent, warm neutrals, light + dark via variables. */
:root {
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #faf9f6; --sunk: #efede7;
  --text: #16181b; --text-2: #3c4046; --muted: #6d7178; --line: #e4e1d9; --line-2: #d4d0c6;
  --accent: #C6F135; --accent-ink: #111111; --accent-soft: #f2fbd3; --accent-line: #c9de86; --accent-text: #4b6500;
  --btn: #111111; --btn-ink: #ffffff; --lime: #C6F135;
  --manual: #b4590a; --manual-soft: #fdf1e2; --slow: #8a6a00; --drop: #c03a2b; --drop-soft: #fbe9e6;
  --flag: #a8650a; --flag-soft: #fcf1de; --ok: #1e8a4c;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 6px 24px -12px rgba(20, 22, 26, .18);
  --shadow-lg: 0 20px 60px -24px rgba(20, 22, 26, .35);
  --r: 14px; --r-sm: 10px;
  --font: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f1113; --surface: #171a1d; --surface-2: #1b1f22; --sunk: #131618;
  --text: #ecebe6; --text-2: #c9c8c2; --muted: #969ba1; --line: #2a2f33; --line-2: #363c41;
  --accent: #C6F135; --accent-ink: #111111; --accent-soft: #252f10; --accent-line: #55701a; --accent-text: #C6F135;
  --btn: #C6F135; --btn-ink: #111111; --lime: #C6F135;
  --manual: #f0a050; --manual-soft: #33230f; --slow: #e2c35c; --drop: #f07a6a; --drop-soft: #3a1c18;
  --flag: #f0b257; --flag-soft: #342610; --ok: #4fc98a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.mode-client [data-only='interviewer'] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--muted); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--sunk); }
.icon-btn.icon-sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.is-on { color: var(--flag); background: var(--flag-soft); }
.link { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 12px; font-weight: 600; }
.tag-flag { background: var(--flag-soft); color: var(--flag); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent-text); }
.bar { display: block; height: 4px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }

/* ---------- forms ---------- */
.in { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.in:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.in { resize: vertical; min-height: 84px; line-height: 1.6; }
.in-num { max-width: 160px; text-align: left; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- home ---------- */
.home { max-width: 980px; margin: 0 auto; padding: 20px 20px 80px; }
.home-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.hero { padding: 56px 0 40px; max-width: 680px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 14px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.a-list h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.a-card { display: flex; flex-direction: column; }
.a-main { display: grid; gap: 6px; padding: 18px 18px 12px; text-decoration: none; }
.a-name { font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.a-meta { font-size: 13px; color: var(--muted); }
.a-main .bar { margin-top: 6px; }
.a-actions { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 12px 10px; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); text-align: center; }

.dlg { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(440px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(10, 12, 14, .45); backdrop-filter: blur(2px); }
.dlg-body { display: grid; gap: 14px; padding: 24px; }
.dlg-body h2 { font-size: 20px; }
.dlg-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center;
  gap: 4px 14px; padding: 10px 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.tb-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tb-name { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.save::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-inline-end: 6px; vertical-align: 1px; }
.save[data-state='saving']::before { background: var(--flag); }
.save[data-state='err'] { color: var(--drop); }
.save[data-state='err']::before { background: var(--drop); }
.tabs { display: flex; gap: 2px; background: var(--sunk); padding: 3px; border-radius: 999px; }
.tab { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tb-tools { display: flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent-text); }
.progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 8px 0 10px; }
.progress .bar { flex: 1; max-width: 420px; }
.pg-t { font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.body { flex: 1; display: grid; }

/* ---------- interview ---------- */
.shell[data-view='interview'] .body { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--tb, 100px); align-self: start; height: calc(100vh - var(--tb, 100px)); overflow: auto; padding: 14px 12px 40px;
  border-inline-end: 1px solid var(--line); background: var(--surface-2); }
.side-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 8px 8px; }
.chapters, .ch-qs { list-style: none; margin: 0; padding: 0; }
.ch { margin-bottom: 2px; }
.ch-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; background: transparent; border-radius: 10px;
  cursor: pointer; text-align: start; font-weight: 600; font-size: 15px; color: var(--text-2); }
.ch-btn:hover { background: var(--sunk); }
.ch.is-current > .ch-btn { color: var(--text); }
.ch-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--sunk); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ch.is-current .ch-num { background: var(--accent); color: var(--accent-ink); }
.ch-num.is-done { background: var(--accent-soft); color: var(--accent-text); }
.ch-title { flex: 1; }
.ch-count { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.flag-c { color: var(--flag); }
.ch-qs { padding: 2px 0 10px; margin-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.qlink { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; margin-inline-start: 6px; border-radius: 8px; text-decoration: none;
  font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.qlink:hover { background: var(--sunk); }
.qlink.is-current { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.ql-n { color: var(--muted); flex: none; }
.ql-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st { flex: none; width: 16px; text-align: center; font-weight: 700; }
.st-done { color: var(--ok); }
.st-todo { color: var(--line-2); }
.st-flag { color: var(--flag); }

.stage { padding: 28px clamp(16px, 4vw, 56px) 80px; min-width: 0; }
.stage-top { display: flex; align-items: center; gap: 10px; margin: 0 auto 12px; max-width: 760px; }
.crumb { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ch-intro { max-width: 760px; margin: 0 auto 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text-2); font-size: 14.5px; }
.ch-intro strong { color: var(--accent-text); margin-inline-end: 6px; }
.qcard { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.qcard.is-flagged { border-color: color-mix(in srgb, var(--flag) 45%, var(--line)); }
.strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.dot { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font-size: 13px; font-weight: 700;
  text-decoration: none; background: var(--sunk); color: var(--muted); border: 1px solid transparent; }
.dot:hover { border-color: var(--line-2); }
.dot-done { background: var(--accent-soft); color: var(--accent-text); }
.dot-flag { background: var(--flag-soft); color: var(--flag); }
.dot.is-current { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.req { color: var(--accent-text); font-weight: 700; }
.optnl { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.q-title { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; outline: none; }
.q-help { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.int-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--flag-soft); color: var(--text-2);
  font-size: 14px; border-inline-start: 3px solid var(--flag); }
.int-note strong { color: var(--flag); }
.editor { margin-top: 22px; }
.hint-sel { margin-bottom: 10px; font-weight: 500; }
.opts { display: grid; gap: 8px; }
.opts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; text-align: start; font-size: 16px; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--accent-line); background: var(--surface-2); }
.opt kbd { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2);
  font: 600 12.5px/1 var(--font); color: var(--muted); background: var(--surface-2); }
.opt-l { flex: 1; }
.opt-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.is-multi .opt-mark { border-radius: 6px; }
.opt.is-sel { border-color: var(--accent-text); background: var(--accent-soft); }
.opt.is-sel kbd { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-text); }
.opt.is-sel .opt-mark { border-color: var(--accent-text); background: var(--accent); }
.opt.is-sel .opt-mark::after { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 5px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.opts:not(.is-multi) .opt.is-sel .opt-mark::after { inset: 5px; width: auto; height: auto; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }
.in-other { margin-top: 10px; }
.q-inline-msg { margin-top: 8px; font-size: 14px; color: var(--flag); }
.q-error { margin-top: 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--drop-soft); color: var(--text); font-size: 14.5px; }
.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.q-actions [data-next] { margin-inline-start: auto; min-width: 140px; }
.btn-flag[aria-pressed='true'] { border-color: var(--flag); color: var(--flag); background: var(--flag-soft); }
.kbd-hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.int-notes { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.int-notes summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--flag); }
.int-notes textarea { margin-top: 8px; min-height: 60px; }
.scrim { display: none; }
.only-mobile { display: none !important; }

/* cost */
.cost { display: grid; gap: 18px; }
.cost-row { display: flex; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-2); }
.chip:hover { border-color: var(--accent-line); }
.chip.is-sel, .chip[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); font-weight: 600; }
.chip-accent { border-color: var(--accent-text); color: var(--accent-text); font-weight: 600; }
.cost-sum { font-size: 15px; font-weight: 600; color: var(--accent-text); }

/* steps */
.step-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; padding-inline-start: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.step.is-manual { border-color: color-mix(in srgb, var(--manual) 55%, var(--line)); background: var(--manual-soft); }
.step-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunk); font-weight: 700; font-size: 13px; color: var(--muted); }
.step.is-manual .step-n { background: var(--manual); color: #fff; }
.step-label { border-color: transparent; background: transparent; padding: 8px; }
.step-label:hover { border-color: var(--line); }
.step-marks { font-size: 12px; color: var(--drop); white-space: nowrap; }
.step .chip-toggle { min-height: 32px; padding: 0 12px; flex: none; }
.step .chip-toggle[aria-pressed='true'] { background: var(--manual); border-color: var(--manual); color: #fff; }
.step-add { display: flex; gap: 8px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.sug-t { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.suggest .chip { min-height: 32px; font-size: 13.5px; }
.mini-flow { margin-top: 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.mini-flow:empty { display: none; }
.warn { margin-top: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--flag-soft); border: 1px solid color-mix(in srgb, var(--flag) 40%, transparent); }
.warn-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- map ---------- */
.shell[data-view='map'] .body { grid-template-columns: minmax(0, 1fr); }
.panel-open .shell[data-view='map'] .body { grid-template-columns: minmax(0, 1fr) 420px; }
.map-main { padding: 24px clamp(12px, 3vw, 36px) 60px; min-width: 0; }
.map-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.h-view { font-size: 24px; font-weight: 800; }
.map-head p { font-size: 14px; margin-top: 4px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: var(--surface); }
.lg-manual { background: var(--manual-soft); border-color: var(--manual); }
.lg-slow { border-color: var(--slow); border-width: 2.5px; }
.lg-drop { border-color: var(--drop); background: var(--drop-soft); }
.lg-empty { border-style: dashed; }
.map-canvas { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.map-svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.map-svg .sec-title { font-size: 12.5px; font-weight: 700; fill: var(--muted); letter-spacing: .02em; }
.map-svg .link { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.map-svg .flow { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
.map-svg .arrow-head { fill: var(--accent-text); }
@keyframes flow { to { stroke-dashoffset: -12; } }
.node { cursor: pointer; outline: none; }
.node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.3; transition: stroke .15s, fill .15s; }
.node:hover rect { stroke: var(--accent-text); }
.node:focus-visible rect, .node.is-selected rect { stroke: var(--accent-text); stroke-width: 2.4; }
.node.is-selected rect { fill: var(--accent-soft); }
.node.is-empty rect { stroke-dasharray: 5 4; fill: var(--surface-2); }
.node-org rect { fill: var(--accent); stroke: var(--accent-text); }
.node-org .n-label { fill: var(--accent-ink); }
.node-org .n-sub { fill: var(--accent-ink); opacity: .8; }
.node-org.is-empty rect { fill: var(--accent-soft); stroke: var(--accent-text); }
.node-org.is-empty .n-label, .node-org.is-empty .n-sub { fill: var(--accent-text); }
.node-step.is-manual rect { fill: var(--manual-soft); stroke: var(--manual); }
.node-step.is-slow rect { stroke: var(--slow); stroke-width: 3; }
.node-step.is-dropped rect { fill: var(--drop-soft); stroke: var(--drop); }
.node-empty rect { fill: transparent; }
.n-label { font-size: 14px; font-weight: 600; fill: var(--text); }
.n-sub { font-size: 12px; fill: var(--muted); }
.n-badge { fill: var(--text); }
.node-step.is-manual .n-badge { fill: var(--manual); }
.n-badge-t { font-size: 11.5px; font-weight: 700; fill: var(--surface); }
@media (prefers-reduced-motion: reduce) { .map-svg .flow { animation: none; } }

.panel { position: sticky; top: var(--tb, 100px); align-self: start; height: calc(100vh - var(--tb, 100px)); overflow: auto; background: var(--surface);
  border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.panel-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 18px 18px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 20px; font-weight: 800; margin-top: 2px; }
.panel-body { padding: 8px 18px 40px; }
.pq { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.pq-head { display: flex; gap: 8px; align-items: flex-start; }
.pq-head h3 { flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.pq .editor { margin-top: 10px; }
.pq .opt { min-height: 42px; padding: 8px 12px; font-size: 14.5px; }
.pq .opts-grid { grid-template-columns: 1fr; }
.pq .step { flex-wrap: wrap; }
.pq-open { font-size: 13px; margin-top: 8px; justify-self: start; }
.pq-sub { font-size: 13px; color: var(--muted); margin-top: 18px; }
.pq .field { margin-bottom: 12px; }

/* ---------- answers ---------- */
.shell[data-view='answers'] .body { grid-template-columns: minmax(0, 1fr); }
.answers { max-width: 900px; width: 100%; margin: 0 auto; padding: 24px 20px 80px; }
.ans-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.done-banner { padding: 14px 18px; border-radius: var(--r); background: var(--accent-soft); margin-bottom: 18px; }
.ans-ch { margin-bottom: 26px; }
.ans-ch h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-2); }
.ans-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ans { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ans:last-child { border-bottom: 0; }
.ans .st { margin-top: 2px; }
.ans-body { flex: 1; min-width: 0; }
.ans-q { font-size: 14px; color: var(--muted); }
.ans-a { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.ans-a .step-inline.is-manual { color: var(--manual); }
.ans .int-note { margin-top: 8px; padding: 6px 10px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .panel-open .shell[data-view='map'] .body { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-flex !important; }
  .shell[data-view='interview'] .body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); height: 100%; z-index: 40;
    transform: translateX(100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); background: var(--surface); }
  .side-open .sidebar { transform: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 12, 14, .4); z-index: 39; }
  .stage { padding-top: 16px; }
  .panel-open .shell[data-view='map'] .body { grid-template-columns: minmax(0, 1fr); }
  .panel { position: fixed; inset: auto 0 0 0; top: auto; height: auto; max-height: 78vh; z-index: 30; border-radius: 20px 20px 0 0; border: 1px solid var(--line); }
  .panel-open .map-main { padding-bottom: 60vh; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 10px 0; gap: 6px 8px; }
  .tabs { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; }
  .tab { flex: 1; text-align: center; padding: 7px 8px; }
  .seg button { padding: 5px 9px; font-size: 12.5px; }
  .save { display: none; }
  .sidebar { top: 0; }
  .progress { padding: 6px 2px 8px; }
  .opts-grid { grid-template-columns: 1fr; }
  .qcard { border-radius: 16px; }
  .q-actions { gap: 8px; }
  .q-actions [data-next] { order: -1; width: 100%; margin: 0; }
  .q-actions > .btn { flex: 1; }
  .btn-flag span { font-size: 14px; }
  .kbd-hint { display: none; }
  .hero { padding: 32px 0 28px; }
  .lead { font-size: 16.5px; }
  .step { flex-wrap: wrap; }
  .step { gap: 4px 6px; }
  .step-label { flex: 1 1 calc(100% - 44px); min-width: 0; }
  .step-marks { flex: 1; padding-inline-start: 36px; white-space: normal; }
  .step .chip-toggle { margin-inline-start: auto; }
  .answers { padding: 18px 12px 60px; }
  .ans { padding: 12px; }
}
@media (max-width: 400px) {
  .seg button { padding: 4px 7px; font-size: 12px; }
  .tb-name { font-size: 15.5px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* ---------- scores (step B) ---------- */
:root { --red: #c0392b; --red-soft: #fbe8e5; --yellow: #b7860b; --yellow-soft: #fbf2d9; --green: #1e8a4c; --green-soft: #e2f3e8; }
:root[data-theme='dark'] { --red: #f0806f; --red-soft: #3a1c18; --yellow: #e8c15a; --yellow-soft: #33290f; --green: #5fcf8c; --green-soft: #15301f; }
.shell[data-view='scores'] .body { grid-template-columns: minmax(0, 1fr); }
.scores { max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 20px 80px; }
.band-red { --b: var(--red); --bs: var(--red-soft); }
.band-yellow { --b: var(--yellow); --bs: var(--yellow-soft); }
.band-green { --b: var(--green); --bs: var(--green-soft); }
.band-none { --b: var(--line-2); --bs: var(--sunk); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.sc-overall { display: flex; align-items: center; gap: 20px; }
.sc-overall .h-view { color: var(--b); }
.sc-ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--b) calc(var(--p) * 1%), var(--sunk) 0); }
.sc-ring span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--surface); font-size: 32px; font-weight: 800; color: var(--b); }
.sc-controls { display: grid; gap: 10px; justify-items: start; max-width: 340px; }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--text-2); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.sw-track { width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.sw-track span { position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch[aria-checked='true'] .sw-track { background: var(--accent); }
.switch[aria-checked='true'] .sw-track span { inset-inline-start: 21px; }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 2px; font-size: 13px; color: var(--text-2); }
.lg-b { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--b); margin-inline-start: 8px; }
.lg-b:first-child { margin-inline-start: 0; }
.sc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; align-content: start; }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sc-head h2 { font-size: 18px; font-weight: 800; }
.sc-num { display: block; padding: 4px 12px; border-radius: 12px; background: var(--bs); color: var(--b); font-size: 26px; font-weight: 800; }
.sc-num span { font-size: 13px; font-weight: 600; opacity: .8; }
.sc-missing { font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--flag-soft); color: var(--text-2); }
.dims { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dim { display: grid; grid-template-columns: minmax(130px, 1.3fr) 1fr 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.dim-bar { height: 8px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.dim-bar span { display: block; height: 100%; background: var(--b); border-radius: 6px; }
.dim-v { font-weight: 700; text-align: end; }
.dim.is-missing .dim-v { color: var(--flag); font-weight: 600; font-size: 12.5px; }
.sc-facts { margin: 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sc-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sc-facts dt { color: var(--muted); flex: none; }
.sc-facts dd { margin: 0; font-weight: 600; text-align: end; }
.how { font-size: 13.5px; }
.how summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.how ul { margin: 8px 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.how p { margin-top: 6px; }
@media (max-width: 720px) {
  .scores { padding: 16px 12px 60px; }
  .sc-top { padding: 16px; }
  .sc-ring { width: 84px; height: 84px; }
  .sc-ring span { width: 64px; height: 64px; font-size: 26px; }
  .sc-grid { grid-template-columns: 1fr; }
  .dim { grid-template-columns: minmax(120px, 1.2fr) 1fr 52px; }
}

/* ---------- opportunities (step C) ---------- */
.shell[data-view='opps'] .body { grid-template-columns: minmax(0, 1fr); }
.opps { max-width: 1200px; }
.op-sec { margin-top: 26px; }
.op-sec h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.op-list:not(.op-later) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.op-card { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.op-card.is-first { border-color: var(--accent-line); }
.op-rank { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sunk); font-weight: 800; color: var(--muted); }
.op-card.is-first .op-rank { background: var(--accent); color: var(--accent-ink); }
.op-body { display: grid; gap: 6px; min-width: 0; }
.op-body h3 { font-size: 17px; font-weight: 700; }
.op-said { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.op-why { margin: 0; padding-inline-start: 18px; font-size: 14.5px; color: var(--text-2); display: grid; gap: 4px; }
.op-why-1 { font-size: 14px; color: var(--text-2); }
.op-metric { font-weight: 700; color: var(--accent-text); font-size: 14.5px; margin-top: 4px; }
.op-later .op-card { padding: 12px 16px; box-shadow: none; }
.op-later .op-body h3 { font-size: 15.5px; }
.op-table-wrap { margin-top: 20px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.op-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1100px; }
.op-table th { position: sticky; top: 0; background: var(--surface-2); text-align: start; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.op-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.op-table tr:last-child td { border-bottom: 0; }
.op-table tr.is-first td:first-child { box-shadow: inset -3px 0 0 var(--accent-text); }
.op-table .num { white-space: nowrap; font-weight: 600; }
.op-table code { font-size: 12px; color: var(--text-2); background: var(--sunk); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.op-whys { font-size: 12.5px; margin-top: 4px; max-width: 320px; }
.op-needs { margin: 0; padding-inline-start: 16px; }
@media (max-width: 720px) {
  .tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tab { flex: none; }
  .op-list:not(.op-later) { grid-template-columns: 1fr; }
}
.opps { max-width: 1440px; }
.op-table { min-width: 1240px; }
.op-table td:nth-child(2) { min-width: 240px; }
.op-table td:nth-child(3) { min-width: 200px; }
.op-table td:nth-child(9) { min-width: 180px; }
.op-whys { max-width: none; }

/* ---------- report (step D) ---------- */
.shell[data-view='report'] .body { grid-template-columns: minmax(0, 1fr); }
.report { max-width: 1000px; }
.rp-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hint-internal { color: var(--flag); font-weight: 600; }
.rp-section { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); margin-bottom: 20px; box-shadow: var(--shadow); }
.rp-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.rp-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.rp-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; margin: 4px 0 6px; }
.rp-h { font-size: 16px; font-weight: 800; margin: 18px 0 10px; }
.rp-h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.rp-findings { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 16px; }
.rp-findings li::marker { color: var(--accent-text); font-weight: 800; }
.rp-first { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rp-main { font-size: 14.5px; }
.rp-tasks { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.report .sc-card h3 { font-size: 17px; font-weight: 800; }
.rp-legend { margin-bottom: 14px; }
.lg-auto { background: var(--accent-soft); border-color: var(--accent-text); }
.rp-flow { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: var(--surface-2); }
.rp-flow h3 { font-size: 15px; font-weight: 800; padding: 12px 16px 0; }
.rp-after { border-color: var(--accent-line); }
.rp-flow .map-svg .sec-title { display: none; }
.node-step.is-auto rect { fill: var(--accent-soft); stroke: var(--accent-text); stroke-width: 1.8; }
.node-step.is-auto .n-sub { fill: var(--accent-text); font-weight: 600; }
.node-step.is-auto .n-badge { fill: var(--accent); }
.rp-plan { min-width: 760px; }
.rp-check { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rp-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.rp-check .box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; margin-top: 3px; }
.rp-next { padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rp-next h3 { font-size: 20px; font-weight: 800; margin: 2px 0 6px; color: var(--accent-text); }
.rp-team { border-color: color-mix(in srgb, var(--flag) 40%, var(--line)); }
.rp-pack-score { font-weight: 800; color: var(--accent-text); white-space: nowrap; }
.rp-sales div { align-items: flex-start; }
.rp-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 30px; }
.report .ans-ch h3 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; }
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
.toast.is-on { opacity: 1; transform: translate(50%, 0); }
@media (max-width: 720px) {
  .rp-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rp-first { grid-template-columns: 1fr; }
}

/* ---------- print: A4, RTL, page per section, colors kept ---------- */
@media print {
  :root, :root[data-theme='dark'] {
    --bg: #fff; --surface: #fff; --surface-2: #fafaf7; --sunk: #efede7; --text: #16181b; --text-2: #3c4046; --muted: #6d7178;
    --line: #e4e1d9; --line-2: #d4d0c6; --accent: #C6F135; --accent-ink: #111; --accent-soft: #f2fbd3; --accent-line: #c9de86; --accent-text: #4b6500; --btn: #111; --btn-ink: #fff;
    --manual: #b4590a; --manual-soft: #fdf1e2; --slow: #8a6a00; --drop: #c03a2b; --drop-soft: #fbe9e6; --flag: #a8650a; --flag-soft: #fcf1de;
    --red: #c0392b; --red-soft: #fbe8e5; --yellow: #b7860b; --yellow-soft: #fbf2d9; --green: #1e8a4c; --green-soft: #e2f3e8;
    --shadow: none; --shadow-lg: none; color-scheme: light;
  }
  @page { size: A4; margin: 12mm 12mm 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; font-size: 12px; }
  .topbar, .no-print, .skip, .toast, .sidebar, .scrim { display: none !important; }
  .shell, .body { display: block; min-height: 0; }
  .report { max-width: none; padding: 0; margin: 0; }
  .rp-section { box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; break-before: page; }
  .rp-cover { break-before: auto; }
  .sc-card, .op-card, .rp-flow, .rp-next, tr, .ans { break-inside: avoid; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-first { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-table-wrap { overflow: visible; border: 1px solid var(--line); box-shadow: none; }
  .op-table, .rp-plan { min-width: 0; font-size: 10.5px; }
  .op-table td:nth-child(n) { min-width: 0; }
  .op-table th { position: static; }
  .map-svg .flow { animation: none; }
  a { text-decoration: none; }
  .rp-foot { margin-top: 16px; }
}

/* ---------- step E: storage badge, import/export, share ---------- */
.store-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 10px;
  border-radius: 999px; background: var(--sunk); white-space: nowrap; }
.store-mode::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.store-cloud { color: var(--accent-text); background: var(--accent-soft); }
.store-cloud::before { background: var(--accent); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head h2 { margin: 0; }
.list-tools { display: flex; gap: 8px; }
label.btn { cursor: pointer; }
.share-shell .body { display: block; }
.share-top { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; padding: 14px 20px 0; }
.share-box { flex-basis: 100%; padding: 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; gap: 8px; font-size: 14px; }
.share-row { display: flex; gap: 8px; }
.share-row .in { font-size: 13px; }
@media (max-width: 720px) { .tb-title .store-mode { display: none; } }

/* ---------- LINKAI brand: lime only as fill / highlighter, dark text on lime ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo { height: 26px; width: auto; flex: none; overflow: visible; }
.logo-word { font: 800 19px/1 var(--font); fill: var(--text); }
.logo-ai { fill: #111; }
.logo-hl { fill: var(--lime, #C6F135); }
.logo-mark path { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.logo-mark circle { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.logo-mark .node-a { fill: var(--lime, #C6F135); stroke: #111; }
.brand-sub { font-weight: 600; color: var(--muted); font-size: 14px; border-inline-start: 1px solid var(--line-2); padding-inline-start: 10px; white-space: nowrap; }
.node-step.is-auto .n-badge-t, .node-org .n-badge-t { fill: #111; }
.mark { background: var(--lime); color: #111; padding: 0 .2em; border-radius: 4px; }

/* ---------- step F: respondents, business details, lead ---------- */
.who { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  background: var(--sunk); color: var(--muted); border: 1.5px solid var(--line-2); }
.who-doing { border-color: var(--flag); color: var(--flag); background: var(--flag-soft); }
.who-done { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.who.is-me { opacity: .6; }
.who-lg { min-width: 40px; height: 40px; font-size: 14px; }
.n-who circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.n-who text { font-size: 9.5px; font-weight: 800; fill: var(--muted); }
.n-who.who-doing circle { stroke: var(--flag); } .n-who.who-doing text { fill: var(--flag); }
.n-who.who-done circle { stroke: var(--ok); } .n-who.who-done text { fill: var(--ok); }
.n-who.is-me { opacity: .55; }
.node-org .n-who circle { fill: #fff; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--muted); }
.pill-doing { background: var(--flag-soft); color: var(--flag); }
.pill-done { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.tag-lead { background: var(--lime); color: #111; gap: 6px; }
.tag-lead .link { color: #111; font-size: 12px; }
.tag-who { background: var(--accent-soft); color: var(--accent-text); }
.tag-changed { background: var(--flag-soft); color: var(--flag); }
.ans-meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.resp-intro { max-width: 760px; margin: 0 auto 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: grid; gap: 8px; font-size: 15px; }
.resp-done { display: grid; gap: 12px; }
.people-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.people-cards { margin-bottom: 20px; }
.person { padding: 16px; display: grid; gap: 10px; }
.person-head { display: flex; gap: 12px; align-items: center; }
.person-head h3 { font-size: 16px; font-weight: 800; }
.person-head p { font-size: 13px; }
.person-ch { display: flex; flex-wrap: wrap; gap: 6px; }
.person-actions { display: flex; justify-content: space-between; align-items: center; }
.people-table { min-width: 520px; }
.in-sel { padding: 8px 10px; font-size: 14px; max-width: 280px; }
.biz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.biz.is-compact { grid-template-columns: 1fr; }
.biz-warn { color: var(--flag); font-size: 12.5px; }
.rp-biz { font-size: 13.5px; color: var(--text-2); margin: -2px 0 6px; }
.dlg-wide { width: min(620px, calc(100vw - 32px)); }
.dlg-body textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.ch-btn .who { margin-inline-start: 2px; }
@media (max-width: 720px) { .biz { grid-template-columns: 1fr; } .brand-sub { display: none; } }
@media print { .logo-hl, .tag-lead, .logo-mark .node-a { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- step G: notes + voice ---------- */
.notes { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 14px; display: grid; gap: 12px; }
.notes .int-notes { margin-top: 0; border-top: 0; padding-top: 0; }
.voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tt-target { display: inline-flex; gap: 10px; font-size: 13px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.tt-target label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.rec-live { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--drop-soft); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--drop); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.rec-text { flex-basis: 100%; font-size: 14px; }
.clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex-basis: 100%; }
.clip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.clip audio { height: 34px; max-width: 100%; }
.clip.is-missing audio { display: none; }
.clip.is-missing::before { content: 'ההקלטה שמורה בדפדפן אחר'; color: var(--muted); }
.tag-auto { background: var(--flag-soft); color: var(--flag); gap: 6px; }
.tag-mic { background: var(--sunk); color: var(--text-2); }
.op-quote { margin: 4px 0; padding: 6px 12px; border-inline-start: 3px solid var(--lime); background: var(--surface-2); border-start-end-radius: 0; border-end-end-radius: 0; border-radius: 8px 0 0 8px; font-size: 14px; color: var(--text-2); }
.note-sum { display: grid; gap: 6px; margin-top: 6px; }
@media print { .op-quote { border-inline-start-color: #C6F135; } }
