/* ============================================================
   HexIQ visuele editor - chrome (huisstijl HexIQ)
   Namespace: alles begint met .hxq-  zodat niets met de site botst.
   Merk: Inter + verloop oranje -> roze -> magenta.
   ============================================================ */
:root {
  /* HexIQ huisstijl */
  --hxq-grad: linear-gradient(100deg, #ff7a3c 0%, #f2557a 52%, #e5407f 100%);
  --hxq-grad-soft: linear-gradient(100deg, rgba(255,122,60,.12), rgba(229,64,127,.12));
  --hxq-o1: #ff7a3c;
  --hxq-p1: #f2557a;
  --hxq-m1: #e5407f;
  --hxq-ink: #3a2e33;      /* inkt */
  --hxq-soft: #8c7a82;     /* zacht */
  --hxq-light: #fffaf6;    /* licht */
  --hxq-panel: #ffffff;
  --hxq-panel-2: #fdf3ee;
  --hxq-line: #f0dfd8;
  --hxq-line-2: #ead2c9;
  --hxq-accent: #e5407f;
  --hxq-accent-soft: rgba(229,64,127,.13);
  --hxq-accent-line: rgba(229,64,127,.7);
  --hxq-pink: #ff2e93;              /* felroze selectie-omlijning */
  --hxq-pink-soft: rgba(255,46,147,.20);
  --hxq-topbar-h: 58px;
  --hxq-sidebar-w: 312px;
  --hxq-radius: 14px;
  --hxq-radius-sm: 10px;
  --hxq-shadow: 0 18px 50px rgba(90,30,60,.16), 0 4px 14px rgba(90,30,60,.08);
  --hxq-shadow-sm: 0 4px 14px rgba(90,30,60,.10);
  --hxq-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hxq-root, .hxq-root * { box-sizing: border-box; }
.hxq-root button { font-family: var(--hxq-font); cursor: pointer; }
.hxq-hidden { display: none !important; }

/* ============================================================
   FRAME: topbalk + zijbalk reserveren ruimte, site schuift mee
   ============================================================ */
html.hxq-shift {
  margin-top: var(--hxq-topbar-h) !important;
  margin-left: var(--hxq-sidebar-w) !important;
  transition: margin .22s cubic-bezier(.4,0,.2,1);
}
/* sticky site-headers moeten onder de editor-topbalk blijven, niet erachter */
html.hxq-shift .site-header,
html.hxq-shift header[class*="header"] { top: var(--hxq-topbar-h) !important; }

/* ---------- discreet bewerk-lipje aan de rechterrand (buiten bewerkmodus) ----------
   Bijna onzichtbaar voor bezoekers: een smal, halfdoorzichtig lipje waarvan
   maar een paar pixels uitsteken. Bij hover/focus (of een tik op mobiel)
   schuift het uit en toont het 'Bewerken'. De eigenaar weet dat het er zit. */
.hxq-launch {
  position: fixed; right: 0; top: 62%; z-index: 2147483000;
  display: inline-flex; align-items: center;
  height: 60px; padding: 0 14px 0 9px; border: none;
  border-radius: 12px 0 0 12px;
  background: rgba(30, 22, 27, .30);
  color: #fff; font-size: 12.5px; font-weight: 600;
  font-family: var(--hxq-font); white-space: nowrap;
  transform: translate(calc(100% - 10px), -50%);
  opacity: .45; cursor: pointer;
  transition: transform .22s ease, opacity .22s ease,
              background .22s ease, box-shadow .22s ease;
}
.hxq-launch:hover, .hxq-launch:focus-visible, .hxq-launch:active {
  transform: translate(0, -50%);
  opacity: 1;
  background: var(--hxq-grad);
  box-shadow: 0 12px 34px rgba(90, 30, 60, .35);
}
.hxq-launch__grip {
  width: 3px; height: 24px; flex: 0 0 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .85);
}
.hxq-launch__pen { font-size: 14px; line-height: 1; margin-left: 10px; }
.hxq-launch__txt { margin-left: 7px; }

/* ---------- merk-hexagon ---------- */
.hxq-logo-img { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; display: block; }
.hxq-brand-badge {
  width: 30px; height: 30px; flex: 0 0 30px;
  background: transparent;
  display: grid; place-items: center;
  overflow: visible;
}
.hxq-brand-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   OVERLAYS (login)
   ============================================================ */
.hxq-overlay {
  position: fixed; inset: 0; z-index: 2147483200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(58,46,51,.42); backdrop-filter: blur(6px);
  font-family: var(--hxq-font); animation: hxq-fade .2s ease;
}
@keyframes hxq-fade { from { opacity: 0; } to { opacity: 1; } }
.hxq-card {
  width: min(420px, 92vw);
  background: var(--hxq-panel); color: var(--hxq-ink);
  border: 1px solid var(--hxq-line); border-radius: var(--hxq-radius);
  box-shadow: var(--hxq-shadow); padding: 30px 28px;
  animation: hxq-pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes hxq-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.hxq-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.hxq-card p { margin: 0 0 20px; font-size: 13.5px; color: var(--hxq-soft); line-height: 1.55; }
.hxq-brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.hxq-brand-name { font-weight: 700; font-size: 15px; letter-spacing: .01em; color: var(--hxq-ink); }
.hxq-brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--hxq-soft); letter-spacing: .03em; }

