/* ============================================================
   RESONANCE · echo.mvmnt.world
   MVMNT-themed synthetic audience lab — bilingual (HE/EN)
   ============================================================ */

:root {
  --bg: #F4F2FA;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-hi: #F2F0FA;
  --surface-solid: #ffffff;

  --ink: #15121F;
  --ink-2: rgba(21, 18, 31, 0.64);
  --ink-3: rgba(21, 18, 31, 0.42);

  --line: rgba(21, 18, 31, 0.12);
  --line-soft: rgba(21, 18, 31, 0.07);

  --purple: #5227FF;
  --pink: #E5398B;
  --pink-bright: #FF6FD8;
  --lav: #6D45E6;
  --cyan: #0CA39B;
  --orange: #EA6A2E;

  /* semantic accents mapped to the MVMNT palette, readable on light */
  --accent: var(--lav);
  --accent-deep: var(--pink);
  --teal: var(--cyan);
  --amber: #B7791F;
  --green: #0CA36B;
  --violet: var(--lav);
  --neg: #DC2626;

  --grad: linear-gradient(135deg, #5227FF, #C026D3, #0CA39B);
  --grad-soft: linear-gradient(135deg, rgba(82, 39, 255, 0.12), rgba(229, 57, 139, 0.06));

  --shadow: 0 1px 2px rgba(20, 16, 40, 0.05), 0 14px 40px -22px rgba(20, 16, 40, 0.22);
  --shadow-lg: 0 2px 4px rgba(20, 16, 40, 0.06), 0 30px 70px -34px rgba(20, 16, 40, 0.30);
  --glow: 0 0 0 1px rgba(82, 39, 255, 0.30), 0 18px 50px -26px rgba(82, 39, 255, 0.45);

  --mono: 'Space Mono', ui-monospace, monospace;
  --disp: 'Instrument Serif', Georgia, serif;
  --ui: 'Outfit', system-ui, -apple-system, sans-serif;

  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient gradients + film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 88% -10%, rgba(82, 39, 255, 0.10), transparent 52%),
    radial-gradient(90% 70% at 6% 2%, rgba(229, 57, 139, 0.07), transparent 54%),
    radial-gradient(120% 90% at 50% 116%, rgba(12, 163, 155, 0.06), transparent 62%),
    linear-gradient(180deg, #FBFAFF 0%, var(--bg) 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 80px;
}

/* ============ header ============ */
header { padding: clamp(22px, 4vw, 40px) 0 clamp(18px, 3vw, 30px); position: relative; }
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.topline .brandline { display: inline-flex; align-items: center; gap: 12px; }
.topline .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.18);
}
.top-right { display: inline-flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px; background: var(--surface);
  white-space: nowrap; letter-spacing: 0.18em;
}
#statusText { color: var(--ink-2); }

/* language flag toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-toggle button .flag { font-size: 13px; line-height: 1; filter: saturate(1.1); }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.on { background: rgba(82, 39, 255, 0.12); color: var(--purple); }

.titleblock { margin-top: clamp(22px, 4vw, 42px); position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--lav);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow .ln { display: inline-block; width: 34px; height: 1px; background: rgba(21, 18, 31, 0.22); }
h1 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
  direction: ltr;
  text-align: start;
}
h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tagline {
  font-family: var(--ui);
  font-weight: 300;
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.01em;
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 620px;
}
.radar {
  position: absolute; top: -16px; inset-inline-end: -6px;
  width: clamp(90px, 15vw, 150px); height: clamp(90px, 15vw, 150px);
  opacity: 0.5; pointer-events: none;
}
@media (max-width: 760px) { .radar { display: none; } }
.rule { height: 1px; background: var(--line); margin-top: clamp(22px, 3vw, 34px); }

/* ============ layout grid ============ */
.grid {
  display: grid;
  grid-template-columns: 372px 1fr;
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(26px, 4vw, 44px);
  align-items: start;
}
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }

