/* Light grey button with lightning icon */
.hcf-wrap{ margin:1rem 0; }
.hcf-open.hcf-light{ width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  background:#f3f4f6 !important; color:#111 !important; border:1px solid #e5e7eb !important;
  padding:12px 16px; border-radius:12px; font-size:16px; cursor:pointer; text-align:center; }
.hcf-open.hcf-light .hcf-ico{ display:inline-block; flex:0 0 auto; }
.hcf-open.hcf-light:hover{ background:#eef0f2 !important; }
.hcf-open.hcf-light:focus{ outline:2px solid #111; outline-offset:2px; }

/* Centered modal */
.hcf-lock{ overflow:hidden; }
.hcf-modal[aria-hidden="true"]{ display:none; }
.hcf-modal{ position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; }
.hcf-modal .hcf-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.hcf-dialog{ position:relative; z-index:1; width:min(760px, 94vw); max-height:90vh; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 14px 44px rgba(0,0,0,.35); }

.hcf-close{ position:absolute; top:8px; right:10px; border:none; background:transparent; font-size:28px; line-height:1; cursor:pointer; }

.hcf-progress{ height:10px; background:#f0f2f5; border-radius:30px; margin:18px; overflow:hidden; }
.hcf-progress__bar{ height:100%; width:0%; background:#253645 !important; transition:width .25s ease; }

.hcf-root{ padding:20px 18px 22px; overflow:auto; max-height: calc(90vh - 60px); }

/* Card centered, no badge numbering */
.hcf-card{ position:relative; perspective:1200px; margin:6px auto 4px; max-width:640px; }
.hcf-card-inner{ position:relative; width:100%; min-height:220px; transform-style:preserve-3d; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.hcf-card.is-flipped .hcf-card-inner{ transform:rotateY(180deg); }

.hcf-card-face{ position:absolute; inset:0; backface-visibility:hidden; border:1px solid #e6e6e6; border-radius:16px; padding:22px; }
.hcf-card-front{ background:#253645; color:#fff; display:flex; align-items:center; justify-content:center; text-align:center; }
.hcf-front-content{ font-size:20px; font-weight:700; line-height:1.6; }
.hcf-card-back{ background:#fff; transform:rotateY(180deg); display:flex; flex-direction:column; justify-content:center; }
.hcf-answer{ font-weight:700; font-size:20px; margin-bottom:10px; text-align:center; }
.hcf-question-small{ color:#666; font-size:14px; text-align:center; }

.hcf-actions{ display:flex; gap:10px; margin-top:14px; justify-content:center; }
.hcf-btn{ border:1px solid #d0d7de !important; background:#fafbfc !important; color:#111 !important; padding:10px 14px; border-radius:12px; cursor:pointer; }
.hcf-btn-primary{ border:none !important; background:#253645 !important; color:#fff !important; }
.hcf-btn-ok{ border:none !important; background:#22c55e !important; color:#fff !important; }

/* Summary scrollable */
.hcf-summary h2{ margin:10px 0 12px; font-size:20px; text-align:center; }
.hcf-summary-list{ max-height:55vh; overflow:auto; display:flex; flex-direction:column; gap:12px; padding-right:6px; }
.hcf-summary-item{ border:1px solid #e6e6e6; border-radius:12px; padding:12px; }
.hcf-summary-q{ font-weight:600; margin-bottom:6px; }
.hcf-chip{ display:inline-block; border-radius:999px; padding:4px 8px; background:#e5e7eb; font-size:12px; }
.hcf-chip-ok{ background:#22c55e; color:#fff; }
/* Old visual editor-like grid */
.hcf-admin-toolbar{ margin-bottom:10px; display:flex; gap:8px; }
.hcf-admin-grid{ display:flex; flex-direction:column; gap:12px; }
.hcf-row{ border:1px solid #e3e3e3; border-radius:10px; background:#fff; padding:12px; }
.hcf-col{ display:flex; flex-direction:column; gap:6px; }
@media (min-width: 900px){
  .hcf-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:start; }
  .hcf-row-actions{ grid-column: 1 / -1; justify-content:flex-end; }
}
.hcf-label{ font-weight:600; color:#333; }
.hcf-field{ width:100%; min-height:100px; }
.hcf-row-actions{ margin-top:8px; display:flex; gap:8px; justify-content:flex-end; }
.hcf-del{ background:#ef4444; color:#fff; border:none; }