.hxq-input {
  width: 100%; padding: 12px 14px; border-radius: var(--hxq-radius-sm);
  background: var(--hxq-panel-2); border: 1px solid var(--hxq-line-2);
  color: var(--hxq-ink); font-size: 15px; font-family: var(--hxq-font);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.hxq-input:focus { border-color: var(--hxq-accent-line); box-shadow: 0 0 0 3px var(--hxq-accent-soft); }
.hxq-input::placeholder { color: #bfa9b0; }

.hxq-btn {
  padding: 11px 18px; border-radius: var(--hxq-radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; color: var(--hxq-ink);
  background: var(--hxq-panel-2); transition: background .15s ease, transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.hxq-btn:hover { background: #f7e7e0; }
.hxq-btn:active { transform: translateY(1px); }
.hxq-btn--primary { background: var(--hxq-grad); color: #fff; border-color: transparent; box-shadow: var(--hxq-shadow-sm); }
.hxq-btn--primary:hover { filter: brightness(1.05); background: var(--hxq-grad); }
.hxq-btn--ghost { background: transparent; border-color: var(--hxq-line-2); color: var(--hxq-soft); }
.hxq-btn--ghost:hover { background: var(--hxq-panel-2); color: var(--hxq-ink); }
.hxq-btn--danger:hover { background: #fbe4e4; color: #b23a3a; }
.hxq-row { display: flex; gap: 10px; margin-top: 18px; }
.hxq-row .hxq-btn { flex: 1; }
.hxq-err { color: #c0504d; font-size: 12.5px; margin-top: 10px; min-height: 16px; }

/* ============================================================
   TOPBALK (vast frame bovenaan)
   ============================================================ */
.hxq-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hxq-topbar-h);
  z-index: 2147483100; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--hxq-panel);
  border-bottom: 1px solid var(--hxq-line);
  box-shadow: 0 2px 14px rgba(90,30,60,.06);
  font-family: var(--hxq-font); color: var(--hxq-ink);
  animation: hxq-drop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes hxq-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.hxq-topbar .hxq-logo {
  display: inline-flex; align-items: center; gap: 10px; padding-right: 6px; font-weight: 700; font-size: 14px;
}
.hxq-topbar .hxq-logo b { background: var(--hxq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hxq-topbar .hxq-logo__name { white-space: nowrap; }
.hxq-topbar .hxq-logo__div {
  width: 5px; height: 5px; border-radius: 50%; flex: 0 0 5px;
  background: var(--hxq-line-2); margin: 0 4px 0 8px;
}
.hxq-topbar .hxq-logo__page {
  font-weight: 500; font-size: 11.5px; color: var(--hxq-soft);
  letter-spacing: .02em; white-space: nowrap;
}
.hxq-topbar .hxq-spacer { flex: 1; }

/* device-schakelaar (segmented control) */
.hxq-device {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--hxq-panel-2); border: 1px solid var(--hxq-line);
  border-radius: 11px;
}
.hxq-dev {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: none; border-radius: 8px; background: transparent;
  color: var(--hxq-soft); font-size: 12.5px; font-weight: 600;
  transition: background .14s, color .14s, box-shadow .14s;
}
.hxq-dev svg { width: 16px; height: 16px; flex: 0 0 16px; }
.hxq-dev:hover { color: var(--hxq-ink); }
.hxq-dev.is-active {
  background: var(--hxq-panel); color: var(--hxq-m1);
  box-shadow: var(--hxq-shadow-sm);
}
@media (max-width: 1180px) { .hxq-dev span { display: none; } .hxq-dev { padding: 7px 9px; } }
.hxq-sep { width: 1px; height: 26px; background: var(--hxq-line); margin: 0 2px; }
.hxq-tb {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: var(--hxq-soft); font-size: 13px; font-weight: 600; transition: background .15s, color .15s, border-color .15s;
}
.hxq-tb:hover:not(:disabled) { background: var(--hxq-panel-2); color: var(--hxq-ink); }
.hxq-tb:disabled { opacity: .4; cursor: default; }
/* leeg maar wel klikbaar: legt bij een klik uit waarom er niets gebeurt */
.hxq-tb--leeg { opacity: .45; }
.hxq-tb--save { color: var(--hxq-ink); border-color: var(--hxq-line-2); }
.hxq-tb--publish { background: var(--hxq-grad); color: #fff; box-shadow: var(--hxq-shadow-sm); }
.hxq-tb--publish:hover:not(:disabled) { filter: brightness(1.05); color: #fff; }
.hxq-tb--done { color: var(--hxq-ink); background: var(--hxq-panel-2); border-color: var(--hxq-line-2); }

/* ============================================================
   ZIJBALK (vast frame links)
   ============================================================ */
.hxq-side {
  position: fixed; top: var(--hxq-topbar-h); left: 0; bottom: 0; width: var(--hxq-sidebar-w);
  z-index: 2147483090; background: var(--hxq-light);
  border-right: 1px solid var(--hxq-line);
  font-family: var(--hxq-font); color: var(--hxq-ink);
  display: flex; flex-direction: column;
  animation: hxq-slidein .24s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes hxq-slidein { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.hxq-side__head {
  display: flex; align-items: center; gap: 11px; padding: 16px 18px;
  border-bottom: 1px solid var(--hxq-line); flex: 0 0 auto;
}
.hxq-side__head .hxq-side__title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.hxq-side__head .hxq-side__title b { background: var(--hxq-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hxq-side__head .hxq-side__title small { display: block; font-weight: 500; font-size: 11px; color: var(--hxq-soft); letter-spacing: .02em; }
.hxq-side__scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; }
.hxq-side__scroll::-webkit-scrollbar { width: 9px; }
.hxq-side__scroll::-webkit-scrollbar-thumb { background: var(--hxq-line-2); border-radius: 9px; border: 2px solid var(--hxq-light); }

.hxq-sec { border-bottom: 1px solid var(--hxq-line); padding: 0; }
.hxq-sec__label {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 14px 18px; border: none; background: transparent; cursor: pointer;
  font: 700 11px var(--hxq-font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--hxq-soft); text-align: left;
  transition: background .13s, color .13s;
}
.hxq-sec__label:hover { background: var(--hxq-panel); color: var(--hxq-ink); }
.hxq-sec__label svg { width: 15px; height: 15px; flex: 0 0 15px; opacity: .85; }
.hxq-sec__sub {
  font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--hxq-soft); opacity: .8;
}
.hxq-sec__chev {
  margin-left: auto; font-style: normal; font-size: 15px; line-height: 1;
  color: var(--hxq-soft); transition: transform .18s ease;
}
.hxq-sec.is-open .hxq-sec__chev { transform: rotate(90deg); color: var(--hxq-m1); }
.hxq-sec__body { display: none; padding: 2px 18px 17px; }
.hxq-sec.is-open .hxq-sec__body { display: block; animation: hxq-fade .18s ease; }
.hxq-btn svg { width: 15px; height: 15px; flex: 0 0 15px; vertical-align: -3px; }
.hxq-btn--primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.hxq-sec__hint { font-size: 11.5px; color: var(--hxq-soft); margin: -4px 0 11px; line-height: 1.5; }

/* pagina-lijst */
.hxq-pagelist { display: flex; flex-direction: column; gap: 3px; }
.hxq-page-row { display: flex; align-items: center; gap: 4px; }
.hxq-page {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--hxq-ink); font-size: 13px; font-weight: 500; transition: background .13s, border-color .13s;
}
.hxq-page__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hxq-page:hover { background: var(--hxq-panel); border-color: var(--hxq-line); }
.hxq-page .hxq-page__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hxq-line-2); flex: 0 0 7px; }
.hxq-page.is-current { background: var(--hxq-grad-soft); border-color: var(--hxq-line-2); font-weight: 700; }
.hxq-page.is-current .hxq-page__dot { background: var(--hxq-m1); box-shadow: 0 0 0 3px var(--hxq-accent-soft); }
.hxq-page-dup {
  flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--hxq-soft); display: inline-grid; place-items: center;
  opacity: 0; transition: opacity .13s, background .13s, color .13s; position: relative;
}
.hxq-page-dup svg { width: 15px; height: 15px; }
.hxq-page-row:hover .hxq-page-dup { opacity: 1; }
.hxq-page-dup:hover { background: var(--hxq-panel); color: var(--hxq-m1); border-color: var(--hxq-line); }
.hxq-page-add {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  margin-top: 7px; padding: 9px 11px; border: 1px dashed var(--hxq-line-2); border-radius: 9px;
  background: transparent; color: var(--hxq-soft); font-size: 12.5px; font-weight: 600;
  transition: border-color .13s, color .13s, background .13s;
}
.hxq-page-add svg { width: 15px; height: 15px; }
.hxq-page-add:hover { border-color: var(--hxq-accent-line); color: var(--hxq-m1); background: var(--hxq-grad-soft); }

/* keuze-opties in nieuwe-pagina dialoog */
.hxq-choice { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.hxq-choice__opt {
  display: block; position: relative; cursor: pointer;
  padding: 12px 14px 12px 14px; border: 1.5px solid var(--hxq-line-2); border-radius: 11px;
  background: var(--hxq-panel-2); transition: border-color .14s, box-shadow .14s, background .14s;
}
.hxq-choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.hxq-choice__opt.is-active { border-color: var(--hxq-m1); background: var(--hxq-panel); box-shadow: 0 0 0 3px var(--hxq-accent-soft); }
.hxq-choice__t { display: block; font-size: 13.5px; font-weight: 700; color: var(--hxq-ink); }
.hxq-choice__d { display: block; font-size: 11.5px; font-weight: 500; color: var(--hxq-soft); margin-top: 2px; }
.hxq-choice__d b { color: var(--hxq-ink); font-weight: 600; }

/* thema-kaartjes */
.hxq-themes { display: flex; flex-direction: column; gap: 9px; }
.hxq-theme {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border: 1.5px solid var(--hxq-line); border-radius: 12px; background: var(--hxq-panel);
  transition: border-color .14s, box-shadow .14s, transform .12s;
}
.hxq-theme:hover { border-color: var(--hxq-accent-line); transform: translateY(-1px); box-shadow: var(--hxq-shadow-sm); }
.hxq-theme.is-active { border-color: var(--hxq-m1); box-shadow: 0 0 0 3px var(--hxq-accent-soft); }
.hxq-theme__sw { display: flex; flex: 0 0 auto; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hxq-theme__sw span { width: 15px; height: 34px; display: block; }
.hxq-theme__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hxq-theme__name { display: block; font-size: 13px; font-weight: 700; color: var(--hxq-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxq-theme__font { display: block; font-size: 11.5px; color: var(--hxq-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxq-theme__check {
  margin-left: auto; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hxq-grad); color: #fff; display: none; place-items: center; font-size: 12px; font-weight: 800;
}
.hxq-theme.is-active .hxq-theme__check { display: grid; }

/* sectie-sjablonen */
.hxq-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hxq-tpl {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px;
  border: 1.5px solid var(--hxq-line); border-radius: 11px; background: var(--hxq-panel);
  color: var(--hxq-ink); font-size: 11.5px; font-weight: 600; transition: border-color .14s, transform .12s, box-shadow .14s;
}
.hxq-tpl:hover { border-color: var(--hxq-accent-line); transform: translateY(-1px); box-shadow: var(--hxq-shadow-sm); }
.hxq-tpl .hxq-tpl__ic { width: 100%; height: 30px; border-radius: 6px; background: var(--hxq-grad-soft); display: grid; place-items: center; }
.hxq-tpl .hxq-tpl__ic svg { width: 26px; height: 20px; color: var(--hxq-m1); }
.hxq-inline-row { display: flex; gap: 8px; margin-top: 10px; }
.hxq-inline-row .hxq-btn { flex: 1; padding: 9px 10px; font-size: 12.5px; }

/* ============================================================
   "VRAAG HET" - AI-dialoog (onderin de zijbalk)
   ============================================================ */
.hxq-ask { padding: 15px 18px 20px; background: var(--hxq-panel-2); }
.hxq-ask__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hxq-ask__title { font-weight: 700; font-size: 14px; }
.hxq-ask__title small { display: block; font-weight: 500; font-size: 11.5px; color: var(--hxq-soft); }
.hxq-scope {
  font-size: 12px; color: var(--hxq-soft); margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px; line-height: 1.4;
}
.hxq-scope b { color: var(--hxq-m1); font-weight: 700; }
.hxq-ask textarea {
  width: 100%; min-height: 68px; resize: vertical; padding: 11px 13px;
  border-radius: var(--hxq-radius-sm); background: var(--hxq-panel);
  border: 1px solid var(--hxq-line-2); color: var(--hxq-ink);
  font-size: 13.5px; font-family: var(--hxq-font); line-height: 1.45; outline: none;
}
.hxq-ask textarea:focus { border-color: var(--hxq-accent-line); box-shadow: 0 0 0 3px var(--hxq-accent-soft); }
.hxq-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.hxq-chip {
  border: 1px solid var(--hxq-line-2); background: var(--hxq-panel); color: var(--hxq-soft);
  border-radius: 999px; padding: 6px 11px; font-size: 11.5px; font-weight: 500; transition: all .13s;
}
.hxq-chip:hover { border-color: var(--hxq-accent-line); color: var(--hxq-ink); }
.hxq-ask__foot { display: flex; gap: 8px; margin-top: 4px; }
.hxq-ask__foot .hxq-btn { flex: 1; }

/* ---------- chat met de agent ---------- */
.hxq-chatlog {
  display: flex; flex-direction: column; gap: 7px;
  max-height: 260px; overflow-y: auto; margin-bottom: 10px;
  padding-right: 2px;
}
.hxq-chatlog::-webkit-scrollbar { width: 7px; }
.hxq-chatlog::-webkit-scrollbar-thumb { background: var(--hxq-line-2); border-radius: 7px; }
.hxq-bubble {
  max-width: 88%; padding: 8px 12px; border-radius: 13px;
  font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
  animation: hxq-pop .16s ease;
}
.hxq-bubble--agent {
  align-self: flex-start; background: var(--hxq-panel);
  border: 1px solid var(--hxq-line-2); color: var(--hxq-ink);
  border-bottom-left-radius: 4px;
}
.hxq-bubble--user {
  align-self: flex-end; background: var(--hxq-grad); color: #fff;
  border-bottom-right-radius: 4px; box-shadow: var(--hxq-shadow-sm);
}
.hxq-bubble--note {
  align-self: center; background: transparent; border: none;
  color: var(--hxq-soft); font-size: 11px; font-weight: 600; padding: 2px 6px;
}
.hxq-bubble--nicky {
  align-self: flex-start; max-width: 94%;
  border: 1.5px solid transparent; border-bottom-left-radius: 4px;
  background:
    linear-gradient(var(--hxq-panel), var(--hxq-panel)) padding-box,
    var(--hxq-grad) border-box;
  color: var(--hxq-ink); box-shadow: var(--hxq-shadow-sm);
}
.hxq-bubble__van {
  display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--hxq-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hxq-bubble--think { display: flex; align-items: center; gap: 9px; }
.hxq-orb--sm { width: 20px; height: 20px; flex: 0 0 20px;
  -webkit-mask: radial-gradient(circle 6px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 6px at center, transparent 98%, #000 100%); }
.hxq-think__txt { font-size: 12.5px; font-weight: 600; }
.hxq-stopbtn {
  border: 1px solid var(--hxq-line-2); background: var(--hxq-panel-2);
  color: #b23a3a; border-radius: 999px; padding: 4px 10px;
  font: 700 11px var(--hxq-font); transition: background .13s, border-color .13s;
}
.hxq-stopbtn:hover { background: #fbe4e4; border-color: #e4b6b6; }

.hxq-chatrow { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.hxq-chatrow textarea { flex: 1 1 auto; min-height: 44px; }
.hxq-sendbtn {
  flex: 0 0 44px; width: 44px; height: 44px; border: none; border-radius: 12px;
  background: var(--hxq-grad); color: #fff; display: grid; place-items: center;
  box-shadow: var(--hxq-shadow-sm); transition: filter .13s, transform .12s;
}
.hxq-sendbtn svg { width: 19px; height: 19px; }
.hxq-sendbtn:hover { filter: brightness(1.06); }
.hxq-sendbtn:active { transform: translateY(1px); }

/* Opus denkt-na animatie */
.hxq-thinking { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.hxq-orb {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: conic-gradient(from 0deg, var(--hxq-o1), var(--hxq-p1), var(--hxq-m1), var(--hxq-o1));
  animation: hxq-spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(circle 9px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 9px at center, transparent 98%, #000 100%);
}
@keyframes hxq-spin { to { transform: rotate(360deg); } }
.hxq-thinking__txt { font-size: 13px; font-weight: 600; }
.hxq-thinking__txt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--hxq-soft); }
.hxq-dots::after { content: ""; animation: hxq-dots 1.4s steps(4,end) infinite; }
@keyframes hxq-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- geschiedenis (zijbalk) ---------- */
.hxq-histlist { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.hxq-histlist::-webkit-scrollbar { width: 7px; }
.hxq-histlist::-webkit-scrollbar-thumb { background: var(--hxq-line-2); border-radius: 7px; }
.hxq-hist { display: flex; align-items: flex-start; gap: 9px; padding: 6px 4px; }
.hxq-hist__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; margin-top: 5px;
  background: var(--hxq-grad);
}
.hxq-hist__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hxq-hist__label {
  font-size: 12px; font-weight: 600; color: var(--hxq-ink); line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hxq-hist__meta { font-size: 10.5px; color: var(--hxq-soft); }
.hxq-hist-clear {
  margin-top: 8px; align-self: flex-start; border: none; background: transparent;
  color: var(--hxq-soft); font: 600 11px var(--hxq-font); text-decoration: underline;
  padding: 2px 4px;
}
.hxq-hist-clear:hover { color: #b23a3a; }

/* ---------- foto vervangen (chip op afbeeldingen) ---------- */
.hxq-fotochip {
  position: fixed; z-index: 2147483060;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--hxq-grad); color: #fff;
  font: 700 12.5px var(--hxq-font); letter-spacing: .01em;
  box-shadow: var(--hxq-shadow); animation: hxq-pop .15s ease;
  transition: transform .13s ease, filter .13s ease;
}
.hxq-fotochip:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---------- foto-bewerkpaneel ---------- */
.hxq-fotopanel { width: 312px; }
.hxq-fp-acties {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding: 8px 4px 12px; border-bottom: 1px dashed var(--hxq-line);
}
.hxq-fp-acties .hxq-btn { padding: 8px 6px; font-size: 12px; }
.hxq-fp-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px dashed var(--hxq-line);
}
.hxq-fp-row:last-of-type { border-bottom: none; }
.hxq-fp-label { flex: 0 0 88px; font-size: 12px; font-weight: 600; color: var(--hxq-ink); }
.hxq-fp-row input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--hxq-m1); }
.hxq-uitl-knoppen { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
.hxq-uitl-knoppen button {
  flex: 1; padding: 7px 2px; font: 600 11px var(--hxq-font);
  border: 1px solid var(--hxq-line-2); background: var(--hxq-panel);
  border-radius: 8px; cursor: pointer; color: var(--hxq-soft);
  transition: color .13s, border-color .13s, background .13s;
}
.hxq-uitl-knoppen button:hover { color: var(--hxq-m1); border-color: var(--hxq-accent-line); background: var(--hxq-grad-soft); }
.hxq-fp-reset {
  margin: 10px 4px 4px; border: none; background: transparent; cursor: pointer;
  color: var(--hxq-soft); font: 600 11.5px var(--hxq-font);
  text-decoration: underline; text-underline-offset: 3px;
}
.hxq-fp-reset:hover { color: var(--hxq-m1); }

/* ---------- knippen (crop-overlay) ---------- */
.hxq-crop {
  position: fixed; inset: 0; z-index: 2147483450;
  display: flex; flex-direction: column;
  background: rgba(38,26,32,.72); backdrop-filter: blur(5px);
  font-family: var(--hxq-font); animation: hxq-fade .18s ease;
}
.hxq-crop__stage {
  flex: 1 1 auto; min-height: 0; display: flex;
  align-items: center; justify-content: center; padding: 28px; overflow: hidden;
}
.hxq-crop__wrap { position: relative; }
.hxq-crop__img {
  display: block; max-width: min(78vw, 1100px); max-height: 66vh;
  user-select: none; -webkit-user-drag: none;
  border-radius: 6px;
}
.hxq-crop__box {
  position: absolute; cursor: move; touch-action: none;
  border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(26,16,22,.62);
}
.hxq-crop__box span {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--hxq-grad); border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.45); touch-action: none;
}
.hxq-crop__box span[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.hxq-crop__box span[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.hxq-crop__box span[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.hxq-crop__box span[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.hxq-crop__bar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 14px 18px;
  background: var(--hxq-panel); color: var(--hxq-ink);
  font: 600 13.5px var(--hxq-font);
}

/* ---------- nieuwe foto plaatsen (aanwijs-modus) ---------- */
.hxq-plaatspick [data-hxq-block] { cursor: copy; }
.hxq-plaatsdoel {
  outline: 2.5px dashed var(--hxq-pink) !important;
  outline-offset: 3px;
  cursor: copy !important;
}

/* ---------- geheugen-knopje + weergave ---------- */
.hxq-memlink {
  margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px;
  border: 1px solid var(--hxq-line-2); border-radius: 9px; background: var(--hxq-panel);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: border-color .13s, transform .13s, box-shadow .13s;
}
.hxq-memlink:hover { border-color: var(--hxq-accent-line); transform: translateY(-1px); box-shadow: var(--hxq-shadow-sm); }
.hxq-memview {
  max-height: 46vh; overflow-y: auto; margin-bottom: 6px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--hxq-panel-2); border: 1px solid var(--hxq-line);
  font-size: 13px; line-height: 1.6; color: var(--hxq-ink);
}
.hxq-memview h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800;
  background: var(--hxq-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.hxq-memview h4 { margin: 14px 0 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hxq-soft); }
.hxq-memview ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.hxq-memview p { margin: 6px 0; }

/* ---------- feedback-knop ("lukt iets niet?") ---------- */
.hxq-feedback {
  display: flex; align-items: center; gap: 11px; width: calc(100% - 24px);
  margin: 12px; padding: 11px 13px; text-align: left; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 13px;
  background:
    linear-gradient(var(--hxq-panel), var(--hxq-panel)) padding-box,
    var(--hxq-grad) border-box;
  box-shadow: var(--hxq-shadow-sm);
  font-family: var(--hxq-font);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hxq-feedback:hover { transform: translateY(-1px); box-shadow: var(--hxq-shadow); }
.hxq-feedback__ic { font-size: 19px; flex: 0 0 auto; }
.hxq-feedback__txt { min-width: 0; }
.hxq-feedback__txt b { display: block; font-size: 13px; color: var(--hxq-ink); }
.hxq-feedback__txt small { display: block; font-size: 10.5px; color: var(--hxq-soft); line-height: 1.35; }
.hxq-feedback__pijl { margin-left: auto; color: var(--hxq-m1); font-weight: 700; }
.hxq-fb-check {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  font-size: 12px; color: var(--hxq-soft); cursor: pointer; line-height: 1.4;
}
.hxq-fb-check input { margin-top: 1px; accent-color: var(--hxq-m1); }

/* ---------- kleurenpaneel (handmatig, zonder AI) ---------- */
.hxq-stylepanel {
  position: fixed; top: calc(var(--hxq-topbar-h) + 14px); right: 16px;
  z-index: 2147483150; width: 264px;
  background: var(--hxq-panel); border: 1px solid var(--hxq-line-2);
  border-radius: var(--hxq-radius); box-shadow: var(--hxq-shadow);
  font-family: var(--hxq-font); color: var(--hxq-ink);
  animation: hxq-pop .18s ease;
}
.hxq-stylepanel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-bottom: 1px solid var(--hxq-line);
}
.hxq-stylepanel__head > svg { width: 19px; height: 19px; color: var(--hxq-m1); flex: 0 0 19px; }
.hxq-stylepanel__t { min-width: 0; }
.hxq-stylepanel__t b { display: block; font-size: 13px; }
.hxq-stylepanel__t small { display: block; font-size: 11px; color: var(--hxq-soft); font-weight: 500; }
.hxq-stylepanel__x {
  margin-left: auto; width: 26px; height: 26px; border: none; border-radius: 7px;
  background: transparent; color: var(--hxq-soft); font-size: 17px; line-height: 1;
}
.hxq-stylepanel__x:hover { background: var(--hxq-panel-2); color: var(--hxq-ink); }
.hxq-stylepanel__rows { padding: 8px 10px 12px; display: flex; flex-direction: column; }
.hxq-stylerow {
  display: flex; align-items: center; gap: 8px; padding: 7px 4px;
  border-bottom: 1px dashed var(--hxq-line);
}
.hxq-stylerow:last-child { border-bottom: none; }
.hxq-stylerow__label { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600; }
.hxq-stylerow__reset {
  flex: 0 0 auto; width: 26px; height: 26px; border: none; border-radius: 7px;
  background: transparent; color: var(--hxq-soft); font-size: 15px;
}
.hxq-stylerow__reset:hover { background: var(--hxq-panel-2); color: var(--hxq-ink); }
.hxq-stylerow input[type="color"] {
  flex: 0 0 40px; width: 40px; height: 28px; padding: 0; border: 1px solid var(--hxq-line-2);
  border-radius: 7px; background: var(--hxq-panel); cursor: pointer;
}

/* ============================================================
   KENNISMAKING (onboarding) - fullscreen, HexIQ-branding-stijl
   ============================================================ */
.hxq-ob {
  position: fixed; inset: 0; z-index: 2147483400;
  font-family: var(--hxq-font); color: var(--hxq-ink);
  background:
    radial-gradient(60rem 36rem at 8% 0%, rgba(255,122,60,.12), transparent 60%),
    radial-gradient(55rem 34rem at 95% 12%, rgba(242,85,122,.12), transparent 60%),
    radial-gradient(50rem 32rem at 12% 95%, rgba(229,64,127,.10), transparent 60%),
    radial-gradient(55rem 34rem at 90% 92%, rgba(255,122,60,.10), transparent 60%),
    var(--hxq-light);
  overflow: hidden;
  animation: hxq-fade .5s ease;
  transition: opacity .65s ease;
}
.hxq-ob.is-weg { opacity: 0; pointer-events: none; }
.hxq-ob__graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* wazige gloeilaag voor de graph, zoals #graaf-voor in de branding */
.hxq-ob__graph--voor {
  z-index: 1; pointer-events: none;
  filter: blur(10px) brightness(1.12);
  opacity: .45;
}

.hxq-ob__scherm {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 32px; text-align: center;
  opacity: 0; pointer-events: none;
  transform: translateY(9vh);
  filter: blur(14px);
  transition: opacity .85s ease .3s,
              transform .85s cubic-bezier(.3,.6,.2,1) .3s,
              filter .85s ease .3s;
}
.hxq-ob__scherm.is-actief { opacity: 1; pointer-events: auto; transform: translateY(0); filter: blur(0); }
/* het scherm dat je verlaat zweeft wazig omhoog weg (geen instap-vertraging) */
.hxq-ob__scherm.is-vorig {
  opacity: 0; pointer-events: none;
  transform: translateY(-10vh) scale(1.03);
  filter: blur(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.55,0,.6,1), filter .7s ease;
}
/* het intro vliegt hoog weg, zoals het logo in de branding-onboarding */
.hxq-ob__intro.is-vorig .hxq-ob__zweef {
  transform: translateY(-46vh);
  opacity: 0;
  animation: none;
  transition: transform 1.05s cubic-bezier(.5,0,.2,1), opacity .85s ease;
}

/* losse onderdelen van een scherm: wazig in/uit met een lichte stagger */
.hxq-ob__item {
  transition: opacity .5s ease, transform .5s cubic-bezier(.3,.7,.2,1), filter .5s ease;
}
.hxq-ob__item:nth-child(2) { transition-delay: .05s; }
.hxq-ob__item:nth-child(3) { transition-delay: .1s; }
.hxq-ob__item:nth-child(4) { transition-delay: .15s; }
.hxq-ob__item:nth-child(5) { transition-delay: .2s; }
.hxq-ob__item:nth-child(6) { transition-delay: .25s; }
/* vraag-wissel: inhoud zweeft wazig omhoog uit, nieuwe komt er wazig in */
.hxq-ob__scherm.is-wissel .hxq-ob__item {
  opacity: 0;
  transform: translateY(-26px) scale(.98);
  filter: blur(13px);
}
/* rustige lichte zone achter de inhoud, zoals achter het logo in de branding */
.hxq-ob__scherm::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(1150px, 105vw); height: min(820px, 100vh);
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,250,246,.97) 42%, rgba(255,250,246,.72) 68%, transparent 100%);
  pointer-events: none;
}

/* intro */
.hxq-ob__zweef {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  animation: hxq-ob-adem 7s ease-in-out infinite;
  transition: transform 1.05s cubic-bezier(.5,0,.2,1), opacity .85s ease;
}
@keyframes hxq-ob-adem { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hxq-ob__logo {
  width: clamp(110px, 15vw, 170px); height: auto;
  filter: drop-shadow(0 22px 45px rgba(229,64,127,.32));
}
.hxq-ob__titel {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.08;
  background: linear-gradient(100deg, var(--hxq-o1) 0%, var(--hxq-p1) 55%, var(--hxq-m1) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* de grote afsluiter, zoals de recap-kop in de branding */
.hxq-ob__titel--groot {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700; letter-spacing: -.03em;
  filter: drop-shadow(0 18px 40px rgba(229,64,127,.25));
}
.hxq-ob__sub {
  font-size: clamp(12px, 1.7vw, 15px); font-weight: 400;
  color: var(--hxq-soft); letter-spacing: .34em; text-transform: uppercase;
  margin-top: -8px;
}
.hxq-ob__pijl {
  width: 34px; height: 34px; color: var(--hxq-p1);
  animation: hxq-ob-wenk 1.8s ease-in-out infinite;
}
@keyframes hxq-ob-wenk {
  0%,100% { transform: translateY(0); opacity: .85; }
  50% { transform: translateY(12px); opacity: 1; }
}
.hxq-ob__skip {
  border: none; background: none; cursor: pointer;
  font: 500 13px var(--hxq-font); color: var(--hxq-soft);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.hxq-ob__skip:hover { color: var(--hxq-m1); }

/* knoppen (pil-vorm, zoals de branding) */
.hxq-ob__knop {
  font: 600 15px/1 var(--hxq-font); letter-spacing: .02em;
  border-radius: 999px; padding: 16px 34px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.hxq-ob__knop--primair {
  color: #fff; border: none;
  background: linear-gradient(120deg, var(--hxq-o1), var(--hxq-p1) 60%, var(--hxq-m1));
  box-shadow: 0 16px 34px -12px rgba(229,64,127,.55);
}
.hxq-ob__knop--primair:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(229,64,127,.65); }
.hxq-ob__knop--ghost {
  color: var(--hxq-ink); background: rgba(255,255,255,.6);
  border: 1px solid rgba(140,122,130,.3);
}
.hxq-ob__knop--ghost:hover { border-color: var(--hxq-m1); color: var(--hxq-m1); }
.hxq-ob__knop--groot { padding: 18px 44px; font-size: 16px; }

/* vraag-scherm */
.hxq-ob__stap {
  font-size: 13px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--hxq-soft);
}
.hxq-ob__stippen { display: flex; gap: 9px; margin-top: -14px; }
.hxq-ob__stippen span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(140,122,130,.28);
  transition: background .4s ease, transform .4s ease;
}
.hxq-ob__stippen span.nu {
  background: linear-gradient(120deg, var(--hxq-o1), var(--hxq-m1));
  transform: scale(1.35);
}
.hxq-ob__stippen span.klaar { background: var(--hxq-p1); }
.hxq-ob__vraag {
  max-width: 22ch; text-align: center;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(100deg, var(--hxq-o1) 0%, var(--hxq-p1) 55%, var(--hxq-m1) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hxq-ob__hint { font-size: 15px; color: var(--hxq-soft); font-weight: 400; margin-top: -14px; }
.hxq-ob__invoer { width: min(560px, 88vw); }
.hxq-ob__invoer input,
.hxq-ob__invoer textarea {
  width: 100%; font: 400 16px/1.55 var(--hxq-font); color: var(--hxq-ink);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(140,122,130,.3);
  border-radius: 16px; padding: 15px 18px;
  outline: none; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hxq-ob__invoer input { text-align: center; font-size: 18px; }
.hxq-ob__invoer textarea { min-height: 104px; }
.hxq-ob__invoer input:focus,
.hxq-ob__invoer textarea:focus {
  border-color: var(--hxq-p1);
  box-shadow: 0 0 0 4px rgba(242,85,122,.12);
}
.hxq-ob__invoer ::placeholder { color: #bfa9b0; }
.hxq-ob__acties { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* verwerken: dansende stippen in het HexIQ-verloop */
.hxq-ob__dans { display: flex; gap: 9px; }
.hxq-ob__dans span {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(130deg, var(--hxq-o1), var(--hxq-p1));
  box-shadow: 0 4px 14px rgba(229,64,127,.4);
  animation: hxq-ob-dans 1.15s ease-in-out infinite;
}
.hxq-ob__dans span:nth-child(2) { animation-delay: .15s; background: linear-gradient(130deg, var(--hxq-p1), var(--hxq-m1)); }
.hxq-ob__dans span:nth-child(3) { animation-delay: .3s; background: linear-gradient(130deg, var(--hxq-m1), var(--hxq-o1)); }
@keyframes hxq-ob-dans {
  0%,100% { transform: translateY(0) scale(1); opacity: .7; }
  50% { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

/* Geen prefers-reduced-motion-uitzondering hier: Windows met
   'animatie-effecten uit' zet die vlag en dan stond alles stil. */

/* ============================================================
   BLOK-HOVER EN -SELECTIE (in de site)
   ============================================================ */
.hxq-editing [data-hxq-block] { position: relative; }
.hxq-hoverable {
  outline: 1.5px dashed var(--hxq-accent-line);
  outline-offset: -1px; cursor: pointer;
}
.hxq-selected {
  outline: 3px solid var(--hxq-pink) !important;
  outline-offset: -2px;
  box-shadow: 0 0 0 6px var(--hxq-pink-soft), 0 0 26px rgba(255,46,147,.30);
  animation: hxq-selglow 1.6s ease-in-out infinite alternate;
}
@keyframes hxq-selglow {
  from { box-shadow: 0 0 0 6px var(--hxq-pink-soft), 0 0 22px rgba(255,46,147,.22); }
  to   { box-shadow: 0 0 0 6px var(--hxq-pink-soft), 0 0 34px rgba(255,46,147,.42); }
}
.hxq-tag {
  position: absolute; top: 0; left: 0; transform: translateY(-100%);
  z-index: 2147482000; pointer-events: none;
  background: var(--hxq-grad); color: #fff;
  font: 700 11px/1 var(--hxq-font); letter-spacing: .03em;
  padding: 5px 9px; border-radius: 7px 7px 7px 0; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(90,30,60,.25);
}

/* ---------- blok-toolbar (drijft boven geselecteerd blok) ---------- */
.hxq-blocktools {
  position: absolute; z-index: 2147483050;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--hxq-panel); backdrop-filter: blur(8px);
  border: 1px solid var(--hxq-line-2); border-radius: 12px;
  box-shadow: var(--hxq-shadow); font-family: var(--hxq-font);
  animation: hxq-pop .16s ease;
}
.hxq-tool-label {
  display: inline-flex; align-items: center; padding: 0 10px 0 8px; margin-right: 2px;
  font: 700 11px/1 var(--hxq-font); letter-spacing: .02em; color: var(--hxq-m1);
  white-space: nowrap; border-right: 1px solid var(--hxq-line); height: 22px;
}
.hxq-it {
  width: 34px; height: 34px; border: none; border-radius: 8px; background: transparent;
  color: var(--hxq-soft); display: inline-grid; place-items: center;
  transition: background .13s, color .13s; position: relative;
}
.hxq-it svg { width: 17px; height: 17px; display: block; }
.hxq-it:hover { background: var(--hxq-panel-2); color: var(--hxq-ink); }
.hxq-it--danger:hover { background: #fbe4e4; color: #b23a3a; }
.hxq-it[disabled] { opacity: .3; cursor: default; }
.hxq-it[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  background: var(--hxq-ink); color: #fff; font: 600 11px/1 var(--hxq-font);
  padding: 6px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 2147483300;
}

/* ---------- inline tekst bewerken ---------- */
.hxq-textedit [contenteditable="true"] {
  outline: 2px dotted var(--hxq-accent-line); outline-offset: 3px; border-radius: 3px;
  cursor: text; transition: background .15s;
}
.hxq-textedit [contenteditable="true"]:hover { background: var(--hxq-accent-soft); }
.hxq-textedit [contenteditable="true"]:focus { outline: 2px solid var(--hxq-m1); background: var(--hxq-accent-soft); }

.hxq-textbar {
  position: absolute; z-index: 2147483120; display: flex; gap: 2px; padding: 4px;
  background: var(--hxq-panel); border: 1px solid var(--hxq-line-2);
  border-radius: 9px; box-shadow: var(--hxq-shadow);
}
.hxq-textbar button {
  width: 30px; height: 30px; border: none; background: transparent; border-radius: 6px;
  color: var(--hxq-ink); font-size: 14px; font-weight: 700;
}
.hxq-textbar button:hover { background: var(--hxq-panel-2); }

/* ---------- splitsen: kies breekpunt ---------- */
.hxq-breakcand { cursor: pointer; outline: 1.5px dashed var(--hxq-accent-line); outline-offset: 2px; position: relative; }
.hxq-breakcand:hover { outline: 2px solid var(--hxq-m1); background: var(--hxq-accent-soft); }
.hxq-breakcand:hover::before {
  content: "\2702 splits hier"; position: absolute; top: -10px; left: 8px; z-index: 5;
  background: var(--hxq-grad); color: #fff; font: 700 10px/1 var(--hxq-font);
  padding: 4px 7px; border-radius: 6px;
}
.hxq-splithint {
  position: fixed; top: calc(var(--hxq-topbar-h) + 12px); left: calc(50% + var(--hxq-sidebar-w) / 2); transform: translateX(-50%); z-index: 2147483090;
  background: var(--hxq-panel); color: var(--hxq-ink); border: 1px solid var(--hxq-line-2);
  padding: 9px 16px; border-radius: 999px; font: 600 13px/1 var(--hxq-font);
  box-shadow: var(--hxq-shadow); display: flex; align-items: center; gap: 12px;
}
.hxq-splithint button { border: none; background: var(--hxq-panel-2); color: var(--hxq-soft); border-radius: 7px; padding: 6px 10px; font-weight: 600; }

/* ---------- AI preview-bar ---------- */
.hxq-preview-bar {
  position: fixed; bottom: 22px; left: calc(50% + var(--hxq-sidebar-w) / 2); transform: translateX(-50%);
  z-index: 2147483250; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; border-radius: 14px;
  background: var(--hxq-panel); backdrop-filter: blur(10px);
  border: 1px solid var(--hxq-accent-line); box-shadow: var(--hxq-shadow);
  color: var(--hxq-ink); font-family: var(--hxq-font);
  animation: hxq-drop-up .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes hxq-drop-up { from { opacity: 0; transform: translate(-50%,14px); } to { opacity: 1; transform: translate(-50%,0); } }
.hxq-preview-bar__txt { font-size: 13.5px; font-weight: 600; }
.hxq-preview-bar__txt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--hxq-soft); }
.hxq-preview-glow { animation: hxq-glow 1.4s ease-in-out infinite alternate; }
@keyframes hxq-glow { from { box-shadow: 0 0 0 3px var(--hxq-accent-soft); } to { box-shadow: 0 0 0 7px rgba(229,64,127,.04); } }

/* ---------- toast ---------- */
.hxq-toast {
  position: fixed; bottom: 22px; left: calc(50% + var(--hxq-sidebar-w) / 2); transform: translate(-50%, 20px);
  z-index: 2147483300; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--hxq-ink); border: 1px solid rgba(255,255,255,.08);
  color: #fff; font: 600 13.5px var(--hxq-font); box-shadow: var(--hxq-shadow);
  transition: opacity .22s ease, transform .22s ease;
}
.hxq-toast.hxq-show { opacity: 1; transform: translate(-50%, 0); }
.hxq-toast .hxq-check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--hxq-grad);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.hxq-toast--err .hxq-check { background: #c0504d; color: #fff; }

/* ============================================================
   DEVICE-VIEWER (Computer- en Mobiel-mockups)
   ============================================================ */
.hxq-deviceview {
  position: fixed; top: var(--hxq-topbar-h); left: var(--hxq-sidebar-w); right: 0; bottom: 0;
  z-index: 2147483080; display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(229,64,127,.06), transparent 60%),
    linear-gradient(160deg, #f6f0ec 0%, #efe7e1 100%);
  font-family: var(--hxq-font);
  animation: hxq-fade .2s ease;
}
.hxq-deviceview__hint {
  flex: 0 0 auto; margin: 16px auto 0; padding: 8px 16px; border-radius: 999px;
  background: var(--hxq-panel); border: 1px solid var(--hxq-line);
  color: var(--hxq-soft); font-size: 12px; font-weight: 600; letter-spacing: .01em;
  box-shadow: var(--hxq-shadow-sm);
}
.hxq-deviceview__stage {
  flex: 1 1 auto; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px;
}
.hxq-deviceview__fit { transform-origin: center center; }

/* iframe basis */
.hxq-devframe { display: block; border: 0; background: #fff; opacity: 0; transition: opacity .25s ease; }
.hxq-devframe.is-ready { opacity: 1; }

/* ---- monitor-mockup ---- */
.hxq-monitor { display: flex; flex-direction: column; align-items: center; }
.hxq-monitor__bezel {
  padding: 16px 16px 20px; border-radius: 22px;
  background: linear-gradient(160deg, #43464d 0%, #26282d 60%, #1c1e22 100%);
  box-shadow: 0 40px 80px rgba(30,10,20,.35), 0 8px 24px rgba(30,10,20,.25),
    inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 6px rgba(0,0,0,.4);
}
.hxq-monitor__screen {
  width: 1280px; height: 800px; border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5);
}
.hxq-monitor__screen .hxq-devframe { width: 1280px; height: 800px; }
.hxq-monitor__neck {
  width: 120px; height: 40px; margin-top: -2px;
  background: linear-gradient(180deg, #3a3d43, #2a2c31);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.3);
}
.hxq-monitor__foot {
  width: 320px; height: 20px; border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #3a3d43, #23252a);
  box-shadow: 0 10px 24px rgba(30,10,20,.3), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ---- iPhone-mockup ---- */
.hxq-phone {
  position: relative; width: 418px; padding: 14px; border-radius: 56px;
  background: linear-gradient(160deg, #2a2c31 0%, #17181c 55%, #0e0f12 100%);
  box-shadow: 0 40px 80px rgba(30,10,20,.4), 0 8px 24px rgba(30,10,20,.28),
    inset 0 0 0 2px rgba(255,255,255,.06), inset 0 2px 3px rgba(255,255,255,.14);
}
.hxq-phone__screen {
  position: relative; width: 390px; height: 844px; border-radius: 44px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 2px rgba(0,0,0,.55);
}
.hxq-phone__screen .hxq-devframe { width: 390px; height: 844px; }
.hxq-phone__island {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 32px; border-radius: 999px; background: #000; z-index: 4;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}
.hxq-phone__bar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 999px; background: rgba(0,0,0,.32); z-index: 4;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --hxq-sidebar-w: 0px; }
  .hxq-side { transform: translateX(-100%); }
  html.hxq-shift { margin-left: 0 !important; }
  .hxq-tb .hxq-tb-label { display: none; }
  .hxq-tb--save .hxq-tb-label, .hxq-tb--publish .hxq-tb-label, .hxq-tb--done .hxq-tb-label { display: inline; }
}

/* pagina verwijderen (Bregje, 1-8) */
.hxq-page-del:hover { color: #e5407f; border-color: #e5407f; }
.hxq-btn--danger { background: linear-gradient(135deg, #f2557a, #e5407f); color: #fff; border: 0; }
.hxq-btn--danger:hover { filter: brightness(1.08); }

/* paginavolgorde-pijltjes */
.hxq-page-move svg { width: 12px; height: 12px; }