.sectlabel {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sectlabel .num { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.sectlabel .ln { flex: 1; height: 1px; background: var(--line-soft); }

aside { position: sticky; top: 18px; }
@media (max-width: 920px) { aside { position: static; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.panel + .panel { margin-top: 16px; }
.panel-pad { padding: clamp(18px, 2.4vw, 26px); }

/* ============ presets ============ */
.presets-h {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.presets-h span { letter-spacing: 0; color: var(--ink-3); opacity: 0.8; text-transform: none; }
.presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12.5px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { border-color: var(--lav); color: var(--lav); border-style: solid; background: rgba(177, 158, 239, 0.08); }
.chip.on { border-style: solid; border-color: var(--purple); color: var(--ink); background: rgba(82, 39, 255, 0.18); }

/* ============ form fields ============ */
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-hi);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  transition: 0.16s;
  resize: vertical;
}
.field textarea { min-height: 62px; line-height: 1.5; }
.field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B19EEF' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-inline-end: 34px;
}
html[dir="rtl"] .field select { background-position: left 13px center; }
.field.lead label { color: var(--lav); }
.field.lead select, .field.lead input { border-color: rgba(177, 158, 239, 0.4); font-weight: 600; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.16);
  background: #fff;
}
.field select option { background: var(--surface-solid); color: var(--ink); }

/* ============ buttons ============ */
.btn {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 100px;
  padding: 13px 22px;
  cursor: pointer;
  transition: 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -14px rgba(21, 18, 31, 0.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -14px rgba(21, 18, 31, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: rgba(21, 18, 31, 0.14); color: var(--ink-3); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 15px;
  width: auto;
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn .arr { font-family: var(--mono); }
.btn-full {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(82, 39, 255, 0.7);
}
.btn-full:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(82, 39, 255, 0.7); }
.btn-full:disabled { background: rgba(21, 18, 31, 0.14); color: var(--ink-3); cursor: not-allowed; box-shadow: none; transform: none; }

/* ============ audiences list ============ */
.aud-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.aud-head h3 { font-family: var(--disp); font-weight: 400; font-size: 1.45rem; }
.aud-head h3 .c { font-family: var(--mono); color: var(--lav); font-size: 0.7em; }
.aud-list { display: flex; flex-direction: column; gap: 8px; }
.aud-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-hi); border: 1px solid var(--line-soft);
  border-radius: 11px; padding: 10px 12px;
}
.aud-item .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.aud-item .ai { flex: 1; min-width: 0; cursor: pointer; }
.aud-item .an { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.aud-item .ad { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.aud-item .rm { border: none; background: transparent; color: var(--ink-3); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; flex: none; }
.aud-item .rm:hover { color: var(--pink); }

.lock-flash {
  margin-top: 12px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 10px;
  padding: 10px 12px;
}

/* ============ modes ============ */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } }
.mode {
  position: relative;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.16s;
  overflow: hidden;
}
.mode:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.mode.active {
  border-color: var(--purple);
  background: rgba(82, 39, 255, 0.10);
  box-shadow: var(--glow);
}
.mode .mnum { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); }
.mode.active .mnum { color: var(--lav); }
.mode .mttl { font-family: var(--disp); font-weight: 400; font-size: 1.35rem; line-height: 1.05; margin: 6px 0 4px; color: var(--ink); }
.mode .mdesc { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.mode.active .mdesc { color: var(--ink); }
.mode .check { position: absolute; top: 12px; inset-inline-end: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); transition: 0.16s; }
.mode.active .check { border-color: var(--purple); background: var(--purple); }
.mode.active .check::after { content: ""; position: absolute; inset: 0; margin: auto; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.content-block { transition: 0.25s; overflow: hidden; }
.ws-locked-msg { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.ws-locked-msg .big { font-family: var(--disp); font-weight: 400; font-size: 1.9rem; color: var(--ink); margin-bottom: 8px; }
.ws-locked-msg .arr { font-family: var(--mono); font-weight: 700; color: var(--lav); font-size: 12px; letter-spacing: 0.1em; margin-top: 16px; text-transform: uppercase; }

.ta-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
.ta-label .l { font-family: var(--ui); font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.ta-label .hint { font-size: 13px; color: var(--ink-3); font-style: italic; text-align: end; }
#content {
  width: 100%;
  min-height: 120px;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-hi);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  resize: vertical;
  transition: 0.16s;
}
#content:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.16); background: #fff; }
.run-row { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.run-row .btn { width: auto; flex: 1; max-width: 320px; }
.inline-warn { font-size: 13.5px; color: var(--neg); font-family: var(--ui); font-weight: 600; display: none; }

/* ad attach */
.ad-attach { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ad-btn { font-family: var(--ui); font-weight: 500; font-size: 13px; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; padding: 9px 14px; cursor: pointer; transition: 0.16s; }
.ad-btn:hover { border-color: var(--cyan); color: var(--cyan); border-style: solid; background: rgba(0, 255, 204, 0.05); }
.ad-note { font-size: 12px; color: var(--ink-3); font-style: italic; }
.ad-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; padding: 10px 12px; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 11px; }
.ad-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); flex: none; }
.ad-preview .ap-meta { flex: 1; min-width: 0; }
.ad-preview .ap-kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.ad-preview .ap-name { font-size: 13px; color: var(--ink); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-preview .ap-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ad-x { font-family: var(--ui); font-weight: 600; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 9px; padding: 6px 11px; cursor: pointer; flex: none; }
.ad-x:hover { border-color: var(--pink); color: var(--pink); }

/* reply options */
.replies { display: flex; flex-direction: column; gap: 11px; margin-bottom: 6px; }
.reply { background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--cyan); border-radius: 12px; padding: 13px 16px; }
.reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.reply-n { font-family: var(--mono); font-weight: 700; color: var(--cyan); font-size: 12px; }
.reply-tag { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: rgba(0, 255, 204, 0.1); padding: 3px 10px; border-radius: 100px; }
.reply-text { font-size: 15px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }

