
.em-ref-onboarding-active #masthead,
.em-ref-onboarding-active .site-header,
.em-ref-onboarding-active .ast-mobile-header-wrap,
.em-ref-onboarding-active .main-header-bar-wrap,
.em-ref-onboarding-active #colophon,
.em-ref-onboarding-active .site-footer,
.em-ref-onboarding-active .ast-builder-menu-mobile,
.em-ref-onboarding-active .menu-toggle,
.em-ref-onboarding-active .ast-mobile-menu-buttons{display:none !important;}
.em-ref-onboarding-active .site-content{padding-top:0 !important;}

/* Onboarding background with ambient glow */
body.em-ref-standalone,
.em-ref-onboarding-active { background:#07111f !important; }
body.em-ref-standalone::before,
.em-ref-onboarding-active::before {
  content:''; position:fixed; top:0; left:0; right:0; bottom:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(78,217,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 60%, rgba(216,75,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(78,217,255,.05) 0%, transparent 70%);
}
.em-ref-onboarding { position:relative; z-index:1; }
.em-ref-step-pills{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px;}
.em-ref-step-pill{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 16px;border-radius:999px;border:1px solid rgba(120,191,255,.12);background:rgba(255,255,255,.04);color:rgba(232,238,252,.46);font-size:13px;font-weight:800;letter-spacing:.02em;transition:all .25s ease;pointer-events:none;user-select:none;cursor:default;}
.em-ref-step-pill.is-current{background:linear-gradient(135deg,#4ed9ff,#d84bff);border-color:transparent;color:#07111f;box-shadow:0 8px 20px rgba(78,217,255,.22);}
.em-ref-step-pill.is-complete{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.30);color:#86efac;}
.em-ref-step-pill.is-complete::before{content:'✓ ';font-weight:900;}
.em-ref-step-pill.is-upcoming{background:rgba(255,255,255,.03);color:rgba(232,238,252,.32);}
.em-ref-step-label--content{display:none !important;}
.em-ref-onboarding { display:grid; gap:18px; color:#eef6ff; }
.em-ref-progress-compact { font-size:14px; color:rgba(238,246,255,.76); }
.em-ref-step { display:none; }
.em-ref-step.is-active { display:block; }
.em-ref-card { background:linear-gradient(180deg, rgba(11,18,36,.92), rgba(8,13,27,.94)); border:1px solid rgba(110,185,255,.14); box-shadow:0 18px 60px rgba(0,0,0,.25); border-radius:28px; padding:28px; }
.em-ref-card h2 { margin:0 0 12px; color:#fff; font-size:clamp(28px,4vw,48px); line-height:1.06; letter-spacing:-.03em; }
.em-ref-card h3 { margin:0 0 12px; color:#fff; font-size:22px; }
.em-ref-card p, .em-ref-note, .em-ref-feedback, .em-ref-summary { color:rgba(232,238,252,.82); line-height:1.65; }
.em-ref-step-label { display:none; }
.em-ref-choice-grid, .em-ref-grid, .form-grid { display:grid; gap:16px; }
.em-ref-choice-grid, .option-grid { grid-template-columns:repeat(2, minmax(0,1fr)); margin-top:22px; }
.option-card { display:grid; gap:10px; text-align:left; min-height:148px; padding:22px; border-radius:24px; border:1px solid rgba(125,197,255,.16); background:rgba(255,255,255,.04); color:#fff; cursor:pointer; }
.option-card strong { font-size:21px; line-height:1.25; }
.option-card small { color:rgba(232,238,252,.72); font-size:15px; line-height:1.55; }
.em-ref-partner-badge { display:inline-block; margin-top:4px; padding:4px 10px; border-radius:8px; font-size:11px; font-weight:700; background:linear-gradient(135deg, rgba(78,217,255,.18), rgba(216,75,255,.12)); color:#d84bff; letter-spacing:.02em; }
.em-ref-partner-teaser { margin-top:28px; font-size:13px; color:rgba(232,238,252,.55); text-align:center; }
.em-ref-partner-teaser a { color:#86dfff; text-decoration:none; font-weight:700; }
.em-ref-partner-teaser a:hover { text-decoration:underline; }
.form-grid, .em-ref-grid { grid-template-columns:repeat(2, minmax(0,1fr)); margin-top:20px; }
.form-grid label, .em-ref-grid label { display:grid; gap:8px; }
.field-full { grid-column:1 / -1; }
.form-grid span, .em-ref-grid span { font-size:14px; color:rgba(232,238,252,.76); }
.form-grid input, .form-grid textarea, .em-ref-grid input, .em-ref-grid textarea, .em-ref-grid select { min-height:56px; width:100%; border-radius:16px; border:1px solid rgba(120,191,255,.14); background:rgba(5,9,20,.7); color:#fff; padding:0 14px; }
.form-grid textarea, .em-ref-grid textarea { min-height:140px; padding:14px; }
.em-ref-inline-options { display:flex; flex-wrap:wrap; gap:12px; min-height:56px; align-items:center; padding:12px 14px; border-radius:16px; border:1px solid rgba(120,191,255,.14); background:rgba(5,9,20,.7); }
.em-ref-inline-options label { display:inline-flex !important; align-items:center; gap:8px; color:#fff; }
.em-ref-inline-options input { min-height:auto; width:18px; height:18px; padding:0; accent-color:#7ee4ff; }

/* Toggle Group — modern segmented control for radio options (Anrede, Signaturmethode) */
.em-ref-toggle-group { display:flex; gap:0; border-radius:14px; overflow:hidden; border:1px solid rgba(120,191,255,.18); background:rgba(5,9,20,.7); }
.em-ref-toggle-option { display:flex; align-items:center; justify-content:center; flex:1; cursor:pointer; padding:12px 16px; transition:all .2s ease; color:rgba(232,238,252,.55); font-weight:600; font-size:14px; border-right:1px solid rgba(120,191,255,.1); }
.em-ref-toggle-option:last-child { border-right:none; }
.em-ref-toggle-option input { position:absolute !important; opacity:0 !important; width:0 !important; height:0 !important; min-height:0 !important; padding:0 !important; margin:0 !important; pointer-events:none !important; }
.em-ref-toggle-option span { pointer-events:none; white-space:nowrap; }
.em-ref-toggle-option.is-active { background:linear-gradient(135deg, rgba(78,217,255,.18), rgba(216,75,255,.12)); color:#fff; }
.em-ref-toggle-option:hover:not(.is-active) { background:rgba(120,191,255,.08); color:rgba(232,238,252,.8); }

/* Small Button variant */
.em-ref-button--small { min-height:36px; padding:0 14px; font-size:13px; border-radius:10px; background:rgba(120,191,255,.12); color:#86dfff; font-weight:700; border:1px solid rgba(120,191,255,.2); }
.em-ref-button--small:hover { background:rgba(120,191,255,.2); }
.em-ref-actions { display:flex; gap:14px; align-items:center; margin-top:26px; flex-wrap:wrap; }
.em-ref-button, .em-ref-link, .em-ref-download-link { appearance:none; border:0; background:none; cursor:pointer; text-decoration:none; }
.em-ref-button { display:inline-flex; align-items:center; justify-content:center; min-height:56px; padding:0 22px; border-radius:999px; background:linear-gradient(135deg, #4ed9ff, #d84bff); color:#07111f; font-weight:800; font-size:15px; }
.em-ref-link { color:#86dfff; font-weight:700; }
.em-ref-divider { margin:28px 0 20px; height:1px; background:linear-gradient(90deg, rgba(125,197,255,0), rgba(125,197,255,.28), rgba(125,197,255,0)); }
.document-preview { margin-top:18px; border-radius:22px; border:1px solid rgba(120,191,255,.14); background:rgba(255,255,255,.04); padding:18px; max-height:980px; overflow:auto; }
.document-preview__inner { display:grid; gap:14px; }
.doc-card { border-radius:18px; background:rgba(5,9,20,.54); border:1px solid rgba(120,191,255,.12); padding:18px; }
.doc-card h3 { margin-bottom:10px; }
.em-ref-summary { display:grid; gap:10px; margin-top:18px; padding:18px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(120,191,255,.12); }
.em-signature-box { margin-top:20px; border-radius:22px; border:1px solid rgba(120,191,255,.14); background:rgba(255,255,255,.04); padding:18px; backdrop-filter:none; overflow:hidden; box-sizing:border-box; max-width:100%; }
.em-signature-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; overflow:hidden; box-sizing:border-box; max-width:100%; }
.em-signature-head .em-ref-link, .em-signature-head .em-ref-button--small { white-space:nowrap; flex-shrink:0; max-width:45%; overflow:hidden; text-overflow:ellipsis; box-sizing:border-box; font-size:14px; padding:6px 12px; }
.em-signature-canvas { display:block; width:100%; height:220px; border-radius:18px; border:1px solid rgba(120,191,255,.22); background:#ffffff; touch-action:none; cursor:crosshair; }
.em-signature-help { margin:10px 0 0; font-size:13px; color:rgba(232,238,252,.7); }
.em-ref-downloads { display:grid; gap:12px; margin-top:18px; }
.em-ref-download-link { display:flex; align-items:center; justify-content:center; min-height:54px; padding:0 18px; border-radius:16px; background:rgba(255,255,255,.06); border:1px solid rgba(120,191,255,.14); color:#eef6ff; font-weight:700; }
.em-ref-redirect { display:grid; gap:12px; margin-top:18px; padding:18px; border-radius:18px; background:rgba(78,217,255,.08); border:1px solid rgba(78,217,255,.18); }
@media (max-width: 900px) { .em-ref-choice-grid, .option-grid, .form-grid, .em-ref-grid { grid-template-columns:1fr; } .option-card { min-height:120px; } .em-ref-card { padding:20px; border-radius:22px; } .em-signature-canvas{height:240px;min-height:200px;} }
.is-branching[hidden], [hidden] { display:none !important; }
.em-ref-actions--branching { margin-top:16px; }

.em-required-star{color:#ff6b8a;font-style:normal;font-weight:800;margin-left:2px;}
.em-ref-grid .is-required > span{color:#fff;}
.doc-card--template { display:grid; gap:16px; }
.doc-card__header { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.doc-card__meta { margin:6px 0 0; font-size:14px; color:rgba(232,238,252,.72); }
.doc-card__summary { display:grid; gap:8px; padding:14px; border-radius:14px; background:rgba(255,255,255,.03); border:1px solid rgba(120,191,255,.10); }
.doc-card__viewer { border-radius:16px; overflow:auto; border:1px solid rgba(120,191,255,.12); background:#eef3f9; padding:12px; display:flex; justify-content:center; align-items:flex-start; overscroll-behavior:contain; }
.doc-card__viewer iframe { width:min(100%, 860px); height:960px; min-height:960px; border:0; background:#fff; display:block; margin:0 auto; box-shadow:0 8px 24px rgba(15,23,42,.08); border-radius:10px; pointer-events:auto; }
.doc-card__empty { min-height:320px; display:flex; align-items:center; justify-content:center; padding:24px; color:#dbe8ff; background:rgba(255,255,255,.03); }
.em-ref-doc-open { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(120,191,255,.14); color:#eef6ff; text-decoration:none; font-weight:700; white-space:nowrap; }
@media (max-width: 900px) {
  .doc-card__header { flex-direction:column; }
  .doc-card__viewer { padding:0; max-height:72vh; overflow:auto; -webkit-overflow-scrolling:touch; }
  .doc-card__viewer iframe { width:100%; min-height:820px; display:block; }
  .em-ref-doc-open { width:100%; }
}

.em-ref-auto-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(120,191,255,.12);}
.em-ref-auto-meta strong{color:#fff;}
.em-ref-auto-meta span{color:#eef6ff;font-size:15px;}
@media (max-width: 900px){.em-ref-auto-meta{grid-template-columns:1fr;}}

.em-ref-success-meta {
  display:grid;
  gap:8px;
  margin-bottom:18px;
}

.em-ref-thankyou-promo {
  margin-top:20px;
  padding:18px;
  border:1px solid rgba(120,220,255,.16);
  border-radius:20px;
  background:rgba(255,255,255,.04);
}

.em-ref-thankyou-promo h3 {
  margin:0 0 12px;
}

.em-ref-thankyou-promo ul {
  margin:0 0 16px 18px;
  padding:0;
}

.em-ref-promo-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.em-ref-help{display:block;margin-top:6px;font-size:12px;color:#6b7280;}
.em-ref-help[data-ref-code-feedback]{font-weight:600;}


.em-ref-onboarding .em-ref-editor-toolbar,
.em-ref-card .em-ref-editor-toolbar{
  position:sticky !important;
  top:12px !important;
  z-index:40 !important;
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:8px 12px !important;
  align-items:center !important;
  margin:0 0 14px !important;
  padding:10px 12px !important;
  min-height:auto !important;
  border:1px solid rgba(120,191,255,.18) !important;
  border-radius:14px !important;
  background:linear-gradient(180deg, rgba(10,16,34,.96), rgba(8,13,27,.98)) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.22) !important;
  backdrop-filter:blur(8px);
}
.em-ref-onboarding .em-ref-editor-toolbar__main,
.em-ref-card .em-ref-editor-toolbar__main{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
  grid-column:1 / -1 !important;
  width:100% !important;
}
.em-ref-onboarding .em-ref-editor-toggle,
.em-ref-onboarding .em-ref-editor-btn,
.em-ref-card .em-ref-editor-toggle,
.em-ref-card .em-ref-editor-btn{
  appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:none !important;
  flex:0 0 auto !important;
  min-height:38px !important;
  height:38px !important;
  padding:0 14px !important;
  margin:0 !important;
  border-radius:10px !important;
  border:1px solid rgba(120,191,255,.18) !important;
  background:rgba(255,255,255,.06) !important;
  color:#eaf4ff !important;
  font:inherit !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
.em-ref-onboarding .em-ref-editor-toggle,
.em-ref-card .em-ref-editor-toggle{
  background:linear-gradient(135deg, #4ed9ff, #d84bff) !important;
  border-color:transparent !important;
  color:#07111f !important;
}
.em-ref-onboarding .em-ref-editor-toolbar.is-enabled .em-ref-editor-toggle,
.em-ref-card .em-ref-editor-toolbar.is-enabled .em-ref-editor-toggle{
  background:linear-gradient(135deg, #34d399, #22c55e) !important;
  color:#05210f !important;
}
.em-ref-onboarding .em-ref-editor-btn[disabled],
.em-ref-card .em-ref-editor-btn[disabled]{
  opacity:.45 !important;
  cursor:not-allowed !important;
}
.em-ref-onboarding .em-ref-editor-toolbar .em-ref-help,
.em-ref-card .em-ref-editor-toolbar .em-ref-help{
  grid-column:1 / -1 !important;
  margin:0 !important;
  color:rgba(232,238,252,.72) !important;
  font-size:12px !important;
  line-height:1.45 !important;
}
@media (max-width: 900px){
  .em-ref-onboarding .em-ref-editor-toolbar,
  .em-ref-card .em-ref-editor-toolbar{padding:10px !important;}
  .em-ref-onboarding .em-ref-editor-toggle,
  .em-ref-onboarding .em-ref-editor-btn,
  .em-ref-card .em-ref-editor-toggle,
  .em-ref-card .em-ref-editor-btn{min-height:36px !important;height:36px !important;padding:0 12px !important;font-size:13px !important;}
}


.em-ref-onboarding .em-ref-editor-more,
.em-ref-card .em-ref-editor-more{display:inline-flex !important;align-items:center !important;position:relative !important;}
.em-ref-onboarding .em-ref-editor-more summary,
.em-ref-card .em-ref-editor-more summary{list-style:none !important;cursor:pointer !important;padding:0 12px !important;height:38px !important;display:inline-flex !important;align-items:center !important;border:1px solid rgba(120,191,255,.18) !important;border-radius:10px !important;background:rgba(255,255,255,.04) !important;color:#eaf4ff !important;font-size:13px !important;font-weight:700 !important;}
.em-ref-onboarding .em-ref-editor-more[open],
.em-ref-card .em-ref-editor-more[open]{z-index:60 !important;}
.em-ref-onboarding .em-ref-editor-more__menu,
.em-ref-card .em-ref-editor-more__menu{position:absolute !important;top:44px !important;right:0 !important;display:flex !important;flex-direction:column !important;gap:8px !important;min-width:190px !important;padding:10px !important;border-radius:12px !important;border:1px solid rgba(120,191,255,.22) !important;background:rgba(6,14,28,.98) !important;box-shadow:0 18px 36px rgba(0,0,0,.28) !important;}
.em-ref-onboarding .em-ref-editor-more__menu .em-ref-editor-btn,
.em-ref-card .em-ref-editor-more__menu .em-ref-editor-btn{width:100% !important;justify-content:flex-start !important;}
.em-ref-onboarding .em-ref-editor-btn--subtle,
.em-ref-card .em-ref-editor-btn--subtle{background:rgba(255,255,255,.04) !important;}
.em-ref-onboarding .em-ref-editor-presets,
.em-ref-card .em-ref-editor-presets{position:absolute !important;top:calc(100% + 8px) !important;left:0 !important;z-index:55 !important;width:min(760px, calc(100vw - 72px)) !important;max-width:100% !important;padding:14px !important;border:1px solid rgba(120,191,255,.16) !important;border-radius:14px !important;background:rgba(4,11,24,.88) !important;backdrop-filter:blur(10px) !important;box-shadow:0 18px 38px rgba(0,0,0,.28) !important;}
.em-ref-onboarding .em-ref-editor-preset-head,
.em-ref-card .em-ref-editor-preset-head{display:grid !important;grid-template-columns:1fr .7fr 1.2fr auto !important;gap:10px !important;margin-bottom:12px !important;align-items:end !important;}
.em-ref-onboarding .em-ref-editor-preset-head label,
.em-ref-card .em-ref-editor-preset-head label{display:block !important;color:#dbeafe !important;font-size:12px !important;font-weight:700 !important;}
.em-ref-onboarding .em-ref-editor-preset-head__wide,
.em-ref-card .em-ref-editor-preset-head__wide{grid-column:auto !important;}
.em-ref-onboarding .em-ref-editor-preset-head select,
.em-ref-onboarding .em-ref-editor-preset-head input,
.em-ref-card .em-ref-editor-preset-head select,
.em-ref-card .em-ref-editor-preset-head input{width:100% !important;margin-top:4px !important;height:36px !important;border-radius:10px !important;background:#08111f !important;color:#eef6ff !important;border:1px solid rgba(120,191,255,.18) !important;}
.em-ref-onboarding .em-ref-editor-preset-group,
.em-ref-card .em-ref-editor-preset-group{margin-top:10px !important;}
.em-ref-onboarding .em-ref-editor-preset-group strong,
.em-ref-card .em-ref-editor-preset-group strong{display:block !important;margin-bottom:6px !important;color:#9ec9ff !important;font-size:12px !important;text-transform:uppercase !important;}
.em-ref-onboarding .em-ref-editor-preset-grid,
.em-ref-card .em-ref-editor-preset-grid{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:6px !important;}
.em-ref-onboarding .em-ref-editor-preset,
.em-ref-card .em-ref-editor-preset{appearance:none !important;border:1px solid rgba(120,191,255,.18) !important;border-radius:10px !important;background:rgba(255,255,255,.06) !important;color:#eef6ff !important;padding:6px 8px !important;font-size:11px !important;font-weight:700 !important;cursor:pointer !important;min-width:0 !important;text-align:center !important;min-height:34px !important;}
@media (max-width: 900px){
  .em-ref-onboarding .em-ref-editor-presets,
  .em-ref-card .em-ref-editor-presets{width:calc(100vw - 32px) !important;left:-6px !important;}
  .em-ref-onboarding .em-ref-editor-preset-head,
  .em-ref-card .em-ref-editor-preset-head{grid-template-columns:1fr 1fr !important;}
  .em-ref-onboarding .em-ref-editor-preset-grid,
  .em-ref-card .em-ref-editor-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

.em-ref-admin-filter-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:12px;
  padding:16px;
  margin-bottom:16px;
  max-width:1140px;
  box-sizing:border-box;
}
.ecrm-admin-wrap .em-ref-admin-filter-grid{
  display:grid;
  grid-template-columns:minmax(210px,1.6fr) minmax(130px,.9fr) minmax(120px,.8fr) minmax(160px,1fr) minmax(176px,1.1fr) minmax(150px,1fr) auto auto;
  gap:12px;
  align-items:end;
}
.ecrm-admin-wrap .em-ref-admin-filter-grid--flows{
  grid-template-columns:minmax(240px,1.8fr) repeat(3,minmax(150px,1fr)) auto auto;
}
.em-ref-admin-filter-field{margin:0; min-width:0;}
.em-ref-admin-filter-field label{display:block; font-weight:600;}
.em-ref-admin-filter-field input,
.em-ref-admin-filter-field select{width:100%; max-width:100%; min-height:40px;}
.em-ref-admin-filter-actions{margin:0; display:flex; align-items:end; gap:8px;}
.em-ref-admin-filter-actions .button{min-height:40px;}
.em-ref-admin-reset{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; text-decoration:none; font-size:18px;}
.em-ref-date-range{position:relative; display:grid; grid-template-columns:minmax(0,1fr) 40px; gap:8px; align-items:center;}
.em-ref-date-range-popover{position:absolute; top:calc(100% + 8px); right:0; z-index:30; display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:12px; min-width:320px; background:#fff; border:1px solid #dcdcde; border-radius:12px; box-shadow:0 16px 36px rgba(15,23,42,.16);}
.em-ref-date-range-popover[hidden]{display:none !important;}
.em-ref-date-range-popover label{font-size:12px; font-weight:600;}
.em-ref-date-range-popover input{margin-top:4px; min-height:40px;}
.em-ref-date-range-display[readonly]{cursor:pointer; background:#fff;}
.em-ref-bulk-bar{display:flex; align-items:center; gap:10px; padding:10px 12px; margin:0 0 10px; max-width:1140px; background:#fff; border:1px solid #dcdcde; border-radius:12px;}
.em-ref-bulk-bar select{min-width:170px; min-height:36px;}
@media (max-width: 1280px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:repeat(4,minmax(180px,1fr));}
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:repeat(3,minmax(180px,1fr));}
}
@media (max-width: 900px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid,
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:1fr;}
  .em-ref-date-range-popover{left:0; right:auto; min-width:280px; grid-template-columns:1fr;}
  .em-ref-bulk-bar{flex-wrap:wrap;}
}


/* v0.9.1 compact signature/editor/date UI */
.em-signature-canvas{background:#ffffff !important;border:1px solid rgba(120,191,255,.22) !important;border-radius:14px !important;}
.em-signature-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:12px;flex-wrap:wrap;}
.em-signature-status{font-size:12px;color:#9ef0b6;}
.em-signature-status.is-pending{color:rgba(232,238,252,.7);}
.em-ref-consent-link{color:#86dfff;text-decoration:underline;}
.em-ref-consent-stack{display:grid;gap:14px;margin:18px 0 0;}
.em-ref-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(120,191,255,.12);cursor:pointer;}
.em-ref-switch-row__copy{display:grid;gap:4px;min-width:0;color:#fff;}
.em-ref-switch-row__copy strong{font-size:15px;color:#fff;}
.em-ref-switch-row__copy small{font-size:13px;line-height:1.5;color:#dceafe;}
.em-ref-switch{position:relative;flex:0 0 auto;width:54px;height:32px;display:inline-flex;align-items:center;}
.em-ref-switch input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;}
.em-ref-switch__track{position:relative;display:block;width:54px;height:32px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(120,191,255,.18);transition:all .2s ease;}
.em-ref-switch__track::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.24);transition:transform .2s ease;}
.em-ref-switch input:checked + .em-ref-switch__track{background:linear-gradient(135deg,#4ed9ff,#34d399);border-color:transparent;}
.em-ref-switch input:checked + .em-ref-switch__track::after{transform:translateX(22px);}
.em-ref-switch input:focus-visible + .em-ref-switch__track{outline:2px solid #9ee8ff;outline-offset:3px;}
@media (max-width: 640px){.em-ref-switch-row{align-items:flex-start;}.em-ref-switch{margin-top:2px;}}

.em-ref-upload-card{display:grid;gap:10px;padding:14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(120,191,255,.12);}
.em-ref-upload-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.em-ref-upload-actions input[type=file]{display:none;}
.em-ref-upload-tips{margin:0;padding-left:18px;font-size:12px;color:rgba(232,238,252,.74);display:grid;gap:4px;}
.em-ref-upload-file{font-size:12px;color:#dbeafe;min-height:18px;}
.em-ref-inline-error{display:block;margin-top:6px;font-size:12px;font-weight:700;color:#ff8ea8;}
.em-ref-inline-error.is-hidden{display:none;}
.em-ref-grid input.is-invalid,.em-ref-grid textarea.is-invalid,.em-ref-grid select.is-invalid{border-color:#ff6b8a !important;box-shadow:0 0 0 1px rgba(255,107,138,.28) !important;}
.em-ref-onboarding .em-ref-editor-presets,
.em-ref-card .em-ref-editor-presets{max-height:min(70vh,640px) !important;overflow:auto !important;padding:12px !important;}
.em-ref-onboarding .em-ref-editor-preset-head,
.em-ref-card .em-ref-editor-preset-head{grid-template-columns:1fr .8fr auto !important;}
.em-ref-onboarding .em-ref-editor-preset-head__wide,
.em-ref-card .em-ref-editor-preset-head__wide{grid-column:1 / -1 !important;}
.em-ref-onboarding .em-ref-editor-preset-grid,
.em-ref-card .em-ref-editor-preset-grid{grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:6px !important;}
.em-ref-onboarding .em-ref-editor-preset,
.em-ref-card .em-ref-editor-preset{padding:6px 8px !important;font-size:11px !important;line-height:1.15 !important;min-height:34px !important;}
.em-ref-onboarding .em-ref-editor-more__menu,
.em-ref-card .em-ref-editor-more__menu{min-width:160px !important;}
@media (max-width: 1200px){
  .em-ref-onboarding .em-ref-editor-preset-grid,
  .em-ref-card .em-ref-editor-preset-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media (max-width: 900px){
  .em-ref-onboarding .em-ref-editor-preset-grid,
  .em-ref-card .em-ref-editor-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}


/* v0.9.2 admin toolbar + required fixes */
.em-ref-grid label > span,
.em-signature-head > span{display:inline-flex;align-items:center;gap:2px;flex-wrap:nowrap;white-space:nowrap;}
.em-ref-grid label > span .em-required-star,
.em-signature-head > span .em-required-star{display:inline-block;flex:0 0 auto;}
.ecrm-admin-wrap .em-ref-admin-filter-card{max-width:none !important;width:100% !important;}
.ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:minmax(220px,1.8fr) minmax(120px,.9fr) minmax(120px,.9fr) minmax(160px,1.1fr) minmax(145px,.95fr) minmax(145px,.95fr) minmax(160px,1fr) auto auto !important;}
.ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:minmax(260px,1.8fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(150px,.9fr) auto auto !important;}
.em-ref-admin-filter-actions{justify-content:flex-end;}
.em-ref-admin-datewrap{position:relative;display:block;}
.em-ref-admin-datewrap input{padding-right:34px;}
.em-ref-admin-dateicon{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:14px;pointer-events:none;opacity:.8;}
.em-ref-admin-filter-field input[type="date"],
.em-ref-admin-filter-field select,
.em-ref-admin-filter-field input[type="text"]{height:40px;box-sizing:border-box;}
@media (max-width: 1400px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:repeat(5,minmax(150px,1fr)) !important;}
}
@media (max-width: 1100px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr)) !important;}
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:repeat(3,minmax(160px,1fr)) !important;}
}


/* v0.9.3 toolbar width + date cleanup */
.ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:minmax(180px,1.6fr) minmax(100px,.75fr) minmax(100px,.75fr) minmax(130px,.95fr) minmax(130px,.9fr) minmax(130px,.9fr) minmax(130px,.95fr) 84px 44px !important;align-items:end !important;}
.ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:minmax(220px,1.6fr) minmax(130px,.85fr) minmax(130px,.85fr) minmax(130px,.85fr) 84px 44px !important;align-items:end !important;}
.ecrm-admin-wrap .em-ref-admin-filter-card{overflow:visible !important;}
.ecrm-admin-wrap .em-ref-admin-filter-field label{margin:0 !important;}
.ecrm-admin-wrap .em-ref-admin-filter-actions{justify-content:flex-start !important;align-self:end !important;}
.ecrm-admin-wrap .em-ref-admin-filter-actions .button{width:100%;min-width:0 !important;display:inline-flex;align-items:center;justify-content:center;}
.ecrm-admin-wrap .em-ref-admin-reset{width:44px !important;height:40px !important;padding:0 !important;}
.ecrm-admin-wrap .em-ref-admin-datewrap input{padding-right:12px !important;}
.ecrm-admin-wrap .em-ref-admin-dateicon{display:none !important;}
.ecrm-admin-wrap input[type="date"]::-webkit-calendar-picker-indicator{opacity:1;}
@media (max-width: 1380px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:repeat(5,minmax(140px,1fr)) auto auto !important;}
}
@media (max-width: 1120px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid{grid-template-columns:repeat(3,minmax(160px,1fr)) !important;}
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:repeat(3,minmax(160px,1fr)) !important;}
}


.em-ref-redirect__header{display:grid;gap:4px;}
.em-ref-redirect__hint{font-size:12px;opacity:.8;}
.em-ref-redirect__progress{position:relative;height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;}
.em-ref-redirect__progress span{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#4ed9ff,#64f0c8);transition:width .35s ease;}
.em-ref-redirect.is-stopped .em-ref-redirect__progress span{background:linear-gradient(90deg,#94a3b8,#64748b);}

.em-ref-scan-bridge{
  margin:16px 0 0;
  padding:20px;
  border:1px solid rgba(120,191,255,.14);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(15,23,42,.94), rgba(15,23,42,.88));
  box-shadow:0 18px 48px rgba(2,6,23,.18);
}
.em-ref-scan-bridge__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.em-ref-scan-bridge__head h4{margin:0 0 8px;}
.em-ref-scan-bridge__head p{margin:0;color:#dbeafe;max-width:46ch;}
.em-ref-scan-bridge__layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:18px;align-items:stretch;margin-top:14px;}
.em-ref-scan-status{margin-top:14px;font-size:14px;color:#dceafe;}
@media (max-width: 900px){
  .em-ref-scan-bridge__head{flex-direction:column;}
  .em-ref-scan-bridge__layout{grid-template-columns:1fr;gap:14px;}
}


.em-ref-scan-qr{display:grid;grid-template-columns:1fr;gap:16px;align-content:start;margin:0;padding:20px;border-radius:22px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.em-ref-scan-qr__image{display:grid;place-items:center;min-height:196px;padding:18px;border-radius:18px;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.18);}
.em-ref-scan-qr__image img,.em-ref-scan-qr__image canvas{display:block;width:100%;max-width:188px;height:auto;border-radius:12px;}
.em-ref-scan-qr__image [data-scan-qr-image]{display:grid;place-items:center;width:100%;}
.em-ref-scan-qr__placeholder{color:#64748b;font-size:13px;text-align:center;}
.em-ref-scan-qr__copy strong{display:block;margin:0 0 6px;color:#fff;font-size:17px;}
.em-ref-scan-qr__copy p{margin:0;color:#cfe2ff;line-height:1.55;}
@media (max-width: 760px){.em-ref-scan-qr{grid-template-columns:1fr;}.em-ref-scan-qr__image{max-width:220px;margin:0 auto;width:100%;}}


.em-ref-device-mobile-only{display:none !important;}
.em-ref-device-desktop-only{display:block !important;}
.em-ref-scan-bridge .em-ref-device-mobile-only-inline{display:none !important;}
.em-ref-scan-bridge .em-ref-device-desktop-only-inline{display:inline-flex !important;}
@media (max-width: 900px){
  .em-ref-device-mobile-only{display:block !important;}
  .em-ref-device-desktop-only{display:none !important;}
  .em-ref-scan-bridge .em-ref-device-mobile-only-inline{display:inline-flex !important;}
  .em-ref-scan-bridge .em-ref-device-desktop-only-inline{display:none !important;}
  .em-ref-scan-qr{display:none !important;}
}

.em-ref-onboarding input[type="date"]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;display:block;-webkit-appearance:none;appearance:none;}
.em-ref-onboarding .form-grid input,
.em-ref-onboarding .em-ref-grid input,
.em-ref-onboarding .form-grid textarea,
.em-ref-onboarding .em-ref-grid textarea,
.em-ref-onboarding .em-ref-grid select{box-sizing:border-box;min-width:0;}

@media (max-width: 900px){
  .document-preview{padding:0;border:0;background:transparent;max-height:none;overflow:visible;-webkit-overflow-scrolling:touch;}
  .document-preview__inner{gap:12px;}
  .doc-card{padding:14px;border-radius:16px;}
  .doc-card__summary{padding:12px;}
  .doc-card__viewer{display:block;overflow:auto;padding:10px;min-height:72vh;max-height:72vh;border-radius:14px;-webkit-overflow-scrolling:touch;justify-content:flex-start;scrollbar-width:thin;}
  .doc-card__viewer iframe{width:100%;max-width:100%;min-width:100%;height:72vh;min-height:72vh;display:block;pointer-events:auto;touch-action:pan-y;overflow:auto;background:#eef3f9;}
}

.ecrm-admin-wrap .em-ref-admin-filter-grid--submissions{grid-template-columns:minmax(200px,2fr) minmax(105px,.9fr) minmax(95px,.9fr) minmax(125px,1fr) minmax(135px,1fr) minmax(135px,1fr) minmax(110px,.95fr) auto auto;}
.ecrm-admin-wrap .em-ref-admin-filter-grid--submissions .em-ref-admin-filter-actions .button{white-space:nowrap;}
.ecrm-admin-wrap .em-ref-admin-filter-grid--submissions .em-ref-admin-filter-field,
.ecrm-admin-wrap .em-ref-admin-filter-grid--flows .em-ref-admin-filter-field{min-width:0;}
@media (max-width: 1280px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid--submissions,
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:repeat(3,minmax(180px,1fr));}
}
@media (max-width: 900px){
  .ecrm-admin-wrap .em-ref-admin-filter-grid--submissions,
  .ecrm-admin-wrap .em-ref-admin-filter-grid--flows{grid-template-columns:1fr;}
}


.em-ref-scan-status-card{margin-top:14px;padding:14px 16px;border-radius:16px;border:1px solid rgba(96,165,250,.22);background:rgba(59,130,246,.10);color:#eaf3ff;}
.em-ref-scan-status-card strong{display:block;font-size:15px;margin:0 0 4px;color:#fff;}
.em-ref-scan-status-card p{margin:0;font-size:14px;line-height:1.5;}
.em-ref-scan-status-card.is-success{border-color:rgba(34,197,94,.32);background:rgba(34,197,94,.14);box-shadow:0 0 0 1px rgba(34,197,94,.12) inset;}
.em-ref-scan-status-card.is-success strong{color:#dcfce7;}

.em-ref-scan-inline-panel{margin-top:0;}
.em-ref-scan-inline-panel[hidden]{display:none !important;}
.em-ref-scan-inline-panel__dialog{width:100%;height:100%;padding:20px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(148,163,184,.16);box-shadow:none;color:#fff;}
.em-ref-scan-inline-panel__header{display:grid;gap:8px;margin-bottom:16px;}
.em-ref-scan-modal__eyebrow{margin:0;color:#93c5fd;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;}
.em-ref-scan-inline-panel__header h4{margin:0;font-size:28px;line-height:1.1;color:#fff;}
.em-ref-scan-inline-panel__header p{margin:0;color:#dbeafe;line-height:1.55;max-width:48ch;}
.em-ref-scan-modal__status{margin-bottom:16px;padding:13px 15px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(148,163,184,.16);color:#e2e8f0;font-weight:600;}
.em-ref-scan-modal__status.is-success{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.3);color:#dcfce7;}
.em-ref-scan-modal__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.em-ref-scan-modal__slot{padding:16px;border-radius:18px;background:rgba(255,255,255,.025);border:1px solid rgba(148,163,184,.16);display:grid;gap:14px;align-content:start;}
.em-ref-scan-modal__slot.is-complete{border-color:rgba(34,197,94,.34);background:rgba(34,197,94,.12);}
.em-ref-scan-modal__slot-head{display:grid;gap:4px;}
.em-ref-scan-modal__slot-head strong{font-size:18px;color:#fff;}
.em-ref-scan-modal__slot-head span{font-size:13px;color:#cbd5e1;word-break:break-word;}
.em-ref-scan-modal__actions{display:grid;gap:10px;}
.em-ref-scan-modal__actions .em-ref-button{width:100%;min-height:56px;}
.em-ref-scan-modal__hint{font-size:13px;color:#cbd5e1;}
.em-ref-scan-modal__footer{margin-top:18px;display:flex;justify-content:flex-end;}
.em-ref-scan-input{display:none !important;}
.em-ref-scan-status--hero{padding:18px;border-radius:20px;background:linear-gradient(135deg,rgba(59,130,246,.18),rgba(34,197,94,.15));border:1px solid rgba(96,165,250,.22);font-weight:700;}
.em-ref-scan-bridge.is-inline-open .em-ref-scan-qr{opacity:.55;}
@media (max-width: 900px){
  .em-ref-scan-bridge{padding:14px 14px 16px;border-radius:18px;background:rgba(15,23,42,.9);box-shadow:none;}
  .em-ref-scan-bridge__head{gap:10px;}
  .em-ref-scan-bridge__head h4{margin-bottom:4px;}
  .em-ref-scan-bridge__head p{font-size:14px;}
  .em-ref-scan-status{margin-top:10px;font-size:13px;}
  .em-ref-scan-inline-panel__dialog{padding:0;border-radius:0;background:transparent;border:0;box-shadow:none;}
  .em-ref-scan-inline-panel__header{gap:6px;margin-bottom:12px;}
  .em-ref-scan-inline-panel__header h4{font-size:22px;}
  .em-ref-scan-inline-panel__header p{font-size:14px;line-height:1.45;}
  .em-ref-scan-modal__eyebrow{font-size:11px;}
  .em-ref-scan-modal__status{margin-bottom:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);}
  .em-ref-scan-modal__grid{grid-template-columns:1fr;gap:10px;}
  .em-ref-scan-modal__slot{padding:14px;border-radius:16px;background:rgba(255,255,255,.02);}
  .em-ref-scan-modal__slot-head strong{font-size:17px;}
  .em-ref-scan-modal__slot-head span,.em-ref-scan-modal__hint{font-size:12px;}
  .em-ref-scan-modal__actions{grid-template-columns:1fr;gap:8px;}
  .em-ref-scan-modal__actions .em-ref-button{min-height:52px;}
  .em-ref-scan-modal__footer{justify-content:stretch;}
  .em-ref-scan-modal__footer .em-ref-button{width:100%;}
  .em-ref-scan-status-card{margin-top:10px;padding:13px 14px;border-radius:14px;}
}



/* v1.2.0 — Layout cleanup, info system, validation, compact */
.em-ref-card { padding:24px; border-radius:24px; }
.em-ref-card h2 { margin:0 0 8px; font-size:clamp(24px,3.5vw,42px); }
.em-ref-card p { margin:0 0 8px; font-size:15px; line-height:1.55; }
.form-grid, .em-ref-grid { gap:14px; margin-top:16px; }
.em-ref-actions { margin-top:20px; }
.em-ref-divider { margin:22px 0 16px; }

/* validation: red border for all invalid required fields */
.em-ref-grid input.is-invalid,
.em-ref-grid textarea.is-invalid,
.em-ref-grid select.is-invalid,
.em-ref-inline-options.is-invalid,
.em-ref-toggle-group.is-invalid,
.em-ref-switch-row.is-invalid {
  border-color:#ff4d6a !important;
  box-shadow:0 0 0 2px rgba(255,77,106,.22) !important;
}
.em-ref-inline-options.is-invalid, .em-ref-toggle-group.is-invalid { border-color:#ff4d6a !important; box-shadow:0 0 0 2px rgba(255,77,106,.22) !important; }
.em-ref-switch-row.is-invalid { border-color:#ff4d6a !important; box-shadow:0 0 0 2px rgba(255,77,106,.22) !important; }
.em-ref-switch-row.is-invalid .em-ref-switch__track { border-color:#ff4d6a !important; }

/* (i) info icon system */
.em-ref-info-icon {
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;
  background:rgba(120,191,255,.12);border:1px solid rgba(120,191,255,.2);
  color:#7ec8ff;font-size:12px;font-weight:800;line-height:1;
  cursor:pointer;flex-shrink:0;margin-left:6px;
  transition:all .2s ease;user-select:none;
}
.em-ref-info-icon:hover { background:rgba(120,191,255,.22); color:#fff; }
.em-ref-info-popout {
  display:none;position:fixed;z-index:9999;
  max-width:340px;padding:16px 18px;
  border-radius:16px;
  background:rgba(8,14,28,.97);border:1px solid rgba(120,191,255,.2);
  box-shadow:0 20px 50px rgba(0,0,0,.4);
  color:#e2ecff;font-size:14px;line-height:1.55;
  backdrop-filter:blur(12px);
}
.em-ref-info-popout.is-visible { display:block; }
.em-ref-info-popout__close {
  position:absolute;top:8px;right:10px;
  background:none;border:none;color:#8bb8e8;font-size:18px;cursor:pointer;
  line-height:1;padding:4px;
}
.em-ref-info-popout__close:hover { color:#fff; }
.em-ref-info-popout h4 { margin:0 0 6px;font-size:15px;color:#fff; }
.em-ref-info-popout p { margin:0; }

/* step header with info icon */
.em-ref-step-header { display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap; }
.em-ref-step-header h2 { margin:0 !important; flex:1 1 auto; }

/* compact mobile */
@media (max-width: 900px) {
  .em-ref-card { padding:18px; border-radius:20px; }
  .em-ref-card h2 { font-size:clamp(22px,5vw,32px); }
  .form-grid, .em-ref-grid { gap:12px; margin-top:14px; }
  .em-ref-actions { margin-top:16px; gap:10px; }
  .em-ref-info-popout { max-width:calc(100vw - 32px); left:16px !important; right:16px !important; }
}

@media (max-width: 640px) {
  .em-ref-card { padding:16px; border-radius:18px; }
  .em-ref-card h2 { font-size:22px; }
  .em-signature-head { flex-direction:column; align-items:flex-start; gap:8px; }
  .em-signature-head .em-ref-link, .em-signature-head .em-ref-button--small { max-width:100%; }
}

/* CRM Dashboard admin styles — Dark Mode */
.ecrm-dashboard-wrap { max-width:1280px; color:#e8eef8; }
.ecrm-dashboard-wrap h1, .ecrm-dashboard-wrap h2, .ecrm-dashboard-wrap h3 { color:#e8eef8; }
.ecrm-dashboard-wrap .wrap { background:transparent; }
.ecrm-dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin:16px 0 24px; }
.ecrm-dashboard-card { background:rgba(15,20,35,.85); border:1px solid rgba(120,191,255,.14); border-radius:16px; padding:20px; backdrop-filter:blur(8px); }
.ecrm-dashboard-card h3 { margin:0 0 6px; font-size:12px; color:rgba(232,238,252,.5); text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.ecrm-dashboard-card .ecrm-big-number { font-size:32px; font-weight:800; color:#fff; margin:0; background:linear-gradient(135deg, #4ed9ff, #d84bff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.ecrm-dashboard-card .ecrm-sub { font-size:12px; color:rgba(232,238,252,.45); margin:4px 0 0; }
.ecrm-chart-wrap { background:rgba(15,20,35,.85); border:1px solid rgba(120,191,255,.14); border-radius:16px; padding:20px; margin:16px 0 24px; backdrop-filter:blur(8px); }
.ecrm-chart-wrap h3 { margin:0 0 12px; color:#e8eef8; }
.ecrm-flow-table { width:100%; border-collapse:collapse; margin-top:16px; }
.ecrm-flow-table th, .ecrm-flow-table td { padding:10px 14px; text-align:left; border-bottom:1px solid rgba(120,191,255,.1); }
.ecrm-flow-table th { background:rgba(120,191,255,.06); font-size:12px; color:rgba(232,238,252,.5); text-transform:uppercase; letter-spacing:.04em; border-radius:8px 8px 0 0; }
.ecrm-flow-table td { font-size:14px; color:#e8eef8; }
.ecrm-flow-table code { background:rgba(120,191,255,.1); color:#7ee4ff; padding:2px 8px; border-radius:6px; font-size:13px; }
.ecrm-flow-table .button { background:linear-gradient(135deg, rgba(78,217,255,.15), rgba(216,75,255,.1)); color:#86dfff; border:1px solid rgba(120,191,255,.2); border-radius:8px; }
.ecrm-flow-table .button:hover { background:linear-gradient(135deg, rgba(78,217,255,.25), rgba(216,75,255,.18)); }
.ecrm-status-badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.ecrm-status-badge--new { background:rgba(59,130,246,.15); color:#60a5fa; }
.ecrm-status-badge--progress { background:rgba(245,158,11,.15); color:#fbbf24; }
.ecrm-status-badge--done { background:rgba(34,197,94,.15); color:#4ade80; }
.ecrm-status-badge--cancelled { background:rgba(239,68,68,.15); color:#f87171; }
.ecrm-detail-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.ecrm-detail-header h2 { margin:0; color:#e8eef8; }
.ecrm-detail-header code { background:rgba(120,191,255,.1); color:#7ee4ff; padding:4px 10px; border-radius:8px; }
.ecrm-detail-header .button { background:rgba(120,191,255,.1); color:#86dfff; border:1px solid rgba(120,191,255,.2); border-radius:8px; }
.ecrm-detail-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:20px; }


/* v1.3.2 — light dashboard + upload header cleanup */
body.wp-admin .ecrm-dashboard-wrap,
body.wp-admin .ecrm-dashboard-wrap h1,
body.wp-admin .ecrm-dashboard-wrap h2,
body.wp-admin .ecrm-dashboard-wrap h3{color:#0f172a;}
body.wp-admin .ecrm-dashboard-wrap .wrap{background:transparent;}
body.wp-admin .ecrm-dashboard-card,
body.wp-admin .ecrm-chart-wrap{
  background:#ffffff;
  border:1px solid #dbe7f3;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  backdrop-filter:none;
}
body.wp-admin .ecrm-dashboard-card h3,
body.wp-admin .ecrm-chart-wrap h3{color:#475569;}
body.wp-admin .ecrm-dashboard-card .ecrm-sub{color:#64748b;}
body.wp-admin .ecrm-flow-table th{
  background:#f8fbff;
  color:#64748b;
  border-bottom:1px solid #dbe7f3;
}
body.wp-admin .ecrm-flow-table td{
  color:#0f172a;
  border-bottom:1px solid #e8eef6;
}
body.wp-admin .ecrm-flow-table code,
body.wp-admin .ecrm-detail-header code{
  background:#eef6ff;
  color:#0f4c81;
}
body.wp-admin .ecrm-flow-table .button,
body.wp-admin .ecrm-detail-header .button{
  background:#ffffff;
  color:#0f4c81;
  border:1px solid #bfd8ef;
}
body.wp-admin .ecrm-flow-table .button:hover,
body.wp-admin .ecrm-detail-header .button:hover{
  background:#f5fbff;
  color:#0b3b65;
}

/* ensure toggle pills render as pills, not native radios */
label.em-ref-toggle-option,
.em-ref-grid label.em-ref-toggle-option,
.form-grid label.em-ref-toggle-option{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
}
label.em-ref-toggle-option input,
.em-ref-grid label.em-ref-toggle-option input,
.form-grid label.em-ref-toggle-option input{
  position:absolute !important;
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  pointer-events:none !important;
}

@media (max-width: 900px){
  .em-ref-onboarding{gap:14px;}
  .em-ref-progress-compact{font-size:13px;}
  .em-ref-step-pills{gap:10px;margin:0 0 12px;}
  .em-ref-step-pill{min-height:34px;padding:0 14px;font-size:13px;}
  .em-ref-card{
    padding:18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(8,16,34,.96), rgba(6,12,28,.97));
    box-shadow:0 12px 32px rgba(2,6,23,.18);
  }
  .em-ref-step[data-step="start"] .em-ref-card{
    padding:20px 18px 18px;
  }
  .em-ref-step[data-step="start"] .em-ref-card h2{
    font-size:clamp(30px, 9vw, 42px);
    line-height:1.02;
    letter-spacing:-.04em;
    margin-bottom:6px !important;
  }
  .em-ref-step[data-step="start"] .em-ref-card > p[data-start-copy]{
    font-size:16px;
    line-height:1.45;
    color:rgba(232,238,252,.88);
    margin-bottom:14px;
  }
  .em-ref-choice-grid,
  .option-grid{grid-template-columns:1fr;gap:14px;margin-top:16px;}
  .option-card{
    min-height:auto;
    padding:20px 18px;
    border-radius:22px;
    gap:8px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(125,197,255,.12);
  }
  .option-card strong{font-size:19px;line-height:1.2;}
  .option-card small{font-size:15px;line-height:1.5;}
  .em-ref-partner-badge{margin-top:6px;justify-self:start;}
  .em-ref-partner-teaser{
    margin-top:12px;
    padding:12px 14px;
    border-radius:16px;
    text-align:left;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(120,191,255,.10);
    font-size:14px;
    line-height:1.5;
    color:rgba(232,238,252,.82);
  }
  .em-ref-step-header{align-items:flex-start;gap:10px;}
  .em-ref-step-header h2{min-width:0;}
  .em-ref-info-icon{margin-left:0;width:24px;height:24px;}

  .em-ref-toggle-group{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:6px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(120,191,255,.14);
    overflow:visible;
  }
  .em-ref-toggle-option{
    min-height:52px;
    padding:0 12px;
    border-radius:14px;
    border:1px solid rgba(120,191,255,.10);
    background:rgba(8,14,28,.7);
    color:rgba(232,238,252,.72);
    text-align:center;
    font-size:15px;
    line-height:1.2;
    font-weight:700;
    border-right:none !important;
  }
  .em-ref-toggle-option span{white-space:normal;}
  .em-ref-toggle-option.is-active{box-shadow:0 10px 24px rgba(78,217,255,.18);}

  .em-ref-grid input,
  .em-ref-grid select,
  .em-ref-grid textarea,
  .form-grid input,
  .form-grid select,
  .form-grid textarea{
    min-height:58px;
    border-radius:18px;
    font-size:16px;
  }

  .em-signature-box{
    margin-top:16px;
    padding:16px;
    border-radius:20px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(120,191,255,.12);
  }
  .em-signature-head{
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
  }
  .em-signature-head > span{font-size:16px;font-weight:700;color:#fff;}
  .em-signature-head .em-ref-button--small{
    min-height:38px;
    padding:0 14px;
    font-size:13px;
    max-width:none;
    flex:0 0 auto;
    white-space:nowrap;
  }
  .em-signature-canvas{
    width:100% !important;
    min-width:100%;
    height:260px;
    min-height:260px;
    border-radius:18px;
    display:block;
  }
  .em-signature-actions{
    justify-content:space-between;
    align-items:center;
    gap:10px;
  }
  .em-signature-actions .em-ref-button{
    min-height:50px;
    padding:0 18px;
  }
  .em-signature-status{
    font-size:13px;
    line-height:1.4;
    flex:1 1 auto;
    min-width:0;
  }
}

@media (max-width: 640px){
  .em-ref-card{padding:16px;border-radius:20px;}
  .em-ref-step[data-step="start"] .em-ref-card h2{font-size:clamp(28px, 10vw, 38px);}
  .em-ref-toggle-group[data-validation-group="signature_mode"]{grid-template-columns:1fr 1fr;}
  .em-ref-toggle-group[data-validation-group="salutation"]{grid-template-columns:repeat(3,minmax(0,1fr));}
  .em-signature-head{flex-wrap:wrap;align-items:flex-start;}
  .em-signature-head .em-ref-button--small{align-self:flex-start;}
  .em-signature-canvas{height:240px;min-height:240px;}
}


/* v1.3.2 dashboard hard light mode */
body.wp-admin #wpcontent,
body.wp-admin #wpbody,
body.wp-admin #wpbody-content{background:#f4f7fb !important;}
body.wp-admin .ecrm-dashboard-wrap{background:#f4f7fb !important; color:#0f172a !important;}
body.wp-admin .ecrm-dashboard-wrap p{color:#475569 !important;}
body.wp-admin .ecrm-dashboard-wrap h1,
body.wp-admin .ecrm-dashboard-wrap h2,
body.wp-admin .ecrm-dashboard-wrap h3,
body.wp-admin .ecrm-detail-header h2{color:#0f172a !important;}
body.wp-admin .ecrm-chart-wrap canvas{background:transparent !important;}


/* v1.3.3 — readable previews + lighter mobile onboarding + hard admin light mode */
.doc-card--template{gap:18px;}
.doc-card__header{align-items:center;}
.doc-card__summary{background:#f8fbff;border:1px solid #dbe7f5;color:#334155;}
.doc-card__meta{color:#475569;}
.document-preview{background:#f8fbff;border:1px solid #dbe7f5;padding:20px;}
.doc-card{background:#ffffff;border:1px solid #dbe7f5;box-shadow:0 8px 24px rgba(15,23,42,.05);}
.doc-card__viewer{background:#ffffff;border:1px solid #dbe7f5;padding:20px;min-height:1120px;max-height:none;}
.doc-card__viewer iframe{width:min(100%, 1040px);height:1180px;min-height:1180px;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.08);}
.em-ref-doc-open{background:#eef6ff;border-color:#c8d8eb;color:#0f172a;}
body.wp-admin.toplevel_page_em-ref-crm-dashboard,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail,
body.wp-admin.toplevel_page_em-ref-crm-dashboard #wpwrap,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail #wpwrap,
body.wp-admin.toplevel_page_em-ref-crm-dashboard #wpcontent,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail #wpcontent,
body.wp-admin.toplevel_page_em-ref-crm-dashboard #wpbody,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail #wpbody,
body.wp-admin.toplevel_page_em-ref-crm-dashboard #wpbody-content,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail #wpbody-content{background:#f4f7fb !important;color:#0f172a !important;}
body.wp-admin.toplevel_page_em-ref-crm-dashboard .ecrm-dashboard-card,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail .ecrm-dashboard-card,
body.wp-admin.toplevel_page_em-ref-crm-dashboard .ecrm-chart-wrap,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail .ecrm-chart-wrap,
body.wp-admin.toplevel_page_em-ref-crm-dashboard .ecrm-flow-table,
body.wp-admin.referral-crm_page_em-ref-crm-flow-detail .ecrm-flow-table{background:#fff !important;border-color:#dbe7f5 !important;color:#0f172a !important;}
@media (max-width: 900px){
  body.em-ref-standalone,
  .em-ref-onboarding-active{background:#eef5ff !important;}
  body.em-ref-standalone::before,
  .em-ref-onboarding-active::before{
    background:
      radial-gradient(ellipse 480px 320px at 15% 8%, rgba(78,217,255,.22) 0%, transparent 70%),
      radial-gradient(ellipse 420px 340px at 85% 18%, rgba(216,75,255,.16) 0%, transparent 72%),
      linear-gradient(180deg,#eef5ff 0%,#e9f3ff 55%,#f7fbff 100%);
  }
  .em-ref-onboarding{color:#0f172a;}
  .em-ref-card,
  .option-card,
  .doc-card,
  .em-ref-summary,
  .document-preview,
  .em-ref-auto-meta,
  .em-signature-box,
  .em-ref-switch-row,
  .em-ref-upload-card,
  .em-ref-scan-bridge,
  .em-ref-scan-inline-panel__dialog,
  .em-ref-scan-modal__slot,
  .em-ref-scan-transfer-inline,
  .em-ref-scan-status-card{background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.98)) !important;border-color:#dbe7f5 !important;box-shadow:0 12px 34px rgba(15,23,42,.08) !important;}
  .em-ref-card h2,.em-ref-card h3,.option-card strong,.em-ref-auto-meta strong,.em-ref-step-header h2,.em-ref-scan-qr__copy strong,.em-ref-scan-inline-panel__header h4,.em-ref-scan-modal__slot-head strong{color:#0f172a !important;}
  .em-ref-card p,.em-ref-note,.em-ref-feedback,.em-ref-summary,.option-card small,.doc-card__meta,.em-ref-auto-meta span,.em-ref-help,.em-signature-help,.em-ref-scan-qr__copy p,.em-ref-scan-inline-panel__header p,.em-ref-scan-modal__hint,.em-ref-scan-modal__slot-head span,.form-grid span,.em-ref-grid span,.em-ref-progress-compact,.em-ref-summary, .em-ref-switch-row__copy small{color:#475569 !important;}
  .form-grid input,.form-grid textarea,.em-ref-grid input,.em-ref-grid textarea,.em-ref-grid select,.em-ref-inline-options,.em-ref-toggle-group{background:#ffffff !important;border-color:#dbe7f5 !important;color:#0f172a !important;}
  .em-ref-inline-options label,.em-ref-toggle-option{color:#475569 !important;}
  .em-ref-toggle-option.is-active{color:#0f172a !important;}
  .em-ref-step-pill{background:rgba(15,23,42,.04);border-color:#dbe7f5;color:#64748b;}
  .em-ref-step-pill.is-upcoming{background:#f3f7fd;color:#64748b;}
  .em-ref-step-pill.is-complete{background:#ecfdf3;color:#166534;border-color:#bbf7d0;}
  .em-ref-info-icon{background:#eef6ff !important;border-color:#dbe7f5 !important;color:#2563eb !important;}
  .document-preview{padding:12px;border-radius:20px;background:#f8fbff !important;}
  .doc-card__summary{background:#f8fbff !important;}
  .doc-card__viewer{padding:10px !important;min-height:70vh;border-radius:16px;background:#ffffff !important;}
  .doc-card__viewer iframe{height:78vh !important;min-height:78vh !important;background:#ffffff !important;}
}


/* v1.3.4 — dashboard KPI visuals + restore dark document preview + colorful mobile background */
.ecrm-mini-visuals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:8px 0 24px;}
.ecrm-mini-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;}
.ecrm-mini-trend{display:inline-flex;align-items:center;justify-content:center;min-width:54px;min-height:34px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:800;}
.ecrm-mini-trend.is-up{background:rgba(34,197,94,.12);color:#15803d;}
.ecrm-mini-trend.is-down{background:rgba(239,68,68,.12);color:#b91c1c;}
.ecrm-mini-bars{display:flex;align-items:flex-end;gap:8px;height:180px;padding-top:12px;}
.ecrm-mini-bars__bar{flex:1 1 0;border-radius:999px 999px 10px 10px;min-height:10px;box-shadow:inset 0 -1px 0 rgba(255,255,255,.22);}
.ecrm-mini-bars__bar.is-views{background:linear-gradient(180deg,#4ed9ff,#4f8cff);}
.ecrm-mini-bars__bar.is-completes{background:linear-gradient(180deg,#34d399,#22c55e);}
body.wp-admin .ecrm-dashboard-card,
body.wp-admin .ecrm-chart-wrap,
body.wp-admin .ecrm-flow-table{box-shadow:0 10px 30px rgba(15,23,42,.06) !important; backdrop-filter:none !important;}
body.wp-admin .ecrm-dashboard-card{background:#ffffff !important;}
body.wp-admin .ecrm-chart-wrap{background:linear-gradient(180deg,#ffffff,#f8fbff) !important;}
@media (max-width: 900px){.ecrm-mini-visuals{grid-template-columns:1fr;}}

.document-preview{background:rgba(255,255,255,.04) !important;border:1px solid rgba(120,191,255,.14) !important;padding:18px !important;}
.doc-card{background:rgba(5,9,20,.54) !important;border:1px solid rgba(120,191,255,.12) !important;box-shadow:none !important;}
.doc-card__summary{background:rgba(255,255,255,.03) !important;border:1px solid rgba(120,191,255,.10) !important;color:rgba(232,238,252,.82) !important;}
.doc-card__meta{color:rgba(232,238,252,.72) !important;}
.doc-card__viewer{background:rgba(7,17,31,.92) !important;border:1px solid rgba(120,191,255,.12) !important;padding:18px !important;min-height:1120px;max-height:none;}
.doc-card__viewer iframe{width:min(100%, 1040px);height:1180px;min-height:1180px;background:#fff !important;border-radius:14px;box-shadow:0 18px 44px rgba(0,0,0,.24) !important;}
.em-ref-doc-open{background:rgba(255,255,255,.06) !important;border-color:rgba(120,191,255,.14) !important;color:#eef6ff !important;}

@media (max-width: 900px){
  body.em-ref-standalone,
  .em-ref-onboarding-active{background:#081224 !important;}
  body.em-ref-standalone::before,
  .em-ref-onboarding-active::before{
    background:
      radial-gradient(circle at 10% 8%, rgba(78,217,255,.26) 0%, transparent 28%),
      radial-gradient(circle at 92% 14%, rgba(216,75,255,.22) 0%, transparent 30%),
      radial-gradient(circle at 50% 88%, rgba(99,102,241,.18) 0%, transparent 32%),
      linear-gradient(180deg,#09142a 0%,#0b1831 48%,#0a1328 100%) !important;
  }
  .em-ref-onboarding{color:#eef6ff !important;}
  .em-ref-card,
  .option-card,
  .doc-card,
  .em-ref-summary,
  .document-preview,
  .em-ref-auto-meta,
  .em-signature-box,
  .em-ref-switch-row,
  .em-ref-upload-card,
  .em-ref-scan-bridge,
  .em-ref-scan-inline-panel__dialog,
  .em-ref-scan-modal__slot,
  .em-ref-scan-transfer-inline,
  .em-ref-scan-status-card{background:linear-gradient(180deg, rgba(11,18,36,.92), rgba(8,13,27,.94)) !important;border-color:rgba(110,185,255,.14) !important;box-shadow:0 18px 60px rgba(0,0,0,.25) !important;}
  .em-ref-card h2,.em-ref-card h3,.option-card strong,.em-ref-auto-meta strong,.em-ref-step-header h2,.em-ref-scan-qr__copy strong,.em-ref-scan-inline-panel__header h4,.em-ref-scan-modal__slot-head strong{color:#ffffff !important;}
  .em-ref-card p,.em-ref-note,.em-ref-feedback,.em-ref-summary,.option-card small,.doc-card__meta,.em-ref-auto-meta span,.em-ref-help,.em-signature-help,.em-ref-scan-qr__copy p,.em-ref-scan-inline-panel__header p,.em-ref-scan-modal__hint,.em-ref-scan-modal__slot-head span,.form-grid span,.em-ref-grid span,.em-ref-progress-compact,.em-ref-summary,.em-ref-switch-row__copy small{color:rgba(232,238,252,.82) !important;}
  .form-grid input,.form-grid textarea,.em-ref-grid input,.em-ref-grid textarea,.em-ref-grid select,.em-ref-inline-options,.em-ref-toggle-group{background:rgba(5,9,20,.7) !important;border-color:rgba(120,191,255,.14) !important;color:#ffffff !important;}
  .em-ref-inline-options label,.em-ref-toggle-option{color:#ffffff !important;}
  .em-ref-step-pill{background:rgba(255,255,255,.04) !important;border-color:rgba(120,191,255,.12) !important;color:rgba(232,238,252,.46) !important;}
  .em-ref-step-pill.is-upcoming{background:rgba(255,255,255,.03) !important;color:rgba(232,238,252,.32) !important;}
  .em-ref-step-pill.is-complete{background:rgba(34,197,94,.16) !important;color:#86efac !important;border-color:rgba(34,197,94,.30) !important;}
  .em-ref-info-icon{background:rgba(255,255,255,.06) !important;border-color:rgba(120,191,255,.14) !important;color:#86dfff !important;}
  .document-preview{background:rgba(255,255,255,.04) !important;padding:12px !important;border-radius:20px !important;}
  .doc-card__summary{background:rgba(255,255,255,.03) !important;}
  .doc-card__viewer{padding:10px !important;min-height:70vh;border-radius:16px;background:rgba(7,17,31,.92) !important;}
  .doc-card__viewer iframe{height:78vh !important;min-height:78vh !important;background:#ffffff !important;}
}

/* v1.3.6 — dashboard overhaul + frontend upload refinements */
.em-ref-choice-grid + .em-ref-partner-teaser,
.option-grid + .em-ref-partner-teaser{
  margin-top:34px;
}
.em-ref-partner-teaser{
  display:block;
  padding:14px 18px;
  border-radius:18px;
  text-align:left;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(120,191,255,.12);
  line-height:1.6;
}
.em-ref-scan-bridge__head > div{
  flex:1 1 auto;
  min-width:0;
  width:100%;
}
.em-ref-upload-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
}
.em-ref-upload-title h4{
  margin:0;
  min-width:0;
  flex:1 1 auto;
}
.em-ref-upload-title .em-ref-info-icon{
  flex:0 0 auto;
  margin-left:auto !important;
  align-self:flex-start;
}
.em-ref-file-field{
  display:grid;
  gap:10px;
}
.em-ref-file-input{
  width:100%;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(120,191,255,.16);
  background:linear-gradient(180deg, rgba(8,16,34,.86), rgba(9,18,36,.94));
  color:#eef6ff;
  font-size:14px;
  line-height:1.5;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.em-ref-file-input:hover{
  border-color:rgba(120,191,255,.28);
}
.em-ref-file-input:focus{
  outline:none;
  border-color:#78bfff;
  box-shadow:0 0 0 3px rgba(120,191,255,.18);
}
.em-ref-file-input::file-selector-button,
.em-ref-file-input::-webkit-file-upload-button{
  margin-right:14px;
  padding:10px 14px;
  border:1px solid rgba(120,191,255,.18);
  border-radius:12px;
  background:linear-gradient(135deg, rgba(78,217,255,.22), rgba(99,102,241,.18));
  color:#ffffff;
  font-size:13px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.em-ref-file-input:hover::file-selector-button,
.em-ref-file-input:focus::file-selector-button,
.em-ref-file-input:hover::-webkit-file-upload-button,
.em-ref-file-input:focus::-webkit-file-upload-button{
  border-color:rgba(120,191,255,.34);
  background:linear-gradient(135deg, rgba(78,217,255,.28), rgba(99,102,241,.24));
}

body.wp-admin .ecrm-dashboard-wrap,
body.wp-admin .ecrm-dashboard-wrap h1,
body.wp-admin .ecrm-dashboard-wrap h2,
body.wp-admin .ecrm-dashboard-wrap h3,
body.wp-admin .ecrm-dashboard-wrap p{
  color:#0f172a;
}
body.wp-admin .ecrm-dashboard-wrap{
  --ecrm-bg:#f4f7fb;
  background:var(--ecrm-bg);
  padding:24px;
  margin-left:-20px;
  margin-top:-10px;
  min-height:100vh;
}
body.wp-admin #wpcontent,
body.wp-admin #wpbody-content,
body.wp-admin #wpwrap,
body.wp-admin #wpbody{
  background:var(--ecrm-bg);
}
body.wp-admin .ecrm-dashboard-shell{
  display:grid;
  gap:18px;
  max-width:1360px;
}
body.wp-admin .ecrm-dashboard-hero,
body.wp-admin .ecrm-panel,
body.wp-admin .ecrm-kpi-card{
  border:1px solid #dbe7f5;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}
body.wp-admin .ecrm-dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.95fr);
  gap:24px;
  padding:30px;
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(14,165,233,.12), transparent 36%),
    linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
body.wp-admin .ecrm-dashboard-kicker{
  margin:0 0 10px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#2563eb;
}
body.wp-admin .ecrm-dashboard-wrap h1{
  margin:0;
  font-size:40px;
  line-height:1.05;
  letter-spacing:-.04em;
}
body.wp-admin .ecrm-dashboard-lead{
  max-width:760px;
  margin:14px 0 0;
  font-size:16px;
  line-height:1.65;
  color:#475569;
}
body.wp-admin .ecrm-dashboard-controls{
  display:grid;
  gap:14px;
  align-content:start;
}
body.wp-admin .ecrm-control-group{
  display:grid;
  gap:8px;
}
body.wp-admin .ecrm-control-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
body.wp-admin .ecrm-segment{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px;
  border-radius:20px;
  background:#eef5fc;
  border:1px solid #dbe7f5;
}
body.wp-admin .ecrm-segment__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  appearance:none;
  border:0;
  border-radius:14px;
  min-height:44px;
  padding:0 16px;
  background:transparent;
  color:#475569;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s ease;
}
body.wp-admin .ecrm-segment__button:hover{
  background:rgba(37,99,235,.08);
  color:#0f172a;
}
body.wp-admin .ecrm-segment__button.is-active{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
  box-shadow:0 12px 28px rgba(59,130,246,.24);
}
body.wp-admin .ecrm-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
body.wp-admin .ecrm-kpi-card{
  padding:22px;
}
body.wp-admin .ecrm-kpi-card--accent{
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f7f8ff 100%);
}
body.wp-admin .ecrm-kpi-card__eyebrow,
body.wp-admin .ecrm-panel__eyebrow{
  display:block;
  margin:0 0 10px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
body.wp-admin .ecrm-kpi-card__value{
  display:block;
  font-size:clamp(28px,3vw,40px);
  line-height:1.05;
  letter-spacing:-.04em;
  color:#0f172a;
}
body.wp-admin .ecrm-kpi-card__meta,
body.wp-admin .ecrm-panel__hint,
body.wp-admin .ecrm-forecast-copy,
body.wp-admin .ecrm-scenario-card__meta{
  margin:10px 0 0;
  font-size:14px;
  line-height:1.6;
  color:#64748b;
}
body.wp-admin .ecrm-dashboard-grid{
  display:grid;
  gap:16px;
}
body.wp-admin .ecrm-dashboard-grid--feature{
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
}
body.wp-admin .ecrm-dashboard-grid--halves{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.wp-admin .ecrm-panel{
  padding:24px;
}
body.wp-admin .ecrm-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
body.wp-admin .ecrm-panel__head h2{
  margin:0;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.03em;
}
body.wp-admin .ecrm-badge,
body.wp-admin .ecrm-trend-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  white-space:nowrap;
  font-size:13px;
  font-weight:800;
}
body.wp-admin .ecrm-badge{
  background:#eef5fc;
  border:1px solid #dbe7f5;
  color:#2563eb;
}
body.wp-admin .ecrm-badge--soft{
  color:#475569;
}
body.wp-admin .ecrm-forecast-amount{
  font-size:clamp(40px,5vw,62px);
  line-height:.98;
  letter-spacing:-.05em;
  color:#0f172a;
}
body.wp-admin .ecrm-forecast-current-row,
body.wp-admin .ecrm-progress-card__stats{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
body.wp-admin .ecrm-forecast-current-row{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #e5eef9;
}
body.wp-admin .ecrm-forecast-current-row span,
body.wp-admin .ecrm-progress-card__stats span{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.05em;
}
body.wp-admin .ecrm-forecast-current-row strong,
body.wp-admin .ecrm-progress-card__stats strong{
  font-size:24px;
  letter-spacing:-.03em;
}
body.wp-admin .ecrm-progress-card__stats{
  margin-bottom:18px;
}
body.wp-admin .ecrm-progress-track{
  position:relative;
  height:14px;
  border-radius:999px;
  background:#e6eef8;
  overflow:hidden;
}
body.wp-admin .ecrm-progress-track__fill{
  position:absolute;
  inset:0 auto 0 0;
  display:block;
  border-radius:inherit;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
}
body.wp-admin .ecrm-mini-bars{
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-height:170px;
}
body.wp-admin .ecrm-mini-bars__bar{
  flex:1 1 0;
  min-height:10px;
  border-radius:999px 999px 12px 12px;
  background:#cbd5e1;
}
body.wp-admin .ecrm-mini-bars__bar.is-views{
  background:linear-gradient(180deg,#38bdf8,#2563eb);
}
body.wp-admin .ecrm-mini-bars__bar.is-completes{
  background:linear-gradient(180deg,#34d399,#16a34a);
}
body.wp-admin .ecrm-trend-pill.is-up{
  background:rgba(34,197,94,.12);
  color:#15803d;
}
body.wp-admin .ecrm-trend-pill.is-down{
  background:rgba(239,68,68,.12);
  color:#b91c1c;
}
body.wp-admin .ecrm-scenario-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
body.wp-admin .ecrm-scenario-card{
  padding:20px;
  border-radius:20px;
  border:1px solid #dbe7f5;
  background:#f8fbff;
}
body.wp-admin .ecrm-scenario-card__count{
  display:block;
  margin-bottom:10px;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
}
body.wp-admin .ecrm-scenario-card__value{
  display:block;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.04em;
}
body.wp-admin .ecrm-table-wrap{
  overflow:auto;
}
body.wp-admin .ecrm-flow-table{
  width:100%;
  border-collapse:collapse;
}
body.wp-admin .ecrm-flow-table th,
body.wp-admin .ecrm-flow-table td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid #e5eef9;
}
body.wp-admin .ecrm-flow-table th{
  background:#f8fbff;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.wp-admin .ecrm-flow-table td{
  font-size:14px;
  color:#0f172a;
}
body.wp-admin .ecrm-flow-table code{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border-radius:10px;
  background:#eef5fc;
  color:#2563eb;
}
body.wp-admin .ecrm-flow-table .button{
  border-color:#dbe7f5;
  background:#fff;
  color:#2563eb;
}
body.wp-admin .ecrm-flow-table .button:hover{
  background:#eef5fc;
  color:#1d4ed8;
}

@media (max-width: 1180px){
  body.wp-admin .ecrm-kpi-grid,
  body.wp-admin .ecrm-scenario-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.wp-admin .ecrm-dashboard-grid--feature,
  body.wp-admin .ecrm-dashboard-grid--halves,
  body.wp-admin .ecrm-dashboard-hero{
    grid-template-columns:1fr;
  }
}
@media (max-width: 782px){
  body.wp-admin .ecrm-dashboard-wrap{
    margin-left:-10px;
    padding:16px;
  }
  body.wp-admin .ecrm-dashboard-wrap h1{
    font-size:32px;
  }
  body.wp-admin .ecrm-panel,
  body.wp-admin .ecrm-kpi-card,
  body.wp-admin .ecrm-dashboard-hero{
    padding:20px;
    border-radius:20px;
  }
  body.wp-admin .ecrm-kpi-grid,
  body.wp-admin .ecrm-scenario-grid{
    grid-template-columns:1fr;
  }
  body.wp-admin .ecrm-panel__head,
  body.wp-admin .ecrm-progress-card__stats,
  body.wp-admin .ecrm-forecast-current-row{
    flex-direction:column;
    align-items:flex-start;
  }
  body.wp-admin .ecrm-segment__button{
    width:100%;
    justify-content:flex-start;
  }
  body.wp-admin .ecrm-mini-bars{
    min-height:132px;
    gap:6px;
  }
  .em-ref-partner-teaser{
    margin-top:18px;
    padding:14px 16px;
  }
}


/* v1.3.7 — mobile-only start card info icon alignment */
@media (max-width: 768px) {
  .em-ref-step[data-step="start"] .em-ref-card {
    position: relative;
  }

  .em-ref-step[data-step="start"] .em-ref-step-header {
    position: relative;
    display: block;
    padding-right: 56px;
    margin-bottom: 10px;
  }

  .em-ref-step[data-step="start"] .em-ref-step-header h2 {
    display: block;
    margin: 0 !important;
  }

  .em-ref-step[data-step="start"] .em-ref-step-header .em-ref-info-icon {
    position: absolute;
    top: 2px;
    right: 0;
    margin: 0;
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .em-ref-step[data-step="start"] [data-start-copy] {
    margin-top: 0;
  }
}


/* v1.3.8 — standalone /start spacing + darker desktop fields + softer corners */
body.em-ref-standalone .site,
body.em-ref-standalone .site-content,
body.em-ref-standalone .content-area,
body.em-ref-standalone .entry-content,
body.em-ref-standalone .ast-container,
body.em-ref-standalone .wp-site-blocks{
  background:transparent !important;
}
body.em-ref-standalone .em-ref-onboarding{
  width:min(1120px, calc(100vw - 48px));
  margin:0 auto;
  padding:24px 0 56px;
}
body.em-ref-standalone .em-ref-card{
  background:linear-gradient(180deg, rgba(8,16,34,.96), rgba(6,12,28,.97));
  box-shadow:0 18px 44px rgba(2,6,23,.24);
}
body.em-ref-standalone .em-ref-grid input,
body.em-ref-standalone .em-ref-grid select,
body.em-ref-standalone .em-ref-grid textarea,
body.em-ref-standalone .form-grid input,
body.em-ref-standalone .form-grid select,
body.em-ref-standalone .form-grid textarea,
body.em-ref-standalone input[type="date"]{
  background:linear-gradient(180deg, rgba(11,20,39,.96), rgba(7,13,28,.94)) !important;
  color:#eef6ff !important;
  border:1px solid rgba(120,191,255,.16) !important;
  border-radius:20px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
body.em-ref-standalone .em-ref-toggle-group{
  border-radius:18px;
  background:rgba(5,9,20,.72);
}
body.em-ref-standalone .em-ref-toggle-option{
  min-height:58px;
}
body.em-ref-standalone .em-ref-grid input::placeholder,
body.em-ref-standalone .em-ref-grid textarea::placeholder,
body.em-ref-standalone .form-grid input::placeholder,
body.em-ref-standalone .form-grid textarea::placeholder{
  color:rgba(232,238,252,.44) !important;
}
body.em-ref-standalone .em-ref-grid input:focus,
body.em-ref-standalone .em-ref-grid select:focus,
body.em-ref-standalone .em-ref-grid textarea:focus,
body.em-ref-standalone .form-grid input:focus,
body.em-ref-standalone .form-grid select:focus,
body.em-ref-standalone .form-grid textarea:focus,
body.em-ref-standalone input[type="date"]:focus{
  outline:none;
  border-color:rgba(126,228,255,.42) !important;
  box-shadow:0 0 0 3px rgba(78,217,255,.10), inset 0 1px 0 rgba(255,255,255,.04);
}
body.em-ref-standalone .em-ref-grid input:-webkit-autofill,
body.em-ref-standalone .em-ref-grid select:-webkit-autofill,
body.em-ref-standalone .em-ref-grid textarea:-webkit-autofill,
body.em-ref-standalone .form-grid input:-webkit-autofill,
body.em-ref-standalone .form-grid select:-webkit-autofill,
body.em-ref-standalone .form-grid textarea:-webkit-autofill,
body.em-ref-standalone input[type="date"]:-webkit-autofill{
  -webkit-text-fill-color:#eef6ff !important;
  -webkit-box-shadow:0 0 0 1000px rgba(9,16,32,.98) inset !important;
  transition:background-color 9999s ease-in-out 0s;
  border-radius:20px !important;
}
@media (max-width: 900px){
  body.em-ref-standalone .em-ref-onboarding{
    width:min(100vw - 28px, 100%);
    padding:12px 0 40px;
  }
}


/* v1.3.9 — upload label color fix */
.em-ref-upload-title h4,
.em-ref-file-field > span,
.em-ref-file-field label > span,
.em-ref-upload-card .em-ref-file-field > span,
.em-ref-upload-card .em-ref-file-field label > span,
.em-ref-signature-upload label > span,
.em-ref-signature-upload .em-ref-file-field > span{
  color:#ffffff !important;
}


/* v1.4.2 dashboard period labels + logic update */
.em-ref-actions{
  width:100%;
  justify-content:space-between;
}
.em-ref-actions > .em-ref-link:first-child{
  margin-right:auto;
}
.em-ref-actions > .em-ref-button:last-child,
.em-ref-actions > .em-ref-download-link:last-child,
.em-ref-actions > [data-submit-flow],
.em-ref-actions > [data-next-step],
.em-ref-actions > [data-next-from-data]{
  margin-left:auto;
}
.em-ref-actions > .em-ref-link + .em-ref-button,
.em-ref-actions > .em-ref-link + .em-ref-download-link{
  margin-left:auto;
}
.em-ref-button,
.em-ref-button:visited,
.em-ref-button:hover,
.em-ref-button:focus,
.em-ref-button:active,
.em-ref-onboarding a.em-ref-button:hover,
.em-ref-onboarding button.em-ref-button:hover{
  background:linear-gradient(135deg, #66e6ff 0%, #d84bff 100%) !important;
  color:#07111f !important;
  box-shadow:0 14px 30px rgba(78,217,255,.18), 0 14px 34px rgba(216,75,255,.16) !important;
  transform:translateY(-1px);
}
.em-ref-button--secondary,
.em-ref-button--secondary:hover,
.em-ref-button--secondary:focus,
.em-ref-button--secondary:active{
  background:linear-gradient(135deg, rgba(78,217,255,.18), rgba(216,75,255,.14)) !important;
  color:#eef6ff !important;
  border:1px solid rgba(120,191,255,.22) !important;
}
.option-card,
.option-card:hover,
.option-card:focus,
.option-card:active,
.option-card.is-active{
  color:#ffffff !important;
}
.option-card:hover,
.option-card:focus-visible{
  background:linear-gradient(135deg, rgba(78,217,255,.16), rgba(216,75,255,.16)) !important;
  border-color:rgba(120,191,255,.30) !important;
  box-shadow:0 20px 44px rgba(4,11,24,.24) !important;
  transform:translateY(-1px);
}
.em-ref-button,
.option-card,
.em-ref-link{
  transition:background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
@media (max-width: 900px){
  .em-ref-actions{
    align-items:center;
  }
  .em-ref-actions > .em-ref-link:first-child{
    margin-right:auto;
  }
  .em-ref-actions > .em-ref-button:last-child,
  .em-ref-actions > .em-ref-download-link:last-child,
  .em-ref-actions > [data-submit-flow],
  .em-ref-actions > [data-next-step],
  .em-ref-actions > [data-next-from-data]{
    margin-left:auto;
  }
}

/* ══════════════════════════════════════════════
   v1.6.0 – Neue Komponenten
   ══════════════════════════════════════════════ */

/* ── Field Groups ── */
.em-ref-field-group { margin-bottom: 20px; }
.em-ref-field-group__title {
  font-size: 15px; font-weight: 700; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85); letter-spacing: .3px;
}

/* ── Auto-Fill Card (Bank etc.) ── */
.em-ref-auto-card {
  margin-top: 12px; padding: 16px; border-radius: 12px;
  background: rgba(56,161,105,.06); border: 1px solid rgba(56,161,105,.2);
}
.em-ref-auto-card__header {
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
  color: rgba(56,161,105,.9);
}
.em-ref-auto-card__hint {
  display: block; margin-top: 8px; font-size: 12px;
  color: rgba(255,255,255,.45); font-style: italic;
}
.em-ref-auto-card input {
  background: rgba(255,255,255,.04); border-color: rgba(56,161,105,.15);
}

/* ── Error Box ── */
.em-ref-error-box {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(229,62,62,.08); border: 1px solid rgba(229,62,62,.3);
  color: #fc8181; font-weight: 600; font-size: 14px;
  animation: em-ref-shake .4s ease;
}
.em-ref-error-box__icon { font-size: 20px; flex-shrink: 0; }
@keyframes em-ref-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── Ref-Code Live Preview ── */
.em-ref-link-preview {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(99,102,241,.06); border: 1px dashed rgba(99,102,241,.25);
  font-size: 13px; color: rgba(255,255,255,.6);
}
.em-ref-link-preview code {
  font-weight: 700; color: rgba(129,140,248,.9);
  background: none; font-size: 14px;
}

/* ── Accordion (Dokumente) ── */
.em-ref-accordion { margin: 16px 0; }
.em-ref-accordion__trigger {
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8); transition: background .2s;
  list-style: none;
}
.em-ref-accordion__trigger::-webkit-details-marker { display: none; }
.em-ref-accordion__trigger:hover { background: rgba(255,255,255,.06); }
.em-ref-accordion__arrow { margin-left: auto; transition: transform .2s; }
.em-ref-accordion[open] .em-ref-accordion__arrow { transform: rotate(90deg); }

/* ── Progress Hint ── */
.em-ref-progress-hint {
  display: inline-block; margin-left: 12px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.05); padding: 2px 10px; border-radius: 20px;
}

/* ── v1.6.0 Fixes ── */

/* Fix #1: Überschriften explizit weiß */
.em-ref-field-group__title,
.em-ref-field-group__title summary,
.em-ref-onboarding .em-ref-field-group__title {
  color: #fff !important;
}

/* Fix #3: Collapsible field groups */
.em-ref-field-group--collapsible {
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 0; margin-bottom: 16px; overflow: hidden;
}
.em-ref-field-group--collapsible > summary {
  cursor: pointer; padding: 16px 20px; margin: 0;
  font-size: 15px; font-weight: 700; color: #fff !important;
  background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06);
  list-style: none; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.em-ref-field-group--collapsible > summary::-webkit-details-marker { display: none; }
.em-ref-field-group--collapsible > summary::after {
  content: '▸'; margin-left: auto; font-size: 12px; transition: transform .2s;
  color: rgba(255,255,255,.4);
}
.em-ref-field-group--collapsible[open] > summary::after { transform: rotate(90deg); }
.em-ref-field-group--collapsible[open] > summary { background: rgba(255,255,255,.05); }
.em-ref-field-group--collapsible > .form-grid,
.em-ref-field-group--collapsible > .em-ref-grid {
  padding: 16px 20px;
}

/* Fix #8: Signature toggle row */
.em-ref-field-group__row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.em-ref-field-group__row .em-ref-toggle-group--small {
  margin-left: auto;
}

/* Fix: Alle Überschriften im Onboarding explizit weiß */
.em-ref-onboarding h4,
.em-ref-onboarding .em-ref-field-group__title,
.em-ref-onboarding .em-ref-field-group--collapsible > summary,
.em-ref-onboarding .em-ref-upload-title h4,
.em-ref-onboarding .em-ref-auto-card__header {
  color: #fff !important;
}
.em-ref-onboarding .em-ref-field-group__row {
  color: #fff;
}

/* Collapsible: form-grid Padding innerhalb details */
.em-ref-field-group--collapsible .form-grid {
  padding: 16px 20px;
}

/* Dokumente-Akkordeon: auffälliger */
.em-ref-accordion__trigger {
  background: rgba(99,102,241,.08) !important;
  border: 2px solid rgba(99,102,241,.3) !important;
  color: #a5b4fc !important;
  font-size: 16px !important;
  padding: 16px 22px !important;
}
.em-ref-accordion__trigger:hover {
  background: rgba(99,102,241,.15) !important;
  border-color: rgba(99,102,241,.5) !important;
}
.em-ref-accordion__arrow {
  font-size: 14px;
}