/* stance / persona step panels */
.stance-panel { margin-top: 16px; background: var(--surface-hi); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.sp-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lav); margin-bottom: 5px; }
.sp-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
#stanceRange { width: 100%; accent-color: var(--purple); cursor: pointer; height: 22px; }
.sp-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.sp-desc { margin: 12px 0 14px; font-family: var(--disp); font-weight: 400; font-size: 1.25rem; color: var(--ink); text-align: center; min-height: 1.4em; }
.sp-actions { display: flex; gap: 10px; }
.sp-actions .btn { width: auto; flex: 1; }
.sp-actions .btn-ghost { flex: 0 0 auto; }

/* response spectrum bell */
.bell-wrap { position: relative; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 10px 6px; margin-bottom: 8px; }
.bell-axis { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-3); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.bands { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.band { background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--lav); border-radius: 12px; padding: 12px 15px; }
.band-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.band-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.band-label { font-family: var(--ui); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.band-share { margin-inline-start: auto; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.band-react { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.band-react::before { content: "\201C"; color: var(--lav); }
.band-react::after { content: "\201D"; color: var(--lav); }
.band-driver { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }

/* competitor map */
.compete-cat { font-family: var(--ui); font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.compete-cat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-inline-end: 4px; }
.map-wrap { position: relative; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 10px 6px; margin-bottom: 8px; }
.comps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.comp { background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--cyan); border-radius: 12px; padding: 12px 15px; }
.comp-you { border-inline-start-color: var(--pink); background: rgba(255, 159, 252, 0.05); }
.comp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comp-name { font-family: var(--ui); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.comp-score { margin-inline-start: auto; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.comp-score i { display: inline-block; height: 5px; width: 48px; max-width: 48px; background: var(--cyan); border-radius: 3px; }
.comp-you .comp-score i { background: var(--pink); }
.comp-angle { font-size: 14px; line-height: 1.55; color: var(--ink); }
.comp-sw { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sw-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.5; }
.sw-k { font-family: var(--mono); font-weight: 700; font-size: 9.5px; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 5px; white-space: nowrap; color: #fff; }
.sw-pos .sw-k { background: var(--green); } .sw-neg .sw-k { background: var(--neg); color: #fff; }
.sw-v { color: var(--ink-2); }
.rec-box { background: rgba(0, 255, 204, 0.06); border: 1px solid rgba(0, 255, 204, 0.22); border-radius: 12px; padding: 16px 18px; }
.rec-box .rec-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.rec-box p { font-size: 14.5px; line-height: 1.6; color: var(--ink); }

/* survey */
.survey-opts { margin-top: 14px; }
.survey-opts textarea { width: 100%; min-height: 96px; font-family: var(--ui); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--surface-hi); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; resize: vertical; }
.survey-opts textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.22); }
.svy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.svy-chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 100px; padding: 5px 11px; }
.svy-chart { position: relative; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 10px 8px; margin-bottom: 10px; }
.svy-chart > .cinfo { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 5; }
.svy-tbl-wrap { overflow-x: auto; margin: 8px 0 22px; }
.svy-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 340px; }
.svy-tbl th, .svy-tbl td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.svy-tbl thead th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--line); }
.svy-tbl .svy-opt { text-align: start; font-weight: 700; color: var(--ink); }
.svy-tbl td b { color: var(--ink); font-size: 13.5px; }
.svy-n { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.svy-auds { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.svy-aud { background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--lav); border-radius: 12px; padding: 12px 15px; }
.svy-aud-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.svy-aud-name { font-family: var(--ui); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.svy-aud-r { font-size: 14px; line-height: 1.55; color: var(--ink); }
.svy-aud-top { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.svy-aud-top-k { font-family: var(--mono); font-weight: 700; font-size: 9.5px; letter-spacing: 0.05em; color: #fff; background: var(--lav); padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
ul.tick2 { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
ul.tick2 li { font-size: 14px; line-height: 1.5; padding: 10px 13px; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 9px; color: var(--ink); position: relative; padding-inline-start: 30px; }
ul.tick2 li::before { content: "\2192"; position: absolute; inset-inline-start: 13px; color: var(--cyan); font-family: var(--mono); font-weight: 700; }
html[dir="rtl"] ul.tick2 li::before { content: "\2190"; }
.svy-note { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-soft); padding-top: 12px; line-height: 1.5; }

/* full report separators */
.mode-section { display: flex; align-items: center; gap: 11px; margin: 30px 0 14px; }
.mode-section:first-child { margin-top: 6px; }
.mode-section .ms-tag { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; color: #fff; background: var(--purple); padding: 4px 10px; border-radius: 6px; }
.mode-section .ms-ttl { font-family: var(--disp); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--ink); }
.mode-section .ms-ln { flex: 1; height: 1px; background: var(--line); }

/* results */
#results { margin-top: 6px; }
#results .res { margin-bottom: 14px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; backdrop-filter: blur(6px); }
.res-head { padding: 16px clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(rgba(82, 39, 255, 0.035), transparent); }
.res-head .rtag { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lav); display: flex; align-items: center; gap: 8px; }
.res-head .rtag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--lav); }
.panel-badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-3); border: 1px solid var(--line-soft); border-radius: 100px; padding: 3px 9px; white-space: nowrap; }
.res-head h2 { font-family: var(--disp); font-weight: 400; font-size: 1.65rem; line-height: 1.1; }
.res-body { padding: clamp(20px, 2.6vw, 30px); position: relative; }

.summary-q { font-family: var(--disp); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.35; color: var(--ink); margin-bottom: 24px; }
.summary-q::before { content: "\201C"; color: var(--lav); }
.summary-q::after { content: "\201D"; color: var(--lav); }

.meters { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.metric .ml { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.metric .mv { font-size: 16px; font-weight: 600; }
.engage { min-width: 170px; }
.eng-bar { display: flex; gap: 5px; margin-top: 8px; }
.eng-seg { height: 8px; flex: 1; border-radius: 3px; background: var(--line); transition: 0.4s; }
.eng-seg.fill-low { background: var(--ink-3); } .eng-seg.fill-mod { background: var(--amber); } .eng-seg.fill-high { background: var(--green); }
.eng-label { font-family: var(--ui); font-size: 13.5px; font-weight: 700; margin-top: 7px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
@media (max-width: 620px) { .cols { grid-template-columns: 1fr; } }
.col h4 { font-family: var(--ui); font-weight: 700; font-size: 13px; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.col.pos h4 { color: var(--green); } .col.neg h4 { color: var(--neg); }
ul.tick { list-style: none; display: flex; flex-direction: column; gap: 9px; }
ul.tick li { font-size: 14.5px; line-height: 1.5; padding-inline-start: 20px; position: relative; color: var(--ink); }
ul.tick li::before { position: absolute; inset-inline-start: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.col.pos ul.tick li::before { content: "+"; color: var(--green); } .col.neg ul.tick li::before { content: "\2013"; color: var(--neg); }

.block-h { font-family: var(--ui); font-weight: 700; font-size: 12.5px; color: var(--ink-2); margin: 0 0 11px; display: flex; align-items: center; gap: 9px; }
.block-h .ln { flex: 1; height: 1px; background: var(--line-soft); }
ul.obj { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
ul.obj li { font-size: 14.5px; line-height: 1.5; padding: 11px 14px; background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 2px solid var(--amber); border-radius: 8px; color: var(--ink); }
.why { background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.why .why-h { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.why p { font-size: 15px; line-height: 1.65; color: var(--ink); }

/* ideas */
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .ideas { grid-template-columns: 1fr; } }
.idea { background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 15px 16px; }
.idea.box { border-top: 3px solid var(--cyan); }
.idea.crea { border-top: 3px solid var(--pink); }
.idea h6 { font-family: var(--ui); font-weight: 700; font-size: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.idea.box h6 { color: var(--cyan); } .idea.crea h6 { color: var(--pink); }
.idea ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.idea li { font-size: 14px; line-height: 1.5; padding-inline-start: 18px; position: relative; color: var(--ink); }
.idea li::before { content: "\2726"; position: absolute; inset-inline-start: 0; top: 1px; font-size: 10px; }
.idea.box li::before { color: var(--cyan); } .idea.crea li::before { color: var(--pink); }

/* voices */
.voice { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.voice:last-child { border-bottom: none; padding-bottom: 0; } .voice:first-child { padding-top: 0; }
.v-mark { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-hi); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 400; font-size: 1.2rem; color: var(--lav); }
.v-body { flex: 1; }
.v-persona { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.v-quote { font-size: 16px; line-height: 1.6; color: var(--ink); }
.v-quote::before { content: "\201C"; color: var(--lav); } .v-quote::after { content: "\201D"; color: var(--lav); }
.ps { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.ps-row { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: baseline; font-size: 13.5px; line-height: 1.5; padding: 9px 11px; border-radius: 9px; }
.ps-prob { background: rgba(255, 159, 252, 0.06); border: 1px solid rgba(255, 159, 252, 0.18); }
.ps-sol { background: rgba(0, 255, 204, 0.07); border: 1px solid rgba(0, 255, 204, 0.2); }
.ps-k { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.ps-prob .ps-k { background: var(--pink); color: #fff; }
.ps-sol .ps-k { background: var(--green); color: #fff; }
.ps-v { color: var(--ink); }

/* rewrite */
.dirs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.dir { background: var(--surface-hi); border: 1px solid var(--line-soft); border-inline-start: 3px solid var(--green); border-radius: 12px; padding: 14px 16px; }
.dir-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dir-n { font-family: var(--mono); font-weight: 700; color: var(--green); font-size: 12px; }
.dir-angle { font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: rgba(0, 255, 204, 0.1); padding: 3px 10px; border-radius: 100px; }
.dir-text { font-family: var(--disp); font-size: 17.5px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.dir-why { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line-soft); }
.caveat { background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.3); border-radius: 10px; padding: 13px 15px; font-size: 14px; line-height: 1.55; color: var(--amber); margin-bottom: 24px; }
.caveat strong { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 5px; }

/* profile */
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .bp-grid { grid-template-columns: 1fr; } }
.bp { background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; }
.bp h5 { font-family: var(--ui); font-weight: 700; font-size: 12.5px; color: var(--lav); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.bp h5 .n { font-family: var(--mono); color: var(--ink-3); font-weight: 700; font-size: 11px; }
.bp p { font-size: 14.5px; line-height: 1.6; color: var(--ink); }

/* behavioral charts */
.est-banner { background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.3); border-radius: 10px; padding: 11px 14px; margin: 6px 0 4px; font-size: 12.5px; color: var(--amber); line-height: 1.5; }
.est-banner b { font-weight: 700; }
.chart-cat { margin: 22px 0 12px; }
.chart-cat .ch { font-family: var(--ui); font-weight: 700; font-size: 12.5px; color: var(--lav); letter-spacing: 0.02em; display: flex; align-items: center; gap: 9px; }
.chart-cat .ch .ln { flex: 1; height: 1px; background: var(--line-soft); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); gap: 14px; }
.chart-card { background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 14px; min-width: 0; overflow: visible; }
.cinfo { display: inline-block; position: relative; vertical-align: middle; margin-inline-start: 6px; }
.cinfo summary { list-style: none; cursor: pointer; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-3); font-family: var(--mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; user-select: none; }
.cinfo summary::-webkit-details-marker { display: none; }
.cinfo summary:hover { color: var(--lav); border-color: var(--lav); }
.cinfo[open] summary { color: #fff; background: var(--purple); border-color: var(--purple); }
.cinfo-pop { position: absolute; top: 21px; inset-inline-start: -8px; z-index: 40; width: min(240px, 72vw); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 12.5px; font-weight: 400; line-height: 1.6; color: var(--ink); text-align: start; }
.res-body > .cinfo { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 5; }
.chart-card .ct { font-family: var(--ui); font-weight: 700; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.chart-card .ct .ty { font-family: var(--mono); font-weight: 400; font-size: 9.5px; color: var(--ink-3); }
.chart-card .cv { margin: 7px 0 3px; }
.chart-card .cc { font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 3px 0 5px; }
.mini-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); }
.mini-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }

/* comparison table */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-hi); }
.cmp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 580px; }
.cmp-tbl th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; text-align: start; padding: 11px 13px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-tbl td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink); white-space: nowrap; }
.cmp-tbl tbody tr:last-child td { border-bottom: none; }
.cmp-name { font-weight: 700; font-family: var(--ui); }
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; vertical-align: middle; }
.cmp-num { font-weight: 700; font-size: 13px; line-height: 1.1; }
.cmp-bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 5px; width: 60px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 3px; }
.cmp-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.cmp-tag { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); }
.cmp-sub { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.cmp-lead { background: rgba(82, 39, 255, 0.1); }
.cmp-tbl tfoot td { border-top: 2px solid var(--line); background: var(--surface); padding: 11px 13px; white-space: nowrap; }
.cmp-gap { font-family: var(--mono); font-weight: 700; font-size: 12.5px; color: var(--lav); }
.cmp-gaprow .cmp-name { color: var(--ink); }
.cmp-note { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; }

/* compare chart */
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; justify-content: center; }
.cl-item { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.cl-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cl-num { font-family: var(--mono); font-weight: 700; color: var(--ink-3); font-size: 12px; }
.cl-nm { color: var(--ink); font-weight: 500; }
.chart-cap { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* export bar */
.export-bar { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; align-items: center; margin-top: 4px; }
.btn-export { font-family: var(--ui); font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 100px; padding: 11px 18px; cursor: pointer; transition: 0.18s; display: inline-flex; gap: 8px; align-items: center; }
.btn-export-alt { background: var(--surface-hi); color: var(--ink); border: 1px solid var(--line); }
.btn-export:disabled { opacity: 0.6; cursor: wait; }
.btn-export:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 255, 204, 0.05); }
.export-hint { font-size: 12px; color: var(--ink-3); }
.export-note { flex-basis: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.45; }

/* connection panel */
.conn { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.conn-toggle { font-family: var(--ui); font-weight: 600; font-size: 12.5px; color: var(--ink-2); background: transparent; border: none; cursor: pointer; padding: 2px 0; display: inline-flex; align-items: center; gap: 6px; }
.conn-toggle:hover { color: var(--lav); }
.conn-body { display: none; margin-top: 11px; background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 11px; padding: 14px 15px; }
.conn-body.open { display: block; }
.conn-p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 11px; }
.conn-label { display: block; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.conn-tiny { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin-top: 8px; }
.conn-sep { height: 1px; background: var(--line-soft); margin: 15px 0 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--surface-hi); }
.seg button { font-family: var(--ui); font-weight: 500; font-size: 12.5px; color: var(--ink-2); background: transparent; border: none; border-inline-start: 1px solid var(--line); padding: 8px 14px; cursor: pointer; transition: 0.16s; }
.seg button:first-child { border-inline-start: none; }
.seg button:hover { background: rgba(0, 255, 204, 0.06); color: var(--cyan); }
.seg button.on { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; }

/* loading + error */
.loading { padding: 48px 20px; text-align: center; }
.scope { width: 64px; height: 64px; margin: 0 auto 22px; position: relative; }
.scope .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); }
.scope .ring.r2 { inset: 14px; border-color: var(--line-soft); }
.scope .sweep { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--lav); animation: spin 1s linear infinite; }
.scope .blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); top: 50%; left: 50%; margin: -3.5px; animation: blip 1.6s ease-in-out infinite; }
.loading .ltext { font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.loading .ltext span.dots { display: inline-block; width: 1.2em; text-align: start; }
.btn-stop { margin-top: 18px; font-family: var(--ui); font-weight: 600; font-size: 13.5px; background: transparent; color: var(--neg); border: 1px solid var(--neg); border-radius: 100px; padding: 8px 22px; cursor: pointer; transition: 0.16s; }
.btn-stop:hover { background: var(--neg); color: #fff; }
.errcard { background: rgba(229, 57, 139, 0.07); border: 1px solid rgba(229, 57, 139, 0.28); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: 13.5px; color: var(--pink); }
.errbox { background: rgba(220, 38, 38, 0.07); border: 1px solid rgba(220, 38, 38, 0.3); border-radius: 14px; padding: 20px 22px; color: #b91c1c; }
.errbox h3 { font-family: var(--disp); font-weight: 400; font-size: 1.4rem; margin-bottom: 7px; }
.errbox p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.errbox pre { margin-top: 10px; font-family: var(--mono); font-size: 12px; background: var(--surface-hi); padding: 10px 12px; border-radius: 8px; overflow: auto; white-space: pre-wrap; color: var(--ink-2); border: 1px solid var(--line-soft); direction: ltr; text-align: left; }

/* footer */
footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
footer .note { font-size: 13.5px; color: var(--ink-2); max-width: 700px; line-height: 1.6; }
footer .note strong { color: var(--ink); }
footer .pwr { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* print / PDF */
#printReport { display: none; font-family: var(--ui); color: var(--ink); }
.pr-head { border-bottom: 2px solid var(--purple); padding-bottom: 12px; margin-bottom: 18px; }
.pr-title { font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1.1; }
.pr-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.pr-profile { background: var(--surface-hi); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.pr-profile .pph { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); margin-bottom: 9px; }
.pr-aud { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; flex-wrap: wrap; }
.pr-sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.pr-aud-attrs { color: var(--ink-2); }
.pr-rq { background: var(--surface-hi); border: 1px solid var(--line); border-inline-start: 4px solid var(--purple); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.pr-rq .pph { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); margin-bottom: 10px; }
.pr-rq-text { font-family: var(--disp); font-size: 19px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.pr-rq-img { display: block; max-width: 420px; max-height: 320px; width: auto; border-radius: 10px; border: 1px solid var(--line); margin: 0 auto 12px; }
#printReport .res { box-shadow: none !important; border: 1px solid var(--line); animation: none; margin-bottom: 14px; }
.pr-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--ink-3); }

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #ffffff !important; }
  body::before, body::after { display: none !important; }
  .wrap { display: none !important; }
  #printReport { display: block !important; }
  @page { margin: 13mm; }
  .res, .bp, .voice, .change, .why, .rewrite-box, .idea, .chart-card, .chart-cat, .cmp-tbl tr, .dir, .ps-row, .reply, .band, .bell-wrap, .comp, .map-wrap, .rec-box, .svy-aud, .svy-chart, .svy-tbl tr { break-inside: avoid; }
  .cinfo { display: none; }
  .mode-section { break-after: avoid; break-inside: avoid; margin-top: 18px; }
  .chart-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .cmp-wrap { overflow: visible; }
  .cmp-tbl { min-width: 0; font-size: 11px; }
  .cmp-tbl th, .cmp-tbl td { padding: 7px 8px; }
  .cmp-bar { width: 46px; }
}

/* ============ step-by-step guide ============ */
.steps-guide {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 30px);
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: var(--shadow);
}
.steps-guide .step { display: inline-flex; align-items: center; gap: 11px; flex: 1; min-width: 175px; opacity: 0.5; transition: 0.25s; }
.steps-guide .step .sx {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  background: var(--surface-hi); color: var(--ink-3); border: 1px solid var(--line);
  transition: 0.25s;
}
.steps-guide .step .st { font-family: var(--ui); font-weight: 600; font-size: 13.5px; color: var(--ink-2); line-height: 1.15; }
.steps-guide .step.on { opacity: 1; }
.steps-guide .step.on .sx { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(82, 39, 255, 0.6); animation: stepPulse 2s ease-in-out infinite; }
.steps-guide .step.on .st { color: var(--ink); }
.steps-guide .step.done { opacity: 0.92; }
.steps-guide .step.done .sx { background: var(--green); color: #fff; border-color: transparent; animation: none; }
.steps-guide .step.done .sx::after { content: "\2713"; }
.steps-guide .step.done .sx .sxn { display: none; }
.steps-guide .step-arrow { color: var(--ink-3); font-family: var(--mono); font-size: 15px; flex: none; }
html[dir="rtl"] .steps-guide .step-arrow { transform: scaleX(-1); }
@media (max-width: 760px) { .steps-guide { border-radius: 18px; } .steps-guide .step { min-width: 140px; } .steps-guide .step-arrow { display: none; } }

/* empty-state emphasis: spotlight STEP 1 */
body.no-aud #formPanel { box-shadow: 0 0 0 1px rgba(82, 39, 255, 0.4), 0 18px 50px -26px rgba(82, 39, 255, 0.5); border-color: rgba(82, 39, 255, 0.4); }
body.no-aud #modes { opacity: 0.7; transition: 0.3s; }
body.no-aud #modes:hover { opacity: 1; }
.sectlabel .step-word { color: var(--ink-3); }

@keyframes stepPulse { 0%, 100% { box-shadow: 0 6px 16px -8px rgba(82, 39, 255, 0.6); } 50% { box-shadow: 0 0 0 5px rgba(82, 39, 255, 0.14), 0 6px 16px -8px rgba(82, 39, 255, 0.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1.3); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.reveal.d1 { animation-delay: 0.06s; } .reveal.d2 { animation-delay: 0.13s; } .reveal.d3 { animation-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
