:root{--acc:#f04400;--acc-dim:rgba(240,68,0,.1);--acc-glow:rgba(240,68,0,.2)}

.crop-guide-hidden { opacity: 0 !important; pointer-events: none !important; }
.crop-badge { display: none !important; }
/* ═══════════════════════════════════════════════════════════
   RESET + SHARED
═══════════════════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,textarea,select{font-family:inherit}
img{display:block;max-width:100%}

@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes toastIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
/* ── Verification card overlay — ID card style, Option B ── */
.verify-overlay{
  position:fixed;inset:0;z-index:8000;
  display:flex;align-items:flex-end;justify-content:center;
  background:rgba(0,0,0,.5);backdrop-filter:blur(5px);
  animation:fadeIn .18s ease;
}
@media(min-width:560px){.verify-overlay{align-items:center}}
@keyframes slideUp{from{transform:translateY(70px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes fadeOut{from{opacity:1}to{opacity:0}}

/* Card shell */
.verify-card{
  width:100%;max-width:400px;
  background:#fff;
  border-radius:24px 24px 0 0;
  box-shadow:0 -12px 60px rgba(0,0,0,.22);
  animation:slideUp .24s cubic-bezier(.22,1,.36,1);
  display:flex;flex-direction:column;
  max-height:88vh;
  overflow:hidden;
}
@media(min-width:560px){
  .verify-card{border-radius:24px;box-shadow:0 32px 80px rgba(0,0,0,.25);animation:scaleIn .2s ease}
}

/* Sticky header band */
.vc-band{
  background:linear-gradient(135deg,#1e40af 0%,#2563eb 60%,#3b82f6 100%);
  padding:16px 18px 14px;
  display:flex;align-items:center;justify-content:space-between;
  flex-shrink:0;position:relative;overflow:hidden;
}
.vc-band::after{
  content:'';position:absolute;right:-24px;top:-24px;
  width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.06);
}
.vc-band-title{font-size:.72em;font-weight:800;color:#fff;letter-spacing:.7px;text-transform:uppercase}
.vc-band-sub{font-size:.62em;color:rgba(255,255,255,.65);margin-top:2px}
.vc-band-logo{
  width:36px;height:36px;border-radius:9px;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;font-size:1.1em;flex-shrink:0;
}

/* Scrollable body */
.vc-scroll{
  flex:1;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:#e2e8f0 transparent;
}
.vc-scroll::-webkit-scrollbar{width:3px}
.vc-scroll::-webkit-scrollbar-track{background:transparent}
.vc-scroll::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}

/* Hero: photo + name */
.vc-hero{display:flex;gap:14px;padding:16px 16px 0;align-items:flex-start}
.vc-photo{
  width:70px;height:88px;border-radius:10px;
  background:linear-gradient(145deg,#e8ecf4,#f4f5f8);
  border:2px solid #e5e7eb;flex-shrink:0;overflow:hidden;
  display:flex;align-items:center;justify-content:center;font-size:2em;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.vc-photo img{width:100%;height:100%;object-fit:cover}
.vc-name-block{flex:1;padding-top:4px}
.vc-name{font-size:1em;font-weight:800;color:#0f172a;line-height:1.25;letter-spacing:-.2px}

/* Divider */
.vc-divider{height:1px;background:linear-gradient(90deg,transparent,#e5e7eb 15%,#e5e7eb 85%,transparent);margin:14px 16px}

/* 2-col detail grid */
.vc-grid{padding:0 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vc-cell{display:flex;flex-direction:column;gap:2px}
.vc-cell.full{grid-column:1/-1}
.vc-not-filled-note{margin:8px 16px 0;display:flex;align-items:flex-start;gap:6px;font-size:.74em;font-weight:600;color:#b91c1c;background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.22);border-radius:8px;padding:7px 10px;line-height:1.4}
.vc-not-filled-note svg{flex-shrink:0;margin-top:1px}
.vc-not-filled-note b{font-weight:700}
.vc-lbl{font-size:.58em;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#94a3b8}
.vc-val{font-size:.82em;font-weight:700;color:#0f172a;line-height:1.3;word-break:break-word}
.vc-val.empty{color:#d1d5db;font-style:italic;font-weight:400;font-size:.76em}

/* Reminder strip inside scroll — nudges the user to double-check before submitting */
.vc-remind{
  margin:14px 16px 4px;padding:11px 13px;
  background:#eff6ff;border-radius:10px;border:1px solid #bfdbfe;
  display:flex;gap:9px;align-items:flex-start;flex-shrink:0;
}
.vc-remind-icon{flex-shrink:0;color:#2563eb;margin-top:1px}
.vc-remind-text{flex:1;display:flex;flex-direction:column;gap:3px}
.vc-remind-en{font-size:.78em;font-weight:700;color:#1e3a8a;line-height:1.35}
.vc-remind-ml{font-size:.74em;font-weight:600;color:#1e40af;line-height:1.45}
.vc-remind-hint{font-size:.65em;font-weight:600;color:#3b82f6;margin-top:3px;line-height:1.4}

/* Sticky footer buttons */
.vc-actions{
  display:flex;gap:8px;padding:12px 16px 16px;
  border-top:1px solid #f0f2f6;flex-shrink:0;background:#fff;
}
.vc-btn-edit{
  flex:1;padding:12px 0;border-radius:10px;font-size:.82em;font-weight:700;
  background:#f1f5f9;color:#475569;border:1.5px solid #e2e8f0;cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif;
  display:flex;align-items:center;justify-content:center;gap:5px;transition:background .15s;
}
.vc-btn-edit:hover{background:#e2e8f0}
.vc-btn-submit{
  flex:2;padding:12px 0;border-radius:10px;font-size:.82em;font-weight:700;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;border:none;cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif;
  display:flex;align-items:center;justify-content:center;gap:6px;
  box-shadow:0 4px 14px rgba(37,99,235,.32);transition:opacity .15s;
}
.vc-btn-submit:hover{opacity:.9}
.vc-btn-submit:disabled{opacity:.55;cursor:not-allowed}

/* ── Dark theme ── */
.form-page[data-theme="dark"] .verify-card{background:#0f1623;box-shadow:0 -12px 60px rgba(0,0,0,.55)}
.form-page[data-theme="dark"] .vc-actions{background:#0f1623;border-top-color:rgba(255,255,255,.07)}
.form-page[data-theme="dark"] .vc-photo{background:linear-gradient(145deg,#1e2535,#252d3d);border-color:rgba(255,255,255,.1)}
.form-page[data-theme="dark"] .vc-name{color:#e2e8f0}
.form-page[data-theme="dark"] .vc-divider{background:linear-gradient(90deg,transparent,rgba(255,255,255,.08) 15%,rgba(255,255,255,.08) 85%,transparent)}
.form-page[data-theme="dark"] .vc-lbl{color:#374151}
.form-page[data-theme="dark"] .vc-val{color:#e2e8f0}
.form-page[data-theme="dark"] .vc-val.empty{color:#1e2535}
.form-page[data-theme="dark"] .vc-remind{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.28)}
.form-page[data-theme="dark"] .vc-remind-icon{color:#60a5fa}
.form-page[data-theme="dark"] .vc-remind-en{color:#bfdbfe}
.form-page[data-theme="dark"] .vc-remind-ml{color:#93c5fd}
.form-page[data-theme="dark"] .vc-remind-hint{color:#60a5fa}
.form-page[data-theme="dark"] .vc-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.08)}
.form-page[data-theme="dark"] .vc-btn-edit{background:#161b27;color:#64748b;border-color:rgba(255,255,255,.08)}
.form-page[data-theme="dark"] .vc-btn-edit:hover{background:#1e2535}

@keyframes shimmerSkel{0%{background-position:-400px 0}100%{background-position:400px 0}}
.skel{
  background:linear-gradient(90deg,#e2e5ec 25%,#eef0f4 50%,#e2e5ec 75%);
  background-size:800px 100%;
  animation:shimmerSkel 1.4s infinite linear;
  border-radius:6px;
}
/* Admin dark mode skeleton */
.admin-wrap .skel{
  background:linear-gradient(90deg,#1a1f2e 25%,#252b3d 50%,#1a1f2e 75%);
  background-size:800px 100%;
  animation:shimmerSkel 1.4s infinite linear;
}
/* Public form — dark mode skeleton */
.form-page[data-theme="dark"] .skel{
  background:linear-gradient(90deg,#1e2230 25%,#252a3a 50%,#1e2230 75%);
  background-size:800px 100%;
  animation:shimmerSkel 1.4s infinite linear;
}
/* Skeleton card wrappers respond to theme */
.form-page[data-theme="dark"] .skel-card-wrap{
  background:#1e2230 !important;border-color:rgba(255,255,255,.07) !important;
}
.form-page[data-theme="light"] .skel-card-wrap{
  background:#f8fafc !important;border-color:#e8eaee !important;
}
@keyframes scaleIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════════════════ */
.theme-toggle-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 12px;border-radius:8px;
  font-size:.78em;font-weight:600;cursor:pointer;border:none;
  transition:all .2s ease;
}
/* Admin light theme */
.admin-wrap[data-theme="light"]{background:#f0f2f8;color:#1a1d2e}
.admin-wrap[data-theme="light"] .a-sidebar{background:#fff;border-right:1px solid #e5e7eb}
.admin-wrap[data-theme="light"] .a-brand{border-bottom-color:#e5e7eb}
.admin-wrap[data-theme="light"] .a-sidebar-foot{color:#9ca3af !important;border-top-color:#e5e7eb}
.admin-wrap[data-theme="light"] .a-brand-name{color:#1a1d2e !important}
.admin-wrap[data-theme="light"] .a-brand-logo{color:#00b898 !important}
.admin-wrap[data-theme="light"] .a-brand-logo svg rect,.admin-wrap[data-theme="light"] .a-brand-logo svg circle{stroke:#00b898;fill-opacity:.1}
.admin-wrap[data-theme="light"] .a-nav-item{color:#6b7280}
.admin-wrap[data-theme="light"] .a-nav-item:hover{color:#1a1d2e;background:rgba(0,0,0,.04)}
.admin-wrap[data-theme="light"] .a-nav-item.active{color:#00c4a0;background:rgba(0,196,160,.1)}
.admin-wrap[data-theme="light"] .a-sidebar-foot{color:#6b7280;border-top:1px solid #e5e7eb}
.admin-wrap[data-theme="light"] .mobile-topbar{background:#fff;border-bottom:1px solid #e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .topbar-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .mobile-menu-btn{background:#f3f4f6;color:#374151}
.admin-wrap[data-theme="light"] .a-page-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .a-page-title span{color:#00b898}
.admin-wrap[data-theme="light"] .a-page-sub{color:#6b7280}
.admin-wrap[data-theme="light"] .breadcrumb{color:#9ca3af}
.admin-wrap[data-theme="light"] .breadcrumb a{color:#6b7280}
.admin-wrap[data-theme="light"] .breadcrumb-sep{color:#d1d5db}
.admin-wrap[data-theme="light"] .a-card,.admin-wrap[data-theme="light"] .dash-form-card{background:#fff;border-color:#e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .a-input,.admin-wrap[data-theme="light"] .a-select,.admin-wrap[data-theme="light"] .a-search{background:#fff;border-color:#d1d5db;color:#1a1d2e}
.admin-wrap[data-theme="light"] .a-input::placeholder,.admin-wrap[data-theme="light"] .a-search::placeholder{color:#9ca3af}
.admin-wrap[data-theme="light"] .a-textarea{background:#fff;border-color:#d1d5db;color:#1a1d2e}
.admin-wrap[data-theme="light"] .a-label{color:#374151}
.admin-wrap[data-theme="light"] .a-hint{color:#6b7280}
.admin-wrap[data-theme="light"] .a-toggle-label{color:#374151}
.admin-wrap[data-theme="light"] .field-item{background:#fff;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .field-item-header{background:#fff}
.admin-wrap[data-theme="light"] .field-title-input{background:#fff;border-color:#d1d5db;color:#1a1d2e}
.admin-wrap[data-theme="light"] .field-title-input::placeholder{color:#9ca3af}
.admin-wrap[data-theme="light"] .field-type-select{background:#fff;border-color:#d1d5db;color:#374151}
.admin-wrap[data-theme="light"] .field-drag{color:#9ca3af}
.admin-wrap[data-theme="light"] .field-move-btn{background:#f3f4f6;color:#6b7280}
.admin-wrap[data-theme="light"] .field-del-btn{color:#ef4444}
.admin-wrap[data-theme="light"] .field-expand-btn{background:#f3f4f6;color:#6b7280}
.admin-wrap[data-theme="light"] .btn-ghost-a{background:#f3f4f6;color:#374151;border-color:#d1d5db}
.admin-wrap[data-theme="light"] .btn-ghost-a:hover{background:#e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .btn-danger-a{background:#fff1f2;color:#dc2626;border-color:#fca5a5}
.admin-wrap[data-theme="light"] .form-card-logo{background:rgba(0,196,160,.1);border-color:rgba(0,196,160,.3)}
.admin-wrap[data-theme="light"] .dash-form-card{background:#fff;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .dash-form-card:hover{border-color:#00c4a0}
.admin-wrap[data-theme="light"] .form-card-title,.admin-wrap[data-theme="light"] .dash-form-card .form-card-title{color:#111827 !important}
.admin-wrap[data-theme="light"] .form-card-slug,.admin-wrap[data-theme="light"] .dash-form-card .form-card-slug{color:#6b7280 !important}
.admin-wrap[data-theme="light"] .form-card-meta,.admin-wrap[data-theme="light"] .dash-form-card .form-card-meta{color:#6b7280 !important;border-top-color:#e5e7eb !important}
.admin-wrap[data-theme="light"] .form-card-top .form-card-logo{background:rgba(0,180,152,.12);border-color:rgba(0,180,152,.25)}
.admin-wrap[data-theme="light"] .sub-card{background:#1a1f2e;border-color:#30363d}
.admin-wrap[data-theme="light"] .sub-card:hover{border-color:#f04400;background:#1e2438}
.admin-wrap[data-theme="light"] .sub-card-no-photo{background:#252b3d;color:#4a5370}
.admin-wrap[data-theme="light"] .sub-field-label{color:#fff}
.admin-wrap[data-theme="light"] .sub-field-val{color:#f0f6fc}
.admin-wrap[data-theme="light"] .sub-btn-edit{background:#1e3a5f;color:#60a5fa;border-color:#1e4080}
.admin-wrap[data-theme="light"] .sub-btn-edit:hover{background:#1e4a7a}
.admin-wrap[data-theme="light"] .sub-btn-del{background:#3b1219;color:#f87171;border-color:#5b1a22}
.admin-wrap[data-theme="light"] .sub-btn-del:hover{background:#4a1520}
.admin-wrap[data-theme="light"] .dup-badge{background:rgba(220,38,38,.15);color:#f87171}
.admin-wrap[data-theme="light"] .search-bar-row .a-search{background:#fff}
.admin-wrap[data-theme="light"] .stat-box{background:#fff;border-color:#e8eaee}
.admin-wrap[data-theme="light"] .stat-num{color:#111827}
.admin-wrap[data-theme="light"] .stat-label{color:#6b7280}
.admin-wrap[data-theme="light"] .dash-form-card{background:#fff;border-color:#e8eaee}
.admin-wrap[data-theme="light"] .dash-form-card:hover{border-color:#00c4a0}
.admin-wrap[data-theme="light"] .form-card-title{color:#111827}
.admin-wrap[data-theme="light"] .form-card-meta{color:#6b7280;border-top-color:#f3f4f6}
.admin-wrap[data-theme="light"] .resp-toolbar{background:#f9fafb;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .preset-card{background:#fff;border-color:#e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .preset-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .preset-meta{color:#6b7280}
.admin-wrap[data-theme="light"] .preset-modal-card{background:#fff;border-color:#e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .preset-modal-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .preset-modal-label{color:#374151}
.admin-wrap[data-theme="light"] .preset-modal-hint{color:#6b7280}
.admin-wrap[data-theme="light"] .resp-toolbar-search input{background:#fff;border-color:#d1d5db;color:#1a1d2e}
.admin-wrap[data-theme="light"] .login-box{background:#fff;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .login-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .login-sub{color:#6b7280}
.admin-wrap[data-theme="light"] .login-logo{color:#00b898}
.admin-wrap[data-theme="light"] .theme-toggle-btn{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}
.admin-wrap[data-theme="dark"] .theme-toggle-btn{background:rgba(255,255,255,.07);color:#8891a8;border:1px solid rgba(255,255,255,.1)}
/* Admin dark theme */
.admin-wrap[data-theme="dark"]{background:#0d1117;color:#e6edf3}
.admin-wrap[data-theme="dark"] .a-sidebar{background:#161b22;border-right:1px solid #30363d}
.admin-wrap[data-theme="dark"] .a-brand{border-bottom-color:#30363d}
.admin-wrap[data-theme="dark"] .a-sidebar-foot{color:#8b949e !important;border-top-color:#30363d}
.admin-wrap[data-theme="dark"] .a-brand-name{color:#f0f6fc !important}
.admin-wrap[data-theme="dark"] .a-brand-logo{color:#f04400 !important}
.admin-wrap[data-theme="dark"] .a-brand-logo svg rect,.admin-wrap[data-theme="dark"] .a-brand-logo svg circle{stroke:#f04400;fill-opacity:.1}
.admin-wrap[data-theme="dark"] .a-nav-item{color:#8b949e}
.admin-wrap[data-theme="dark"] .a-nav-item:hover{color:#f0f6fc;background:rgba(255,255,255,.04)}
.admin-wrap[data-theme="dark"] .a-nav-item.active{color:#f04400;background:rgba(240,68,0,.1)}
.admin-wrap[data-theme="dark"] .a-sidebar-foot{color:#8b949e;border-top:1px solid #30363d}
.admin-wrap[data-theme="dark"] .mobile-topbar{background:#161b22;border-bottom:1px solid #30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .topbar-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .mobile-menu-btn{background:#21262d;color:#c9d1d9}
.admin-wrap[data-theme="dark"] .a-page-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .a-page-title span{color:#f04400}
.admin-wrap[data-theme="dark"] .a-page-sub{color:#8b949e}
.admin-wrap[data-theme="dark"] .breadcrumb{color:#8b949e}
.admin-wrap[data-theme="dark"] .breadcrumb a{color:#8b949e}
.admin-wrap[data-theme="dark"] .breadcrumb-sep{color:#30363d}
.admin-wrap[data-theme="dark"] .a-card,.admin-wrap[data-theme="dark"] .dash-form-card{background:#161b22;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .a-input,.admin-wrap[data-theme="dark"] .a-select,.admin-wrap[data-theme="dark"] .a-search{background:#0d1117;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .a-input::placeholder,.admin-wrap[data-theme="dark"] .a-search::placeholder{color:#8b949e}
.admin-wrap[data-theme="dark"] .a-textarea{background:#0d1117;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .a-label{color:#c9d1d9}
.admin-wrap[data-theme="dark"] .a-hint{color:#8b949e}
.admin-wrap[data-theme="dark"] .a-toggle-label{color:#c9d1d9}
.admin-wrap[data-theme="dark"] .field-item{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .field-item-header{background:#161b22}
.admin-wrap[data-theme="dark"] .field-title-input{background:#0d1117;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .field-title-input::placeholder{color:#8b949e}
.admin-wrap[data-theme="dark"] .field-type-select{background:#0d1117;border-color:#30363d;color:#c9d1d9}
.admin-wrap[data-theme="dark"] .field-drag{color:#8b949e}
.admin-wrap[data-theme="dark"] .field-move-btn{background:#21262d;color:#8b949e}
.admin-wrap[data-theme="dark"] .field-del-btn{color:#f85149}
.admin-wrap[data-theme="dark"] .field-expand-btn{background:#21262d;color:#8b949e}
.admin-wrap[data-theme="dark"] .btn-ghost-a{background:#21262d;color:#c9d1d9;border-color:#30363d}
.admin-wrap[data-theme="dark"] .btn-ghost-a:hover{background:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .btn-danger-a{background:#3a141a;color:#f85149;border-color:#5a1a22}
.admin-wrap[data-theme="dark"] .form-card-logo{background:rgba(240,68,0,.1);border-color:rgba(240,68,0,.3)}
.admin-wrap[data-theme="dark"] .dash-form-card{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .dash-form-card:hover{border-color:#f04400}
.admin-wrap[data-theme="dark"] .form-card-title,.admin-wrap[data-theme="dark"] .dash-form-card .form-card-title{color:#f0f6fc !important}
.admin-wrap[data-theme="dark"] .form-card-slug,.admin-wrap[data-theme="dark"] .dash-form-card .form-card-slug{color:#8b949e !important}
.admin-wrap[data-theme="dark"] .form-card-meta,.admin-wrap[data-theme="dark"] .dash-form-card .form-card-meta{color:#8b949e !important;border-top-color:#30363d !important}
.admin-wrap[data-theme="dark"] .form-card-top .form-card-logo{background:rgba(240,68,0,.12);border-color:rgba(240,68,0,.25)}
.admin-wrap[data-theme="dark"] .preset-card{background:#161b22;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .preset-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .preset-meta{color:#8b949e}
.admin-wrap[data-theme="dark"] .preset-modal-card{background:#161b22;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .preset-modal-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .preset-modal-label{color:#c9d1d9}
.admin-wrap[data-theme="dark"] .preset-modal-hint{color:#8b949e}
.admin-wrap[data-theme="dark"] .sub-card{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .sub-card:hover{border-color:#f04400;background:#1c2128}
.admin-wrap[data-theme="dark"] .sub-card-no-photo{background:#21262d;color:#484f58}
.admin-wrap[data-theme="dark"] .sub-field-label{color:#8b949e}
.admin-wrap[data-theme="dark"] .sub-field-val{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .sub-btn-edit{background:#1e3a5f;color:#60a5fa;border-color:#1e4080}
.admin-wrap[data-theme="dark"] .sub-btn-edit:hover{background:#1e4a7a}
.admin-wrap[data-theme="dark"] .sub-btn-del{background:#3b1219;color:#f87171;border-color:#5b1a22}
.admin-wrap[data-theme="dark"] .sub-btn-del:hover{background:#4a1520}
.admin-wrap[data-theme="dark"] .dup-badge{background:#3a141a;color:#f85149}
.admin-wrap[data-theme="dark"] .search-bar-row .a-search{background:#0d1117}
.admin-wrap[data-theme="dark"] .stat-box{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .stat-num{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .stat-label{color:#8b949e}
.admin-wrap[data-theme="dark"] .dash-form-card{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .dash-form-card:hover{border-color:#f04400}
.admin-wrap[data-theme="dark"] .form-card-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .form-card-meta{color:#8b949e;border-top-color:#30363d}
.admin-wrap[data-theme="dark"] .resp-toolbar{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .resp-toolbar-search input{background:#0d1117;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .login-box{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .login-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .login-sub{color:#8b949e}
.admin-wrap[data-theme="dark"] .login-logo{color:#f04400}
.admin-wrap[data-theme="dark"] .builder-section{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .builder-section-title{color:#c9d1d9;border-bottom-color:#30363d}
.admin-wrap[data-theme="dark"] .rename-field-section{background:#2d2a1e;border-color:#5a4a1a}
.admin-wrap[data-theme="dark"] .rename-field-badge{color:#f0d66a}
.admin-wrap[data-theme="dark"] .add-field-btn{background:#21262d;border-color:#30363d;color:#8b949e}
.admin-wrap[data-theme="dark"] .add-field-btn:hover{border-color:#f04400;color:#f04400;background:#1c2128}
/* Field item — dark */
.admin-wrap[data-theme="dark"] .field-item{background:#161b22;border-color:#30363d;border-left-color:#30363d}
.admin-wrap[data-theme="dark"] .field-item.expanded{background:#1c2128;border-left-color:#f04400;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.admin-wrap[data-theme="dark"] .field-item-header::before{background:#21262d;border-color:#30363d;color:#8b949e}
.admin-wrap[data-theme="dark"] .field-item-header{border-bottom-color:#30363d}
.admin-wrap[data-theme="dark"] .field-item.expanded .field-item-header{border-bottom-color:#30363d}
.admin-wrap[data-theme="dark"] .field-drag{color:#30363d}
.admin-wrap[data-theme="dark"] .field-drag:hover{color:#8b949e}
.admin-wrap[data-theme="dark"] .field-choices-wrap{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .field-move-btn{background:#21262d;color:#8b949e;border-color:#30363d}
.admin-wrap[data-theme="dark"] .field-move-btn:hover{background:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .field-del-btn{background:#3a141a;color:#f85149}
.admin-wrap[data-theme="dark"] .field-expand-btn{background:#21262d;color:#8b949e;border-color:#30363d}
.admin-wrap[data-theme="dark"] .field-expand-btn:hover{background:#30363d;color:#f0f6fc}
/* a-toggle-row — dark */
.admin-wrap[data-theme="dark"] .a-toggle-row{background:rgba(255,255,255,.02);border-color:#30363d}
.admin-wrap[data-theme="dark"] .a-toggle-label{color:#c9d1d9}
/* a-hint — dark */
.admin-wrap[data-theme="dark"] .a-hint{color:#8b949e}
/* fields-list counter bg */
.admin-wrap[data-theme="dark"] .field-item-header::before{background:#21262d;border-color:#30363d;color:#8b949e}
.admin-wrap[data-theme="dark"] .a-page-sub,.admin-wrap[data-theme="dark"] .breadcrumb-sep{color:#8b949e}
.admin-wrap[data-theme="dark"] .stats-card{background:#161b22;border-color:#30363d}
.admin-wrap[data-theme="dark"] .stat-label{color:#8b949e}
.admin-wrap[data-theme="dark"] .stat-val{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .stat-icon{color:#f04400}
.admin-wrap[data-theme="dark"] .modal-box{background:#161b22;border-color:#30363d;color:#f0f6fc}
.admin-wrap[data-theme="dark"] .modal-title{color:#f0f6fc}
.admin-wrap[data-theme="dark"] .toggle-track{background:#30363d}
.admin-wrap[data-theme="dark"] input:checked+.toggle-track{background:#f04400 !important}
.admin-wrap[data-theme="light"] .builder-section{background:#fff;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .builder-section-title{color:#374151;border-bottom-color:#f3f4f6}
.admin-wrap[data-theme="light"] .rename-field-section{background:#fef9ec;border-color:#fde68a}
.admin-wrap[data-theme="light"] .rename-field-badge{color:#92400e}
.admin-wrap[data-theme="light"] .add-field-btn{background:#f9fafb;border-color:#d1d5db;color:#6b7280}
.admin-wrap[data-theme="light"] .add-field-btn:hover{border-color:#00b898;color:#00b898;background:#f0fdf9}
/* Field item — light */
.admin-wrap[data-theme="light"] .field-item{background:#f8fafc;border-color:#e2e8f0;border-left-color:#cbd5e1}
.admin-wrap[data-theme="light"] .field-item.expanded{background:#fff;border-left-color:#00b898;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.admin-wrap[data-theme="light"] .field-item-header::before{background:#f1f5f9;border-color:#e2e8f0;color:#94a3b8}
.admin-wrap[data-theme="light"] .field-item-header{border-bottom-color:#e2e8f0}
.admin-wrap[data-theme="light"] .field-item.expanded .field-item-header{border-bottom-color:#e2e8f0}
.admin-wrap[data-theme="light"] .field-drag{color:#cbd5e1}
.admin-wrap[data-theme="light"] .field-drag:hover{color:#94a3b8}
.admin-wrap[data-theme="light"] .field-choices-wrap{background:#f8fafc;border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .field-move-btn{background:#f1f5f9;color:#6b7280;border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .field-move-btn:hover{background:#e2e8f0;color:#1a1d2e}
.admin-wrap[data-theme="light"] .field-del-btn{background:#fff1f2;color:#ef4444}
.admin-wrap[data-theme="light"] .field-expand-btn{background:#f1f5f9;color:#6b7280;border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .field-expand-btn:hover{background:#e2e8f0;color:#1a1d2e}
/* a-toggle-row — light */
.admin-wrap[data-theme="light"] .a-toggle-row{background:rgba(0,0,0,.02);border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .a-toggle-label{color:#374151}
/* a-hint — light */
.admin-wrap[data-theme="light"] .a-hint{color:#9ca3af}
/* fields-list counter bg */
.admin-wrap[data-theme="light"] .field-item-header::before{background:#fff;border-color:#d1d5db;color:#94a3b8}
.admin-wrap[data-theme="light"] .a-page-sub,.admin-wrap[data-theme="light"] .breadcrumb-sep{color:#9ca3af}
.admin-wrap[data-theme="light"] .stats-card{background:#fff;border-color:#e5e7eb}
.admin-wrap[data-theme="light"] .stat-label{color:#6b7280}
.admin-wrap[data-theme="light"] .stat-val{color:#1a1d2e}
.admin-wrap[data-theme="light"] .stat-icon{color:#00b898}
.admin-wrap[data-theme="light"] .modal-box{background:#fff;border-color:#e5e7eb;color:#1a1d2e}
.admin-wrap[data-theme="light"] .modal-title{color:#1a1d2e}
.admin-wrap[data-theme="light"] .toggle-track{background:#e5e7eb}
.admin-wrap[data-theme="light"] input:checked+.toggle-track{background:#00b898 !important}
/* Public form dark theme */
.form-page[data-theme="dark"]{background:#0d0f14}
.form-page[data-theme="dark"] .form-title{color:#f0f2f8}
.form-page[data-theme="dark"] .form-desc{color:#9ca3af}
.form-page[data-theme="dark"] .form-card{background:#161923;box-shadow:0 4px 24px rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.06)}
.form-page[data-theme="dark"] .form-label{color:#c4c9d8}
.form-page[data-theme="dark"] .form-input{background:#1e2230;border-color:rgba(255,255,255,.1);color:#e8ecf4}
.form-page[data-theme="dark"] .form-input:hover{border-color:rgba(255,255,255,.2)}
.form-page[data-theme="dark"] .form-input::placeholder{color:#4b5268}
.form-page[data-theme="dark"] .form-check-item:hover{background:rgba(255,255,255,.04)}
.form-page[data-theme="dark"] .form-check-item label{color:#c4c9d8}
.form-page[data-theme="dark"] .pub-upload-zone{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.03)}
.form-page[data-theme="dark"] .uz-label{color:#c4c9d8}
.form-page[data-theme="dark"] .pub-entry-card{background:#1e2230;border:1px solid rgba(255,255,255,.07)}
.form-page[data-theme="dark"] .pub-entry-field label{color:#9ca3af}
.form-page[data-theme="dark"] .pub-entry-field div{color:#e8ecf4}
.form-page[data-theme="dark"] .pub-entry-expanded{border-top-color:rgba(255,255,255,.06)}
.form-page[data-theme="dark"] .pec-row{background:#1e2230;border-color:rgba(255,255,255,.08)}
.form-page[data-theme="dark"] .pec-label{color:#6b7280}
.form-page[data-theme="dark"] .pec-val{color:#e8ecf4}
.form-page[data-theme="dark"] .pec-nophoto{background:#252a3a;color:#4b5268}
.form-page[data-theme="dark"] .pec-more-btn{color:#6b7280}
.form-page[data-theme="dark"] .pub-btn-edit{background:#1e3a5f;color:#60a5fa;border-color:#1e4080}
.form-page[data-theme="dark"] .pub-btn-del{background:#3b1219;color:#f87171;border-color:#5b1a22}
.form-page[data-theme="dark"] .form-input,.form-page[data-theme="dark"] #pub-ent-search{background:#1e2230;border-color:rgba(255,255,255,.1);color:#e8ecf4}
.form-page[data-theme="dark"] .form-footer{color:#4b5268}
.form-page[data-theme="dark"] .pub-tabs{background:#161923;border-color:rgba(255,255,255,.07)}
.form-page[data-theme="dark"] .pub-tab-btn{color:#9ca3af}
.form-page[data-theme="dark"] .pub-sort-btn{background:#1e2230!important;color:#9ca3af!important;border-color:rgba(255,255,255,.1)!important}
.pub-theme-btn{position:fixed;top:12px;right:12px;z-index:9000;padding:7px 12px;border-radius:20px;font-size:.8em;font-weight:600;cursor:pointer;border:1px solid rgba(0,0,0,.1);background:#fff;color:#374151;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:all .2s ease}
.form-page[data-theme="dark"] .pub-theme-btn{background:#1e2230;color:#c4c9d8;border-color:rgba(255,255,255,.1)}

.admin-wrap{
  font-family:'Inter',sans-serif;
  color:#d8dce8;
  min-height:100vh;
}
.admin-wrap:not([data-theme="light"]){background:#080a0f}
.admin-wrap *{--acc:#f04400;--acc-dim:rgba(240,68,0,.1);--acc-glow:rgba(240,68,0,.2);}

/* Sidebar */
.a-shell{display:flex;min-height:100vh;align-items:stretch}


/* Main content */
.a-main{flex:1;padding:24px 32px 32px;overflow-x:hidden;min-width:0}

/* Admin buttons */
.btn-a{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 20px;border-radius:8px;
  font-family:'Inter',sans-serif;font-weight:700;font-size:.88em;
  letter-spacing:.1px;transition:all .2s ease;
  position:relative;overflow:hidden;white-space:nowrap;
}
.btn-a:hover{transform:translateY(-1px)}
.btn-a:active{transform:scale(.97)}
.btn-a:disabled{opacity:.35;cursor:not-allowed;transform:none!important}
.btn-primary-a{
  background:var(--acc);color:#050708;
  box-shadow:0 0 0 0 var(--acc-glow);
  transition:all .2s ease, box-shadow .3s ease;
}
.btn-primary-a:hover{box-shadow:0 6px 24px var(--acc-glow)}
.btn-ghost-a{background:rgba(255,255,255,.05);color:#8891a8;border:1px solid rgba(255,255,255,.08)}
.btn-ghost-a:hover{color:#d8dce8;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14)}
.btn-danger-a{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(239,68,68,.2)}
.btn-danger-a:hover{background:rgba(239,68,68,.18)}
.btn-sm-a{padding:7px 14px;font-size:.76em;border-radius:6px}
.btn-icon-a{padding:8px;width:34px;height:34px;justify-content:center;font-size:.95em}

/* Cards */
.a-card{
  background:#0e1018;border:1px solid rgba(255,255,255,.07);
  border-radius:14px;transition:border-color .2s ease;
}
.a-card:hover{border-color:rgba(255,255,255,.12)}

.form-card-logo{
  width:44px;height:44px;border-radius:10px;
  background:var(--acc-dim);border:1px solid rgba(240,68,0,.2);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4em;flex-shrink:0;
}
.form-card-status{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:20px;
  font-family:'JetBrains Mono',monospace;font-size:.73em;font-weight:600;
}
.status-open{background:rgba(240,68,0,.1);color:var(--acc);border:1px solid rgba(240,68,0,.2)}
.status-locked{background:rgba(245,158,11,.1);color:#fbbf24;border:1px solid rgba(245,158,11,.2)}
.form-card-title{font-weight:700;font-size:1.05em;color:#e2e8f0;margin-bottom:4px;letter-spacing:-.1px}
.form-card-slug{
  font-family:'JetBrains Mono',monospace;font-size:.7em;
  color:#5a6177;margin-bottom:12px;
}
.form-card-meta{
  display:flex;gap:16px;
  font-family:'JetBrains Mono',monospace;font-size:.72em;color:#6b7280;
  padding-top:14px;border-top:1px solid rgba(255,255,255,.08);
}
.form-card-meta span{display:flex;align-items:center;gap:5px}
.form-card-actions{
  display:flex;gap:6px;flex-wrap:wrap;margin-top:14px;
}

/* Stats bar */
.stat-num{
  font-family:'JetBrains Mono',monospace;font-size:2em;font-weight:500;
  color:var(--acc);line-height:1;margin-bottom:6px;letter-spacing:-1px;
}
.stat-label{font-size:.8em;color:#5a6177;letter-spacing:.4px;text-transform:uppercase;font-weight:600}

/* Form builder */
.builder-wrap{max-width:760px}
.builder-section{
  background:#0e1018;border:1px solid rgba(255,255,255,.07);
  border-radius:14px;padding:24px;margin-bottom:16px;
}
.builder-section-title{
  font-family:'JetBrains Mono',monospace;font-size:.76em;font-weight:600;
  letter-spacing:1.2px;text-transform:uppercase;
  color:var(--acc);margin-bottom:18px;
  display:flex;align-items:center;gap:8px;
}
.builder-section-title::after{
  content:'';flex:1;height:1px;background:rgba(240,68,0,.15);
}

/* Admin inputs */
.a-input-wrap{margin-bottom:14px}
.a-label{
  display:block;font-family:'JetBrains Mono',monospace;
  font-size:.76em;font-weight:600;letter-spacing:.8px;
  text-transform:uppercase;color:#6b748a;margin-bottom:7px;
}
.a-input{
  width:100%;padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  background:#070810;color:#d8dce8;
  font-family:'Inter',sans-serif;font-size:.93em;outline:none;
  transition:all .2s ease;
}
.a-input:focus{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-dim)}
.a-input::placeholder{color:#353a50}
.a-textarea{min-height:80px;resize:vertical}
.a-select{
  width:100%;padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  background:#070810;color:#d8dce8;
  font-family:'Inter',sans-serif;font-size:.93em;outline:none;
  transition:all .2s ease;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6177' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
  padding-right:36px;-webkit-appearance:none;appearance:none;
}
.a-select:focus{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-dim)}

/* Toggle */
.a-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:rgba(255,255,255,.03);border-radius:8px;border:1px solid rgba(255,255,255,.06)}
.a-toggle-label{font-size:.9em;color:#8891a8;font-weight:600}
.toggle{position:relative;display:inline-block;width:46px;height:24px;flex-shrink:0}
.toggle input{opacity:0;width:0;height:0}
.toggle-track{position:absolute;inset:0;background:#1c1e28;border-radius:100px;cursor:pointer;transition:all .3s ease;border:1px solid rgba(255,255,255,.08)}
.toggle-track::before{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;background:#5a6177;border-radius:50%;transition:all .3s cubic-bezier(.34,1.56,.64,1)}
input:checked+.toggle-track{background:var(--acc);border-color:var(--acc)}
input:checked+.toggle-track::before{transform:translateX(22px);background:#fff}

/* Field item in builder */
.field-item{
  background:#0d1117;border:1px solid rgba(255,255,255,.1);
  border-left:3px solid rgba(255,255,255,.12);
  border-radius:10px;padding:14px 16px;margin-bottom:10px;
  animation:fadeIn .2s ease;
  counter-increment:field-counter;
  position:relative;
}
.field-item.expanded{
  border-left-color:var(--acc);
  background:#0d1117;
  box-shadow:0 0 0 1px rgba(240,68,0,.08),0 4px 16px rgba(0,0,0,.3);
}
.field-item-header{display:flex;align-items:center;gap:8px;margin-bottom:0;flex-wrap:wrap}
.field-item.expanded .field-item-header{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.07)}
.admin-wrap[data-theme="light"] .field-item.expanded .field-item-header{border-bottom-color:#e2e8f0}
.admin-wrap[data-theme="dark"] .field-item.expanded .field-item-header{border-bottom-color:rgba(255,255,255,.07)}
.field-item-header::before{
  content:counter(field-counter);
  font-family:'JetBrains Mono',monospace;font-size:.7em;font-weight:700;
  color:#8b949e;background:#161b22;border:1px solid rgba(255,255,255,.08);
  border-radius:5px;padding:2px 7px;flex-shrink:0;min-width:24px;text-align:center;
}
.admin-wrap[data-theme="light"] .field-item-header::before{color:#94a3b8;background:#f1f5f9;border-color:#e2e8f0}
.admin-wrap[data-theme="dark"] .field-item-header::before{color:#8b949e;background:#21262d;border-color:#30363d}
.fields-list-wrap{counter-reset:field-counter}
.field-drag{color:#8b949e;cursor:grab;font-size:1em;padding:2px 4px;flex-shrink:0}
.admin-wrap[data-theme="light"] .field-drag{color:#94a3b8}
.admin-wrap[data-theme="dark"] .field-drag{color:#8b949e}
.field-drag:hover{color:#a0aec0}
.admin-wrap[data-theme="light"] .field-drag:hover{color:#6b7280}
.admin-wrap[data-theme="dark"] .field-drag:hover{color:#a0aec0}
.field-title-input{
  flex:1;min-width:120px;padding:9px 11px;border-radius:6px;
  border:1px solid rgba(255,255,255,.1);
  background:#161b22;color:#f0f6fc;
  font-family:'Inter',sans-serif;font-size:.92em;font-weight:600;outline:none;
  transition:border-color .2s ease;
}
.admin-wrap[data-theme="light"] .field-title-input{background:#fff;border-color:#d1d5db;color:#1a1d2e}
.admin-wrap[data-theme="dark"] .field-title-input{background:#0d1117;border-color:#30363d;color:#f0f6fc}
.field-title-input:focus{border-color:var(--acc)}
.field-type-select{
  padding:9px 30px 9px 10px;border-radius:6px;
  border:1px solid rgba(255,255,255,.06);
  background:#161b22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  color:#c9d1d9;font-family:'JetBrains Mono',monospace;font-size:.78em;font-weight:500;
  outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;
  transition:border-color .2s ease;min-width:110px;
}
.admin-wrap[data-theme="light"] .field-type-select{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;border-color:#d1d5db;color:#374151}
.admin-wrap[data-theme="dark"] .field-type-select{background:#0d1117 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;border-color:#30363d;color:#c9d1d9}
.field-type-select:focus{border-color:var(--acc)}
.field-type-select:disabled{opacity:.5;cursor:not-allowed}
.field-item-actions{display:flex;gap:4px;flex-shrink:0;margin-left:auto}
@media(max-width:480px){
  .field-item-header{gap:6px}
  .field-title-input{min-width:0;font-size:.85em}
  .field-type-select{min-width:90px;font-size:.74em;padding-right:22px}
  .field-move-btn{width:22px;height:22px;font-size:.68em}
  .field-del-btn{width:22px;height:22px;font-size:.68em}
  .field-expand-btn{width:22px;height:22px;font-size:.68em}
  .a-main{padding:16px 12px}
  .field-item{padding:10px 12px}
}
.field-move-btn{
  width:26px;height:26px;border-radius:5px;
  display:flex;align-items:center;justify-content:center;
  font-size:.75em;background:#161b22;color:#8b949e;
  border:1px solid #30363d;
  transition:all .15s ease;
}
.admin-wrap[data-theme="light"] .field-move-btn{background:#f1f5f9;color:#6b7280;border-color:#e2e8f0}
.admin-wrap[data-theme="dark"] .field-move-btn{background:#21262d;color:#8b949e;border-color:#30363d}
.field-move-btn:hover{background:#21262d;color:#f0f6fc}
.admin-wrap[data-theme="light"] .field-move-btn:hover{background:#e2e8f0;color:#1a1d2e}
.admin-wrap[data-theme="dark"] .field-move-btn:hover{background:#30363d;color:#f0f6fc}
.field-btn-guarded{border-color:rgba(251,191,36,.4)!important;color:#f59e0b!important;background:rgba(251,191,36,.07)!important}
.field-btn-guarded:hover{background:rgba(251,191,36,.15)!important}
.field-btn-guarded-del{border-color:rgba(251,191,36,.4)!important;color:#f59e0b!important;background:rgba(251,191,36,.07)!important}
.field-btn-guarded-del:hover{background:rgba(239,68,68,.15)!important;color:#ef4444!important;border-color:rgba(239,68,68,.4)!important}
.field-del-btn{
  width:26px;height:26px;border-radius:5px;
  display:flex;align-items:center;justify-content:center;
  font-size:.75em;background:#3a141a;color:#f85149;
  transition:all .15s ease;
}
.admin-wrap[data-theme="light"] .field-del-btn{background:#fff1f2;color:#ef4444}
.admin-wrap[data-theme="dark"] .field-del-btn{background:#3a141a;color:#f85149}
.field-del-btn:hover{background:#4c1a20}
.admin-wrap[data-theme="light"] .field-del-btn:hover{background:#ffe4e6}
.admin-wrap[data-theme="dark"] .field-del-btn:hover{background:#4c1a20}
.field-expand-btn{
  width:26px;height:26px;border-radius:5px;
  display:flex;align-items:center;justify-content:center;
  font-size:.75em;background:#161b22;color:#8b949e;
  border:1px solid #30363d;
  transition:all .15s ease;
}
.admin-wrap[data-theme="light"] .field-expand-btn{background:#f1f5f9;color:#6b7280;border-color:#e2e8f0}
.admin-wrap[data-theme="dark"] .field-expand-btn{background:#21262d;color:#8b949e;border-color:#30363d}
.field-expand-btn:hover{background:#21262d;color:#f0f6fc}
.admin-wrap[data-theme="light"] .field-expand-btn:hover{background:#e2e8f0;color:#1a1d2e}
.admin-wrap[data-theme="dark"] .field-expand-btn:hover{background:#30363d;color:#f0f6fc}
.field-choices-wrap{
  margin-top:0;padding:14px;
  background:#080a0f;border-radius:8px;
  border:1px solid rgba(255,255,255,.06);
}
.a-hint{font-family:'JetBrains Mono',monospace;font-size:.76em;color:#4a5370;margin-top:5px}

/* Add field button */
.add-field-btn{
  width:100%;padding:12px;border-radius:10px;
  border:1px dashed rgba(255,255,255,.1);
  background:transparent;color:#3d4560;
  font-family:'Inter',sans-serif;font-size:.82em;font-weight:600;
  transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:8px;
}
.add-field-btn:hover{border-color:var(--acc);color:var(--acc);background:var(--acc-dim)}

/* Rename field selector */
.rename-field-section{
  margin-top:6px;padding:16px;
  background:rgba(240,68,0,.04);
  border:1px solid rgba(240,68,0,.12);
  border-radius:10px;
}
.rename-field-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(240,68,0,.1);color:var(--acc);
  padding:4px 12px;border-radius:20px;
  font-family:'JetBrains Mono',monospace;font-size:.73em;font-weight:600;
  margin-bottom:10px;
}

/* Responses / Submissions */
.responses-grid{
  display:flex;flex-direction:column;
  gap:10px;margin-top:14px;
}
.sub-card{
  display:flex;gap:12px;align-items:flex-start;
  background:#1a1f2e;border-radius:12px;padding:12px 14px;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  animation:fadeUp .3s ease both;cursor:pointer;
  transition:all .2s ease;
}
.sub-card:hover{border-color:rgba(240,68,0,.25);background:#1e2438}
.sub-card-photo{
  flex-shrink:0;
}
.sub-card-photo img{
  width:58px;height:74px;object-fit:cover;
  border-radius:9px;border:1px solid rgba(255,255,255,.08);display:block;
}
.sub-card-no-photo{
  width:58px;height:74px;border-radius:9px;
  background:#252b3d;display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#4a5370;font-size:.68em;gap:4px;
}
.sub-card-body{flex:1;min-width:0;padding:0}
.sub-field-label{font-size:.63em;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:1px;color:#fff}
.admin-wrap[data-theme="light"] .sub-field-label{color:#fff}
.admin-wrap[data-theme="dark"] .sub-field-label{color:#fff}
.sub-field-val{font-size:.85em;color:#d8dce8;margin-bottom:6px;word-break:break-word;line-height:1.4;font-weight:500}
.admin-wrap[data-theme="light"] .sub-field-val{color:#1a1d2e}
.admin-wrap[data-theme="dark"] .sub-field-val{color:#f0f6fc}
.sub-field-val:empty::before{content:'—';color:#9ca3af}
.admin-wrap[data-theme="light"] .sub-field-val:empty::before{color:#9ca3af}
.admin-wrap[data-theme="dark"] .sub-field-val:empty::before{color:#8b949e}
.sub-card-actions{
  display:flex;flex-direction:column;gap:6px;flex-shrink:0;
}
.sub-btn-edit{
  padding:6px 10px;border-radius:8px;
  font-size:.74em;font-weight:700;white-space:nowrap;
  background:#1e3a5f;color:#60a5fa;cursor:pointer;
  transition:background .2s;font-family:inherit;border:1px solid #1e4080;
}
.sub-btn-edit:hover{background:#1e4a7a}
.sub-btn-del{
  padding:6px 10px;border-radius:8px;
  font-size:.74em;font-weight:700;white-space:nowrap;
  background:#3b1219;color:#f87171;cursor:pointer;
  transition:background .2s;font-family:inherit;border:1px solid #5b1a22;
}
.sub-btn-del:hover{background:#4a1620}
.dup-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:2px 7px;border-radius:5px;margin-bottom:5px;
  background:rgba(220,38,38,.15);color:#f87171;
  font-size:.65em;font-weight:700;text-transform:uppercase;letter-spacing:.3px;
}

/* Admin dark/light theme overrides for shared pec-id-card used in entries */
.admin-wrap .pec-id-card{background:#161b27;border-color:rgba(255,255,255,.08);cursor:pointer}
.admin-wrap .pec-id-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.4)}
.admin-wrap .pec-id-card.expanded{border-left-color:var(--acc,#f04400);box-shadow:0 0 0 1px rgba(240,68,0,.08),0 4px 20px rgba(0,0,0,.4)}
.admin-wrap .pec-compact-name{color:#e2e8f0}
.admin-wrap .pec-compact-photo{background:#1e2535;border-color:rgba(255,255,255,.08)}
.admin-wrap .pec-compact-sub{color:#4b5268}
.admin-wrap .pec-chevron{color:#4b5268}
.admin-wrap .pec-expanded{background:#0f1420;border-top-color:rgba(255,255,255,.06)}
.admin-wrap .pec-exp-name{color:#e2e8f0}
.admin-wrap .pec-exp-role{color:#4b5268}
.admin-wrap .pec-exp-photo{background:#1e2535;border-color:rgba(255,255,255,.1)}
.admin-wrap .pec-exp-divider{background:linear-gradient(90deg,transparent,rgba(255,255,255,.07) 15%,rgba(255,255,255,.07) 85%,transparent)}
.admin-wrap .pec-exp-lbl{color:#374151}
.admin-wrap .pec-exp-val{color:#e2e8f0}
.admin-wrap .pec-exp-val.empty{color:#1e2535;font-size:.78em;font-style:italic;line-height:1.2;display:inline}
.admin-wrap .pec-not-filled-note{color:#fca5a5;background:rgba(220,38,38,.14);border-color:rgba(220,38,38,.3)}
.admin-wrap .pec-exp-btn-edit{background:#161b27;color:#64748b;border-color:rgba(255,255,255,.08)}
.admin-wrap .pec-exp-btn-edit:hover{background:#1e2535}
.admin-wrap[data-theme="light"] .pec-id-card{background:#f8fafc;border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .pec-id-card.expanded{background:#fff;border-left-color:#00b898;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.admin-wrap[data-theme="light"] .pec-compact-name{color:#0f172a}
.admin-wrap[data-theme="light"] .pec-compact-photo{background:#f1f5f9;border-color:#e2e8f0}
.admin-wrap[data-theme="light"] .pec-compact-sub{color:#64748b}
.admin-wrap[data-theme="light"] .pec-chevron{color:#94a3b8}
.admin-wrap[data-theme="light"] .pec-expanded{background:#fafbfd;border-top-color:#f0f4f8}
.admin-wrap[data-theme="light"] .pec-exp-name{color:#0f172a}
.admin-wrap[data-theme="light"] .pec-exp-role{color:#64748b}
.admin-wrap[data-theme="light"] .pec-exp-lbl{color:#94a3b8}
.admin-wrap[data-theme="light"] .pec-exp-val{color:#0f172a}
.admin-wrap[data-theme="light"] .pec-exp-val.empty{color:#d1d5db}
.admin-wrap[data-theme="light"] .pec-exp-btn-edit{background:#f1f5f9;color:#475569;border-color:#e2e8f0}

/* Filter / search bar */
.search-bar-row{display:flex;gap:10px;align-items:center;margin-bottom:6px;flex-wrap:wrap}
.a-search{
  flex:1;min-width:200px;padding:10px 14px 10px 38px;
  border-radius:8px;border:1px solid rgba(255,255,255,.08);
  background:#070810;color:#d8dce8;
  font-family:'Inter',sans-serif;font-size:.9em;outline:none;font-weight:500;
  transition:border-color .2s ease;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6177' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:12px center;
}
.a-search:focus{border-color:var(--acc)}
.sort-pill-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.sort-pill{
  padding:6px 14px;border-radius:20px;
  font-family:'JetBrains Mono',monospace;font-size:.78em;font-weight:600;
  background:rgba(255,255,255,.04);color:#5a6177;
  border:1px solid rgba(255,255,255,.07);cursor:pointer;
  transition:all .2s ease;
}
.sort-pill:hover{color:#d8dce8;background:rgba(255,255,255,.07)}
.sort-pill.active{background:var(--acc-dim);color:var(--acc);border-color:rgba(240,68,0,.25)}

/* Admin login page */
.login-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:#080a0f;
  background-image:radial-gradient(ellipse 600px 500px at 50% -20%,rgba(240,68,0,.06),transparent);
}
.login-box{
  width:100%;max-width:380px;padding:40px;
  background:#0e1018;border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
  animation:fadeUp .45s ease both;
}
.login-logo{
  width:52px;height:52px;border-radius:14px;
  background:var(--acc-dim);border:1px solid rgba(240,68,0,.25);
  display:flex;align-items:center;justify-content:center;
  font-size:1.5em;margin:0 auto 20px;
}
.login-title{font-weight:800;font-size:1.5em;color:#fff;text-align:center;letter-spacing:-.3px;margin-bottom:4px}
.login-sub{font-family:'JetBrains Mono',monospace;font-size:.8em;color:#4a5370;text-align:center;margin-bottom:28px}
.login-error{
  background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.2);
  color:#f87171;padding:10px 14px;border-radius:8px;
  font-size:.87em;text-align:center;margin-bottom:14px;
  animation:fadeIn .2s ease;
}

/* ═══════════════════════════════════════════════════════════
   PUBLIC FORM — CLEAN MINIMAL
═══════════════════════════════════════════════════════════ */
.form-page{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:#f4f5f8;min-height:100vh;
  display:flex;flex-direction:column;align-items:center;
  padding:40px 16px 80px;
}
.form-header{
  width:100%;max-width:600px;
  text-align:center;margin-bottom:28px;
  animation:fadeUp .4s ease both;
}
.form-logo{
  width:56px;height:56px;border-radius:14px;
  margin:0 auto 16px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.6em;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}
.form-title{
  font-family:'Instrument Serif',serif;
  font-size:1.8em;color:#1a1a1a;
  margin-bottom:6px;line-height:1.25;letter-spacing:-.2px;
}
.form-desc{
  font-size:.87em;color:#6b7280;
  line-height:1.65;max-width:480px;margin:0 auto;
}
.form-locked-notice{
  padding:16px 22px;border-radius:12px;
  background:#fffbeb;border:1px solid #fde68a;
  color:#92400e;font-size:.87em;font-weight:500;
  display:flex;align-items:center;gap:10px;
  max-width:600px;width:100%;margin-bottom:24px;
}
.form-card{
  width:100%;max-width:600px;
  background:#fff;border-radius:20px;
  box-shadow:0 4px 24px rgba(0,0,0,.07),0 1px 4px rgba(0,0,0,.05);
  padding:36px;
  animation:fadeUp .45s ease both;animation-delay:.08s;
}
.form-field{margin-bottom:22px}
.form-label{
  display:block;font-size:.8em;font-weight:700;
  color:#374151;letter-spacing:.2px;margin-bottom:8px;
}
.form-label .req{color:#e11d48;margin-left:2px}
.form-input{
  width:100%;padding:12px 14px;
  border-radius:10px;
  border:1.5px solid #e5e7eb;
  background:#fafafa;color:#1a1a1a;
  font-family:'Plus Jakarta Sans',sans-serif;font-size:.9em;
  outline:none;transition:all .2s ease;
  -webkit-appearance:none;appearance:none;
}
.form-input:hover{border-color:#d1d5db}
.form-input:focus{border-color:var(--form-acc,#2563eb);background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.form-input::placeholder{color:#9ca3af}
.form-textarea{min-height:100px;resize:vertical}
.form-select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
  padding-right:40px;cursor:pointer;
}
.form-check-group{display:flex;flex-direction:column;gap:3px}
.form-check-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:8px;
  cursor:pointer;transition:background .15s ease;
  border:1.5px solid transparent;
  font-size:.88em;color:#374151;
}
.form-check-item:hover{background:#f9fafb;border-color:#f3f4f6}
.form-check-item input{accent-color:var(--form-acc,#2563eb);width:16px;height:16px;cursor:pointer;flex-shrink:0}
.form-file-wrap{
  position:relative;padding:20px;
  border:1.5px dashed #d1d5db;border-radius:10px;
  background:#fafafa;text-align:center;
  cursor:pointer;transition:all .2s ease;
}
.form-file-wrap:hover{border-color:var(--form-acc,#2563eb);background:#f8faff}
.form-file-wrap input[type=file]{
  position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;
}
.form-file-icon{font-size:1.8em;margin-bottom:6px}
.form-file-text{font-size:.82em;color:#6b7280}
.form-file-preview{
  margin-top:12px;padding:12px;
  border-radius:8px;background:#f4f5f8;
  display:flex;align-items:center;gap:12px;
  animation:fadeIn .2s ease;
}
.form-file-preview img{
  width:56px;height:72px;object-fit:cover;border-radius:6px;
  border:1px solid #e5e7eb;
}
.form-file-info{font-size:.8em;color:#374151}
.form-file-info span{display:block;color:#9ca3af;font-size:.9em;margin-top:2px}
.form-submit-btn{
  width:100%;padding:15px;border-radius:12px;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:700;font-size:.95em;
  background:var(--form-acc,#2563eb);color:#fff;
  border:none;cursor:pointer;
  transition:all .2s ease;margin-top:8px;
  box-shadow:0 4px 16px rgba(37,99,235,.25);
}
.form-submit-btn:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(37,99,235,.35)}
.form-submit-btn:active{transform:scale(.98)}
.form-submit-btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}
.form-field-error .form-input,
.form-field-error .form-file-wrap{border-color:#ef4444!important;background:#fff5f5}
.form-field-error-msg{font-size:.75em;color:#e11d48;margin-top:5px}
.form-success{
  max-width:600px;width:100%;
  text-align:center;padding:56px 32px;
  background:#fff;border-radius:20px;
  box-shadow:0 4px 24px rgba(0,0,0,.07);
  animation:fadeUp .45s ease both;
}
.form-success-icon{font-size:3.5em;margin-bottom:16px}
.form-success-title{
  font-family:'Instrument Serif',serif;
  font-size:1.6em;color:#1a1a1a;margin-bottom:8px;
}
.form-success-sub{font-size:.9em;color:#6b7280;line-height:1.65}
.form-footer{
  margin-top:24px;font-size:.75em;color:#9ca3af;
  font-family:'Plus Jakarta Sans',sans-serif;text-align:center;
}
.form-progress-overlay{display:none}
.form-progress-spinner{
  width:40px;height:40px;border-radius:50%;
  border:3px solid #e5e7eb;
  border-top-color:var(--form-acc,#2563eb);
  animation:spin .7s linear infinite;
}
.form-progress-text{font-size:.88em;color:#6b7280;font-weight:500}

/* ── Attractive public-form loading state (replaces bare spinner) ── */
.form-loading-state{
  text-align:center;padding:70px 20px;
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.form-loading-illustration{
  width:160px;height:auto;margin-bottom:6px;
  filter:drop-shadow(0 10px 20px color-mix(in srgb, var(--form-acc,#2563eb) 18%, transparent));
}
.fl-mag{
  transform-origin:center;
  animation:flMagMove 3.4s ease-in-out infinite;
}
@keyframes flMagMove{
  0%{  transform:translate(58px,54px) rotate(-14deg); }
  25%{ transform:translate(90px,40px) rotate(10deg); }
  50%{ transform:translate(100px,74px) rotate(-8deg); }
  75%{ transform:translate(68px,88px) rotate(12deg); }
  100%{transform:translate(58px,54px) rotate(-14deg); }
}
.fl-spark{animation:flSparkle 1.9s ease-in-out infinite;opacity:0}
.fl-spark2{animation-delay:.5s}
.fl-spark3{animation-delay:1s}
@keyframes flSparkle{
  0%,100%{opacity:0;transform:translateY(0) scale(.5)}
  50%{opacity:1;transform:translateY(-7px) scale(1)}
}
.form-loading-text{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:.95em;font-weight:600;
  background:linear-gradient(90deg, #9ca3af 20%, var(--form-acc,#2563eb) 50%, #9ca3af 80%);
  background-size:200% auto;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:formLoadShimmer 2.4s linear infinite;
}
@keyframes formLoadShimmer{
  0%{background-position:200% center}
  100%{background-position:-200% center}
}

/* ══ GLOBAL BLOCKING PROGRESS OVERLAY ══════════════════════ */
#gp-overlay{
  display:none;position:fixed;inset:0;z-index:99999;
  background:rgba(8,10,18,.78);backdrop-filter:blur(7px);
  align-items:center;justify-content:center;
  pointer-events:all;
}
#gp-overlay.active{display:flex}
.gp-bar-track{
  position:absolute;top:0;left:0;right:0;height:3px;
  background:rgba(255,255,255,.07);
}
.gp-bar-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,#6366f1,#f04400);
  border-radius:0 2px 2px 0;
  transition:width .38s ease;
  position:relative;
}
.gp-bar-fill::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  background-size:200% 100%;
  animation:shimmer 1.4s infinite;
}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.gp-bar-indeterminate .gp-bar-fill{
  width:35%!important;transition:none;
  animation:gp-slide 1.5s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes gp-slide{
  0%{transform:translateX(-120%)}
  100%{transform:translateX(400%)}
}
.gp-card{
  background:#0e1018;border:1px solid rgba(255,255,255,.09);
  border-radius:22px;padding:38px 44px;text-align:center;
  box-shadow:0 32px 80px rgba(0,0,0,.85);
  min-width:290px;max-width:380px;
  animation:fadeUp .3s cubic-bezier(.34,1.56,.64,1) both;
}
.gp-spinner{
  width:44px;height:44px;border-radius:50%;
  border:3px solid rgba(255,255,255,.07);
  border-top-color:#6366f1;
  animation:spin .75s linear infinite;
  margin:0 auto 18px;
}
.gp-icon{font-size:2.4em;margin-bottom:14px;line-height:1}
.gp-title{font-family:'Inter',sans-serif;font-weight:700;font-size:1.08em;color:#d8dce8;margin-bottom:6px}
.gp-sub{font-size:.82em;color:#505872;margin-top:6px;line-height:1.5}
.gp-pct{font-family:'JetBrains Mono',monospace;font-size:.78em;color:#6366f1;margin-top:10px;font-weight:600}

/* ══ PUBLIC FORM ENTRIES TAB ════════════════════════════════ */
.pub-tabs{
  width:100%;max-width:600px;
  display:flex;gap:0;margin-bottom:20px;
  background:#e8eaee;border-radius:13px;padding:4px;
  animation:fadeUp .4s ease both;animation-delay:.04s;
}
.pub-tab-btn{
  flex:1;padding:11px;border-radius:10px;
  font-size:.84em;font-weight:700;text-align:center;cursor:pointer;
  transition:all .2s ease;color:#6b7280;background:transparent;border:none;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.pub-tab-btn.active{background:#fff;color:#111827;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.pub-entries-wrap{width:100%;max-width:600px;animation:fadeUp .4s ease both}
.pub-entries-grid{
  display:grid;gap:12px;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
}
/* ── Entries list (horizontal rows like dup panel) ─── */
.pub-entries-list{display:flex;flex-direction:column;gap:10px}
.pec-row{
  display:flex;gap:12px;align-items:flex-start;
  background:#fff;border-radius:12px;padding:12px 14px;
  border:1px solid #e5e7eb;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  animation:fadeUp .3s ease both;
}
.pec-nophoto{
  width:58px;height:74px;border-radius:9px;flex-shrink:0;
  background:#f1f3f5;display:flex;align-items:center;justify-content:center;
  font-size:1.4em;color:#cbd5e1;
}
.pec-fields{flex:1;min-width:0}
.pec-field{margin-bottom:5px;display:flex;flex-direction:column}
.pec-label{font-size:.63em;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.4px}
.pec-val{font-size:.85em;color:#1a1d2e;font-weight:500;word-break:break-word}
.form-page[data-theme="dark"] .pec-val{color:#e2e8f0}
.form-page[data-theme="dark"] .pec-label{color:#6b7280}

/* ── Compact ID card entry ── */
.pec-id-card{
  border-radius:14px;
  border:1px solid #e8edf4;
  background:#fff;
  margin-bottom:10px;
  overflow:hidden;
  transition:box-shadow .18s ease;
  cursor:pointer;
}
.pec-id-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.09)}
.form-page[data-theme="dark"] .pec-id-card{background:#161b27;border-color:rgba(255,255,255,.07)}
.form-page[data-theme="dark"] .pec-id-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.35)}

/* Compact row — always visible */
.pec-compact{
  display:flex;align-items:center;gap:12px;padding:11px 13px;
}
.pec-compact-photo{
  width:44px;height:56px;border-radius:8px;object-fit:cover;
  flex-shrink:0;border:1px solid rgba(0,0,0,.08);background:#ced5db;
  display:flex;align-items:center;justify-content:center;font-size:1.2em;
  overflow:hidden;
}
.pec-compact-photo img{width:100%;height:100%;object-fit:cover}
.form-page[data-theme="dark"] .pec-compact-photo{background:#1e2535;border-color:rgba(255,255,255,.08)}

/* No-photo placeholder — SVG defined once in CSS, reused on every card */
/* replaces the old 293KB base64 data URI embedded inline per card     */
.pec-no-photo{
  background-color:#ced5db;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTIwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjM4IiByPSIyMiIgZmlsbD0iIzkwOWRhNiIvPjxlbGxpcHNlIGN4PSI1MCIgY3k9IjEwNSIgcng9IjM4IiByeT0iMzAiIGZpbGw9IiM5MDlkYTYiLz48L3N2Zz4=");
  background-position:center top;
  background-repeat:no-repeat;
  background-size:100%;
}
/* Dark theme keeps the SVG, just changes background color */
.form-page[data-theme="dark"] .pec-no-photo{background-color:#1e2535;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTIwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjM4IiByPSIyMiIgZmlsbD0iIzM0M2M0OCIvPjxlbGxpcHNlIGN4PSI1MCIgY3k9IjEwNSIgcng9IjM4IiByeT0iMzAiIGZpbGw9IiMzNDNjNDgiLz48L3N2Zz4=")}
.admin-wrap .pec-no-photo{background-color:#2a3040;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTIwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjM4IiByPSIyMiIgZmlsbD0iIzNlNDc1NiIvPjxlbGxpcHNlIGN4PSI1MCIgY3k9IjEwNSIgcng9IjM4IiByeT0iMzAiIGZpbGw9IiMzZTQ3NTYiLz48L3N2Zz4=")}
.admin-wrap[data-theme="light"] .pec-no-photo{background-color:#d1d5db;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTIwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjM4IiByPSIyMiIgZmlsbD0iIzlhYTJhYSIvPjxlbGxpcHNlIGN4PSI1MCIgY3k9IjEwNSIgcng9IjM4IiByeT0iMzAiIGZpbGw9IiM5YWEyYWEiLz48L3N2Zz4=")}
.pec-compact-info{flex:1;min-width:0}
.pec-compact-name{
  font-size:.92em;font-weight:700;color:#0f172a;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.3;
}
.form-page[data-theme="dark"] .pec-compact-name{color:#e2e8f0}
.pec-compact-sub{
  font-size:.74em;color:#64748b;margin-top:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pec-compact-right{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0}
.pec-own-chip{
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 7px;border-radius:20px;
  background:#dcfce7;border:1px solid #bbf7d0;
  font-size:.6em;font-weight:700;color:#15803d;
}
.form-page[data-theme="dark"] .pec-own-chip{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.2);color:#34d399}
.pec-chevron{
  font-size:.7em;color:#cbd5e1;transition:transform .2s ease;line-height:1;
}
.pec-id-card.expanded .pec-chevron{transform:rotate(180deg)}

/* Expanded detail panel */
.pec-expanded{
  display:none;
  border-top:1px solid #f0f4f8;
  background:#fafbfd;
}
.form-page[data-theme="dark"] .pec-expanded{background:#0f1420;border-top-color:rgba(255,255,255,.06)}
.pec-id-card.expanded .pec-expanded{display:block}

/* ID card hero inside expanded */
.pec-exp-hero{
  display:flex;gap:14px;align-items:flex-start;padding:14px 14px 0;
}
.pec-exp-photo{
  width:64px;height:80px;border-radius:10px;
  object-fit:cover;flex-shrink:0;
  border:2px solid #e5e7eb;
  background-color:#ced5db;
  display:flex;align-items:center;justify-content:center;font-size:1.8em;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,.1);
}
.pec-exp-photo img{width:100%;height:100%;object-fit:cover}
/* When no photo, apply SVG via pec-no-photo — use background-color only here so SVG isn't overridden */
.pec-exp-photo.pec-no-photo{background-position:center 35%;background-repeat:no-repeat;background-size:100%}
.form-page[data-theme="dark"] .pec-exp-photo{background-color:#1e2535;border-color:rgba(255,255,255,.1)}
.admin-wrap .pec-exp-photo{background-color:#1e2535;border-color:rgba(255,255,255,.1)}
.pec-exp-name-block{flex:1;padding-top:4px}
.pec-exp-name{font-size:.98em;font-weight:800;color:#0f172a;line-height:1.25}
.form-page[data-theme="dark"] .pec-exp-name{color:#e2e8f0}
.pec-exp-role{font-size:.72em;color:#64748b;margin-top:2px}
.pec-exp-badge{
  display:inline-flex;align-items:center;gap:3px;
  margin-top:7px;padding:3px 8px;border-radius:20px;
  background:#dcfce7;border:1px solid #bbf7d0;
  font-size:.6em;font-weight:700;color:#15803d;
}
.form-page[data-theme="dark"] .pec-exp-badge{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.2);color:#34d399}

.pec-exp-divider{height:1px;background:linear-gradient(90deg,transparent,#e5e7eb 15%,#e5e7eb 85%,transparent);margin:12px 14px}
.form-page[data-theme="dark"] .pec-exp-divider{background:linear-gradient(90deg,transparent,rgba(255,255,255,.07) 15%,rgba(255,255,255,.07) 85%,transparent)}

/* 2-col detail grid inside expanded */
.pec-exp-grid{padding:0 14px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-start}
.pec-exp-cell{display:flex;flex-direction:column;gap:1px;flex:0 0 calc(50% - 6px);min-width:0;box-sizing:border-box}
.pec-exp-cell.full{flex:0 0 100%}
.pec-not-filled-note{margin:6px 14px 0;display:flex;align-items:flex-start;gap:6px;font-size:.72em;font-weight:600;color:#b91c1c;background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.2);border-radius:8px;padding:6px 10px;line-height:1.4}
.pec-not-filled-note svg{flex-shrink:0;margin-top:1px}
.pec-not-filled-note b{font-weight:700}
.pec-exp-lbl{font-size:.58em;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#94a3b8;display:block}
.pec-exp-val{font-size:.82em;font-weight:600;color:#0f172a;line-height:1.3;word-break:break-word;display:block;padding:0;margin:0}
.form-page[data-theme="dark"] .pec-exp-lbl{color:#374151}
.form-page[data-theme="dark"] .pec-exp-val{color:#e2e8f0}
.pec-exp-val.empty{color:#b0b8c4;font-style:italic;font-weight:400;font-size:.78em;line-height:1.2;display:inline}
.form-page[data-theme="dark"] .pec-exp-val.empty{color:#4a5268}
.admin-wrap .pec-exp-val{color:#e2e8f0}
.admin-wrap .pec-exp-val.empty{color:#4a5268;font-style:italic;font-weight:400;font-size:.78em}
.admin-wrap[data-theme="light"] .pec-exp-val{color:#0f172a}
.admin-wrap[data-theme="light"] .pec-exp-val.empty{color:#b0b8c4;font-style:italic;font-size:.78em}

/* Action buttons inside expanded */
.pec-exp-actions{
  display:flex;gap:8px;padding:12px 14px 14px;margin-top:10px;
}
.pec-exp-btn-edit{
  flex:1;padding:9px 0;border-radius:9px;font-size:.8em;font-weight:700;
  background:#f1f5f9;color:#475569;border:1.5px solid #e2e8f0;cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.form-page[data-theme="dark"] .pec-exp-btn-edit{background:#161b27;color:#64748b;border-color:rgba(255,255,255,.08)}
.pec-exp-btn-del{
  flex:1;padding:9px 0;border-radius:9px;font-size:.8em;font-weight:700;
  background:#fff1f2;color:#ef4444;border:1.5px solid #fecaca;cursor:pointer;
  font-family:'Plus Jakarta Sans',sans-serif;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.form-page[data-theme="dark"] .pec-exp-btn-del{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.2)}
.pec-more{margin-top:4px}
.pec-more-btn{
  font-size:.7em;font-weight:600;color:#6b7280;background:none;border:none;
  cursor:pointer;padding:2px 0;margin-top:2px;
}
.pec-acts{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.pec-acts .pub-btn-edit,.pec-acts .pub-btn-del{flex:none;padding:6px 10px;font-size:.74em;white-space:nowrap}
/* ── Blurred / private entry cards ─── */
.pec-row-blurred{
  position:relative;overflow:hidden;
  background:#fff;border-radius:12px;padding:12px 14px;
  border:1px solid #e5e7eb;box-shadow:0 1px 4px rgba(0,0,0,.06);
  display:flex;gap:12px;align-items:center;
  animation:fadeUp .3s ease both;
  min-height:72px;
}
.pec-blur-photo{
  width:58px;height:74px;border-radius:9px;flex-shrink:0;
  background:linear-gradient(135deg,#e2e8f0 60%,#cbd5e1);
  filter:blur(2px);
}
.pec-blur-content{flex:1;display:flex;flex-direction:column;gap:8px;filter:blur(5px)}
.pec-blur-line{height:10px;border-radius:6px;background:#e2e8f0}
.pec-blur-badge{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:4px;backdrop-filter:blur(1px);
}
.pec-blur-icon{font-size:1.1em;opacity:.45}
.pec-blur-text{font-size:.68em;font-weight:700;color:#9ca3af;letter-spacing:.4px;text-transform:uppercase}
.pec-own-badge{
  display:inline-flex;align-items:center;gap:4px;
  font-size:.65em;font-weight:700;color:#059669;background:#ecfdf5;
  border:1px solid #a7f3d0;border-radius:100px;padding:2px 7px;margin-top:3px;
  letter-spacing:.3px;
}
.pub-privacy-notice{
  width:100%;max-width:600px;
  background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;
  padding:10px 14px;font-size:.78em;color:#166534;
  display:flex;align-items:center;gap:8px;margin-bottom:14px;
  animation:fadeUp .3s ease both;font-weight:500;
}
.pub-btn-edit{
  border-radius:8px;font-size:.76em;font-weight:700;
  background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;cursor:pointer;
  transition:all .15s ease;
}
.pub-btn-edit:hover{background:#dbeafe}
.pub-btn-del{
  border-radius:8px;font-size:.76em;font-weight:700;
  background:#fff1f2;color:#e11d48;border:1px solid #fecdd3;cursor:pointer;
  transition:all .15s ease;
}
.pub-btn-del:hover{background:#ffe4e6}

/* ══ CONFIRM DIALOG (light, for public form) ════════════════ */
.pub-confirm-backdrop{
  position:fixed;inset:0;z-index:99998;
  background:rgba(0,0,0,.45);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:16px;
  animation:fadeIn .18s ease;
}
.pub-confirm-box{
  background:#fff;border-radius:18px;padding:28px 24px;
  max-width:360px;width:100%;text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  animation:fadeUp .28s cubic-bezier(.34,1.56,.64,1) both;
}
.pub-confirm-icon{font-size:2.2em;margin-bottom:10px}
.pub-confirm-title{font-weight:800;font-size:1em;color:#111827;margin-bottom:6px}
.pub-confirm-msg{font-size:.85em;color:#6b7280;line-height:1.55;margin-bottom:22px}
.pub-confirm-actions{display:flex;gap:10px;justify-content:center}

/* ══ EDIT MODAL in public form (light) ══════════════════════ */
.pub-edit-backdrop{
  position:fixed;inset:0;z-index:99998;
  background:rgba(0,0,0,.45);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:16px;
  animation:fadeIn .18s ease;
}
.pub-edit-box{
  background:#fff;border-radius:20px;padding:28px;
  max-width:520px;width:100%;
  max-height:90vh;overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  animation:fadeUp .28s cubic-bezier(.34,1.56,.64,1) both;
}
.pub-edit-title{font-weight:800;font-size:1.05em;color:#111827;margin-bottom:18px}
.pub-edit-field{margin-bottom:14px}
.pub-edit-label{
  display:block;font-size:.75em;font-weight:700;
  color:#374151;letter-spacing:.2px;margin-bottom:6px;
}
.pub-edit-input{
  width:100%;padding:11px 13px;border-radius:9px;
  border:1.5px solid #e5e7eb;background:#fafafa;color:#111827;
  font-family:'Plus Jakarta Sans',sans-serif;font-size:.9em;
  outline:none;transition:border .2s ease;
}
.pub-edit-input:focus{border-color:var(--form-acc,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.08);background:#fff}
.pub-edit-actions{display:flex;gap:10px;margin-top:20px;justify-content:flex-end}

/* ═══════════════════════════════════════════════════════════
   SHARED OVERLAYS
═══════════════════════════════════════════════════════════ */
.modal-backdrop{
  position:fixed;inset:0;background:rgba(4,6,14,.88);
  backdrop-filter:blur(8px);z-index:8888;
  display:flex;align-items:center;justify-content:center;padding:16px;
  animation:fadeIn .2s ease;
}
.modal-box{
  width:100%;max-width:460px;
  background:#0e1018;border:1px solid rgba(255,255,255,.1);
  border-radius:18px;padding:28px;
  box-shadow:0 24px 64px rgba(0,0,0,.7);
  animation:fadeUp .3s cubic-bezier(.34,1.56,.64,1) both;
}
.modal-title{font-weight:800;font-size:1.05em;color:#fff;margin-bottom:20px}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}

/* Edit record modal */
.edit-modal-box{max-width:640px;max-height:88vh;overflow-y:auto}
.edit-form-field{margin-bottom:16px}
.edit-input{
  width:100%;padding:10px 13px;
  border-radius:8px;border:1px solid rgba(255,255,255,.08);
  background:#070810;color:#d8dce8;
  font-family:'Inter',sans-serif;font-size:.92em;outline:none;
  transition:border-color .2s ease;
}
.edit-input:focus{border-color:var(--acc)}
.edit-label{
  display:block;font-family:'JetBrains Mono',monospace;font-size:.74em;
  font-weight:600;letter-spacing:.8px;text-transform:uppercase;
  color:#6b748a;margin-bottom:6px;
}

/* Toast */
#toast-container{
  position:fixed;bottom:28px;left:16px;right:16px;
  z-index:99999;display:flex;flex-direction:column;gap:8px;
  align-items:center;pointer-events:none;
}
.toast{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 18px 12px 14px;
  border-radius:14px;
  font-size:.84em;font-weight:500;line-height:1.35;
  max-width:360px;width:auto;
  box-shadow:0 4px 24px rgba(0,0,0,.18),0 1px 4px rgba(0,0,0,.1);
  animation:toastIn .32s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events:auto;
  position:relative;overflow:hidden;
}
.toast::after{
  content:'';position:absolute;bottom:0;left:0;height:3px;
  border-radius:0 0 0 14px;
  animation:toastBar 2.8s linear forwards;
}
@keyframes toastBar{from{width:100%}to{width:0%}}
.toast-icon{
  width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.toast-success{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.toast-success .toast-icon{background:#dcfce7;color:#16a34a}
.toast-success::after{background:#16a34a}
.toast-error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}
.toast-error .toast-icon{background:#ffe4e6;color:#e11d48}
.toast-error::after{background:#e11d48}
.toast-info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.toast-info .toast-icon{background:#dbeafe;color:#2563eb}
.toast-info::after{background:#2563eb}
.form-page[data-theme="dark"] .toast-success{background:#052e16;border-color:#166534;color:#4ade80}
.form-page[data-theme="dark"] .toast-success .toast-icon{background:#14532d;color:#4ade80}
.form-page[data-theme="dark"] .toast-error{background:#2d0a0f;border-color:#9f1239;color:#fb7185}
.form-page[data-theme="dark"] .toast-error .toast-icon{background:#4c0519;color:#fb7185}
.form-page[data-theme="dark"] .toast-info{background:#0f1f3d;border-color:#1e40af;color:#93c5fd}
.form-page[data-theme="dark"] .toast-info .toast-icon{background:#1e3a5f;color:#93c5fd}

/* Spinner */
.spin{display:inline-block;width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.15);border-top-color:#f04400;animation:spin .6s linear infinite;vertical-align:middle}
.spin-lg{width:32px;height:32px;border-width:3px}

/* Empty state */
.empty{
  text-align:center;padding:60px 24px;color:#3d4560;
  font-family:'JetBrains Mono',monospace;
}
.empty-icon{font-size:2.5em;margin-bottom:14px;opacity:.4}
.empty-text{font-size:.8em;line-height:1.7}

/* Breadcrumb */
.breadcrumb{
  display:flex;align-items:center;gap:8px;
  font-family:'JetBrains Mono',monospace;font-size:.8em;color:#4a5370;
  margin-bottom:24px;flex-wrap:wrap;
}
.breadcrumb a,.breadcrumb span{cursor:pointer;transition:color .15s ease}
.breadcrumb a:hover{color:var(--acc)}
.breadcrumb-sep{opacity:.3}

/* ── Mobile topbar & sidebar overlay ───────────────────── */
.mobile-topbar{
  display:none;position:sticky;top:0;z-index:7000;
  background:#0c0e14;border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 14px;align-items:center;gap:10px;
}
.mobile-menu-btn{
  padding:7px 10px;border-radius:7px;font-size:1.1em;line-height:1;
  background:rgba(255,255,255,.06);color:#8891a8;border:none;cursor:pointer;flex-shrink:0;
}
.sidebar-overlay{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);
  backdrop-filter:blur(2px);z-index:7500;
}
.sidebar-overlay.active{display:block}

/* Responsive */
@media(max-width:768px){
  .mobile-topbar{display:flex}
  .a-shell{display:block}
  .a-sidebar{
    position:fixed;top:0;left:0;bottom:0;z-index:8000;
    transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);
    width:240px;height:100%;overflow-y:auto;
  }
  .a-sidebar.open{transform:translateX(0)}
  .a-main{padding:20px 16px}
  .stats-row{grid-template-columns:1fr 1fr}
  .form-cards{grid-template-columns:1fr}
  .dash-form-card{padding:18px}
  .responses-grid{gap:8px}
  .form-card-actions{flex-direction:row}
  .a-topbar{flex-direction:column;align-items:flex-start;gap:10px}
  .search-bar-row{flex-direction:column}
}
@media(max-width:480px){
  .field-item-header{gap:6px}
  .field-title-input{min-width:0;font-size:.85em}
  .field-type-select{min-width:90px;font-size:.74em;padding-right:22px}
  .field-move-btn{width:22px;height:22px;font-size:.68em}
  .field-del-btn{width:22px;height:22px;font-size:.68em}
  .field-expand-btn{width:22px;height:22px;font-size:.68em}
  .a-main{padding:14px 10px}
  .field-item{padding:10px 11px}
  .login-box{padding:28px 20px;border-radius:14px}
  .login-title{font-size:1.25em}
  .a-input{font-size:1em;padding:13px 14px}
  #l-btn{padding:14px;font-size:0.95em}
}

/* ── Crop Modal ─────────────────────────────────────────── */
#cropModal{position:fixed;inset:0;background:rgba(4,6,16,.88);backdrop-filter:blur(10px);display:none;align-items:flex-start;justify-content:center;padding:12px;z-index:99999;overflow-y:auto}
#cropModal.active{display:flex;animation:fadeIn .2s ease}
#cropModal .crop-modal-box{width:100%;max-width:620px;background:#0e1018;border-radius:20px;padding:20px;border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 80px rgba(0,0,0,.7);animation:scaleIn .25s cubic-bezier(.34,1.56,.64,1) both;margin:auto;flex-shrink:0}
.crop-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.07)}
.crop-modal-title{font-weight:800;font-size:1em;color:#fff;letter-spacing:-.2px}
.crop-modal-sub{font-size:.78em;color:#505a72;margin-top:3px}
#cropContainer{position:relative;overflow:hidden;background:#111;border-radius:12px;margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none}
#cropImage{display:block;max-width:100%;pointer-events:none}
#cropBox{position:absolute;border:2px solid rgba(255,255,255,.9);box-shadow:0 0 0 9999px rgba(0,0,0,.58);cursor:move;touch-action:none}
#cropBox::before{content:'';position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(to right,transparent calc(33.33% - .5px),rgba(255,255,255,.22) calc(33.33% - .5px),rgba(255,255,255,.22) calc(33.33% + .5px),transparent calc(33.33% + .5px)),
  linear-gradient(to right,transparent calc(66.66% - .5px),rgba(255,255,255,.22) calc(66.66% - .5px),rgba(255,255,255,.22) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
  linear-gradient(to bottom,transparent calc(33.33% - .5px),rgba(255,255,255,.22) calc(33.33% - .5px),rgba(255,255,255,.22) calc(33.33% + .5px),transparent calc(33.33% + .5px)),
  linear-gradient(to bottom,transparent calc(66.66% - .5px),rgba(255,255,255,.22) calc(66.66% - .5px),rgba(255,255,255,.22) calc(66.66% + .5px),transparent calc(66.66% + .5px))}
.crop-handle{position:absolute;width:14px;height:14px;background:#fff;border:2px solid rgba(0,0,0,.4);border-radius:2px;z-index:10}
.crop-handle[data-h="nw"]{left:-7px;top:-7px;cursor:nw-resize}
.crop-handle[data-h="ne"]{right:-7px;top:-7px;cursor:ne-resize}
.crop-handle[data-h="sw"]{left:-7px;bottom:-7px;cursor:sw-resize}
.crop-handle[data-h="se"]{right:-7px;bottom:-7px;cursor:se-resize}
.crop-handle[data-h="n"]{left:50%;top:-7px;transform:translateX(-50%);cursor:n-resize;width:24px;height:10px;border-radius:3px}
.crop-handle[data-h="s"]{left:50%;bottom:-7px;transform:translateX(-50%);cursor:s-resize;width:24px;height:10px;border-radius:3px}
.crop-handle[data-h="e"]{right:-7px;top:50%;transform:translateY(-50%);cursor:e-resize;width:10px;height:24px;border-radius:3px}
.crop-handle[data-h="w"]{left:-7px;top:50%;transform:translateY(-50%);cursor:w-resize;width:10px;height:24px;border-radius:3px}
.crop-footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:10px;flex-wrap:wrap}
.crop-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:8px;background:rgba(240,68,0,.1);border:1px solid rgba(240,68,0,.2);font-size:.75em;color:#f04400;font-weight:600;font-family:'JetBrains Mono',monospace}
.crop-actions{display:flex;gap:8px}
#applyCropBtn{background:#f04400 !important;color:#030f0a !important;font-weight:700 !important;border:none !important;padding:9px 20px !important;border-radius:8px !important;font-size:.84em !important;cursor:pointer;letter-spacing:.2px}
#applyCropBtn:hover{background:#ff6b35 !important;box-shadow:0 4px 16px rgba(240,68,0,.35) !important}
#cancelCropBtn,#cancelCropBtn2{background:rgba(255,255,255,.08) !important;color:#c8cfe0 !important;border:1px solid rgba(255,255,255,.14) !important;padding:9px 16px !important;border-radius:8px !important;font-size:.84em !important;cursor:pointer}
#cancelCropBtn:hover,#cancelCropBtn2:hover{background:rgba(255,255,255,.14) !important;color:#fff !important}
/* Styled file upload zone (public form) */
.pub-upload-zone{border:2px dashed rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.03);padding:22px 16px;text-align:center;cursor:pointer;transition:all .25s ease;position:relative;overflow:hidden}
.pub-upload-zone:hover{border-color:var(--form-acc,#2563eb);background:rgba(37,99,235,.06)}
.pub-upload-zone .uz-icon{font-size:1.8em;margin-bottom:8px}
.pub-upload-zone .uz-label{font-size:.84em;color:#374151;font-weight:500}
.pub-upload-zone .uz-hint{font-size:.74em;color:#9ca3af;margin-top:4px}
.pub-upload-zone input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;padding:0;border:none;background:none}
.pub-crop-preview{margin-top:10px;padding:12px 14px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb;display:flex;gap:12px;align-items:center}
.pub-crop-preview img{width:56px;height:72px;object-fit:cover;border-radius:7px;border:1px solid #e5e7eb}
.pub-crop-preview .pcp-info{font-size:.82em;color:#374151;font-weight:500;flex:1}
.pub-crop-preview .pcp-info span{display:block;font-size:.78em;color:#9ca3af;margin-top:2px;font-weight:400}
.pub-crop-preview .pcp-recrop{padding:6px 11px;border-radius:7px;border:1px solid #d1d5db;background:#fff;color:#6b7280;font-size:.76em;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .18s ease;flex-shrink:0}
.pub-crop-preview .pcp-recrop:hover{color:#111827;background:#f3f4f6}

/* Color picker inline */
.color-swatch-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.color-swatch{
  width:28px;height:28px;border-radius:6px;cursor:pointer;
  border:2px solid transparent;transition:all .15s ease;
}
/* ── Public entries stats bar ─── */
.pub-stats-bar{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin-bottom:14px;
}
.pub-stat-chip{
  display:flex;flex-direction:column;align-items:center;
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;
  padding:10px 18px;flex:1;min-width:110px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.pub-stat-chip--own{border-color:#a7f3d0;background:#f0fdf4}
.pub-stat-chip-num{font-size:1.45em;font-weight:800;color:#1a1d2e;line-height:1;margin-bottom:3px}
.pub-stat-chip--own .pub-stat-chip-num{color:#059669}
.pub-stat-chip-lbl{font-size:.68em;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}
.form-page[data-theme="dark"] .pub-stat-chip-num{color:#e2e8f0}
.form-page[data-theme="dark"] .pub-stat-chip--own .pub-stat-chip-num{color:#34d399}

/* ── Public empty state ─── */
.pub-empty-state{
  text-align:center;padding:44px 20px;color:#9ca3af;
}
.pub-empty-icon{font-size:2.2em;margin-bottom:12px;opacity:.5}
.pub-empty-btn{
  margin-top:12px;padding:8px 18px;border-radius:8px;
  background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;
  font-size:.82em;font-weight:600;cursor:pointer;font-family:inherit;
}

/* ── Admin responses redesign ─── */
.resp-toolbar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#151827;border:1px solid rgba(255,255,255,.07);
  border-radius:12px;padding:12px 16px;margin-bottom:16px;
}
.resp-toolbar-search{position:relative;flex:1;min-width:200px}
.resp-toolbar-search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);pointer-events:none;opacity:.45}
.resp-toolbar-search input{width:100%;padding:9px 12px 9px 34px;background:#0e1018;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#d8dce8;font-size:.86em;font-family:inherit;outline:none}
.resp-toolbar-search input::placeholder{color:#4a5370}
.resp-toolbar-search input:focus{border-color:var(--acc)}
.resp-stat-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 12px;border-radius:100px;font-size:.76em;font-weight:700;
  background:rgba(240,68,0,.08);color:#f04400;border:1px solid rgba(240,68,0,.2);
  white-space:nowrap;
}
.resp-stat-pill.dup{background:rgba(239,68,68,.08);color:#f87171;border-color:rgba(239,68,68,.2)}

/* ── Form cards redesign ─── */
.form-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.dash-form-card{
  background:#151827;border:1px solid rgba(255,255,255,.08);
  border-radius:16px;padding:0;cursor:pointer;
  transition:all .2s ease;overflow:hidden;
}
.dash-form-card:hover{border-color:rgba(240,68,0,.3);transform:translateY(-2px);box-shadow:0 8px 32px rgba(0,0,0,.3)}
.form-card-top{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px}
.form-card-status{
  font-size:.7em;font-weight:700;padding:3px 9px;border-radius:100px;
  text-transform:uppercase;letter-spacing:.4px;
}
.status-open{background:rgba(5,150,105,.15);color:#34d399;border:1px solid rgba(52,211,153,.25)}
.status-locked{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(248,113,113,.25)}
.form-card-body{padding:0 18px 14px}
.form-card-title{font-weight:700;font-size:1em;color:#e2e8f0;margin-bottom:4px}
.form-card-slug{font-size:.75em;color:#4a5370;font-family:'JetBrains Mono',monospace;margin-bottom:10px}
.form-card-meta{display:flex;gap:12px;font-size:.75em;color:#5a6177;border-top:1px solid rgba(255,255,255,.06);padding-top:10px;margin-bottom:12px}
.form-card-meta span{display:flex;align-items:center;gap:4px}
.form-card-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 16px}

/* ── Dashboard stats ─── */
.stat-box{
  background:#151827;border:1px solid rgba(255,255,255,.08);
  border-radius:14px;padding:18px 20px;
}
.stat-num{font-size:2em;font-weight:800;color:#e2e8f0;line-height:1;margin-bottom:4px}
.stat-label{font-size:.75em;color:#5a6177;font-weight:600;text-transform:uppercase;letter-spacing:.4px}

/* ── Login page polish ─── */
.login-wrap{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:#080a0f;padding:20px;
  background-image:radial-gradient(ellipse at 50% 0%, rgba(240,68,0,.06) 0%, transparent 60%);
}
.login-box{
  background:#0e1018;border:1px solid rgba(255,255,255,.08);
  border-radius:20px;padding:36px 32px;width:100%;max-width:380px;
  box-shadow:0 24px 64px rgba(0,0,0,.5);
  animation:scaleIn .35s ease both;
}
.login-title{font-weight:800;font-size:1.45em;color:#fff;text-align:center;letter-spacing:-.3px;margin-bottom:4px}
.login-sub{font-family:'JetBrains Mono',monospace;font-size:.78em;color:#4a5370;text-align:center;margin-bottom:28px}

.color-swatch.active,.color-swatch:hover{border-color:#fff;transform:scale(1.12)}
.color-custom{
  width:28px;height:28px;border-radius:6px;cursor:pointer;
  border:1px solid rgba(255,255,255,.15);padding:0;overflow:hidden;
}
input[type=color]{width:100%;height:100%;border:none;cursor:pointer;background:none;padding:0}

/* ═══════════════════════════════════════
   LOGIN — SPLIT LAYOUT
═══════════════════════════════════════ */
.login-page{background:#080a0f;min-height:100vh;display:flex;align-items:stretch;justify-content:center}
.login-split{display:flex;width:100%;max-width:960px;margin:auto;border-radius:24px;overflow:hidden;box-shadow:0 32px 80px rgba(0,0,0,.6);animation:scaleIn .35s ease both}
.login-left{
  flex:1;padding:48px 40px;display:flex;flex-direction:column;
  background:linear-gradient(145deg,#0a1628 0%,#0d1f1a 100%);
  border-left:1px solid rgba(240,68,0,.1);
}
.login-left-logo{margin-bottom:24px}
.login-left-title{font-size:1.7em;font-weight:800;color:#fff;letter-spacing:-.4px;margin-bottom:8px}
.login-left-sub{font-size:.88em;color:#4a6580;margin-bottom:36px;line-height:1.5}
.login-features{display:flex;flex-direction:column;gap:12px;flex:1}
.login-feat{display:flex;align-items:center;gap:10px;font-size:.84em;color:#6b8a9a;font-weight:500}
.login-feat-dot{width:6px;height:6px;border-radius:50%;background:#f04400;flex-shrink:0}
.login-left-footer{font-size:.72em;color:#2a3a4a;font-family:'JetBrains Mono',monospace;margin-top:32px}
.login-right{
  width:360px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  background:#0e1018;padding:40px 32px;
}
.login-box{width:100%}
.login-logo{
  width:52px;height:52px;border-radius:14px;
  background:rgba(240,68,0,.08);border:1px solid rgba(240,68,0,.2);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
.login-title{font-weight:800;font-size:1.4em;color:#fff;text-align:center;letter-spacing:-.3px;margin-bottom:4px}
.login-sub{font-size:.8em;color:#4a5370;text-align:center;margin-bottom:24px}
@media(max-width:660px){
  .login-split{flex-direction:column;border-radius:0;box-shadow:none}
  .login-right{width:100%!important;padding:32px 24px;border-bottom:1px solid rgba(240,68,0,.1)}
  .login-left{padding:28px 24px;border-left:none}
}

/* ═══════════════════════════════════════
   DASHBOARD — IMPROVED STATS
═══════════════════════════════════════ */
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}
.stat-box{
  background:linear-gradient(135deg,#131826 0%,#0e1118 100%);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;padding:20px 22px;
  transition:border-color .2s ease;
}
.stat-box:hover{border-color:rgba(240,68,0,.2)}
.stat-num{font-size:2.1em;font-weight:800;color:#e2e8f0;line-height:1;margin-bottom:6px;font-family:'Plus Jakarta Sans',sans-serif}
.stat-label{font-size:.72em;color:#4a5370;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.stat-icon{font-size:1.1em;margin-bottom:8px;color:var(--acc)}

/* ═══════════════════════════════════════
   FORM CARDS — REFINED
═══════════════════════════════════════ */
.form-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.dash-form-card{
  background:#111420;border:1px solid rgba(255,255,255,.07);
  border-radius:18px;overflow:hidden;cursor:pointer;
  transition:all .22s ease;display:flex;flex-direction:column;
}
.dash-form-card:hover{border-color:rgba(240,68,0,.28);transform:translateY(-3px);box-shadow:0 12px 36px rgba(0,0,0,.4)}
.form-card-top{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px}
.form-card-logo{
  width:42px;height:42px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.15em;font-weight:800;border:1px solid;flex-shrink:0;
}
.form-card-status{font-size:.68em;font-weight:700;padding:4px 10px;border-radius:100px;letter-spacing:.3px}
.status-open{background:rgba(5,150,105,.12);color:#34d399;border:1px solid rgba(52,211,153,.2)}
.status-locked{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(248,113,113,.2)}
.form-card-body{padding:0 18px 14px;flex:1}
.form-card-title{font-weight:700;font-size:.97em;color:#e2e8f0;margin-bottom:4px;line-height:1.3}
.form-card-slug{font-size:.72em;color:#3d4560;font-family:'JetBrains Mono',monospace;margin-bottom:12px}
.form-card-meta{display:flex;gap:14px;font-size:.74em;color:#4a5370;border-top:1px solid rgba(255,255,255,.05);padding-top:11px;margin-bottom:12px}
.form-card-meta span{display:inline-flex;align-items:center}
.form-card-actions{display:flex;gap:5px;flex-wrap:wrap;padding:0 18px 16px}

/* ═══════════════════════════════════════
   ADMIN SIDEBAR — POLISH
═══════════════════════════════════════ */
.a-sidebar{
  width:230px;flex-shrink:0;
  background:linear-gradient(180deg,#0a0c14 0%,#080a10 100%);
  border-right:1px solid rgba(255,255,255,.05);
  display:flex;flex-direction:column;
  padding:20px 0;
  position:sticky;top:0;height:100vh;overflow-y:auto;
}
.a-brand{padding:4px 20px 22px;border-bottom:1px solid rgba(255,255,255,.05);margin-bottom:8px}
.a-brand-logo{display:flex;align-items:center;gap:7px;font-family:'JetBrains Mono',monospace;font-size:.75em;font-weight:700;color:var(--acc);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:6px}
.a-brand-name{font-weight:800;font-size:1.05em;color:#c8d0e0;letter-spacing:-.2px}
.a-nav{padding:6px 10px;flex:1}
.a-nav-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:10px;
  font-size:.87em;font-weight:600;color:#5a6480;
  transition:all .18s ease;cursor:pointer;margin-bottom:2px;
}
.a-nav-item:hover{color:#c8d0e0;background:rgba(255,255,255,.04)}
.a-nav-item.active{color:var(--acc);background:rgba(240,68,0,.08);border:1px solid rgba(240,68,0,.12)}
.a-nav-item .icon{font-size:1em;width:18px;text-align:center;flex-shrink:0}
.a-sidebar-foot{padding:14px 20px;border-top:1px solid rgba(255,255,255,.05);font-family:'JetBrains Mono',monospace;font-size:.72em;color:#2e3650}

/* ═══════════════════════════════════════
   PUBLIC FORM — REFINEMENTS
═══════════════════════════════════════ */
.form-page{background:#f0f2f7;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:36px 16px 80px}
.form-header{width:100%;max-width:600px;text-align:center;margin-bottom:24px;animation:fadeUp .4s ease both}
.form-logo{width:56px;height:56px;border-radius:14px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:1.5em;font-weight:800;box-shadow:0 4px 18px rgba(0,0,0,.14)}
.form-title{font-weight:800;font-size:1.75em;color:#111827;margin-bottom:6px;line-height:1.2;letter-spacing:-.3px}
.form-desc{font-size:.86em;color:#6b7280;line-height:1.65;max-width:460px;margin:0 auto}
.pub-tabs{
  width:100%;max-width:600px;display:flex;gap:0;margin-bottom:20px;
  background:#e2e5ed;border-radius:14px;padding:4px;
  animation:fadeUp .4s ease both;animation-delay:.04s;
}
.pub-tab-btn{
  flex:1;padding:10px 8px;border-radius:10px;
  font-size:.82em;font-weight:700;text-align:center;cursor:pointer;
  transition:all .2s ease;color:#6b7280;background:transparent;border:none;
  font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:.1px;
}
.pub-tab-btn.active{background:#fff;color:#111827;box-shadow:0 2px 12px rgba(0,0,0,.1)}
.form-footer{text-align:center;margin-top:32px;font-size:.76em;color:#c0c8d8;font-family:'JetBrains Mono',monospace}

/* ═══════════════════════════════════════
   ADMIN RESPONSES PAGE — TOPBAR UPDATE
═══════════════════════════════════════ */
.a-topbar{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:14px;flex-wrap:wrap}
.a-page-title{font-weight:800;font-size:1.55em;color:#e2e8f0;letter-spacing:-.3px;line-height:1.2}
.a-page-title span{color:var(--acc)}
.a-page-sub{font-size:.8em;color:#4a5370;margin-top:4px;font-family:'JetBrains Mono',monospace}
.breadcrumb{font-size:.8em;color:#3d4560;margin-bottom:16px;display:flex;align-items:center;gap:6px}
.breadcrumb a{color:#5a6480;cursor:pointer;text-decoration:none}
.breadcrumb a:hover{color:var(--acc)}
.breadcrumb-sep{color:#2e3650}

/* ── Dropdown filter for entries ─── */
.pub-filter-wrap{margin-bottom:14px}
.pub-filter-group{
  border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;
  margin-bottom:8px;background:#fff;
}
.pub-filter-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px;cursor:pointer;user-select:none;
  font-size:.82em;font-weight:700;color:#374151;gap:8px;
}
.pub-filter-head:hover{background:#f9fafb}
.pub-filter-head-icon{flex-shrink:0;transition:transform .2s ease;color:#9ca3af}
.pub-filter-head-icon.open{transform:rotate(180deg)}
.pub-filter-pills{
  display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 12px;
  animation:fadeUp .18s ease both;
}
.pub-filter-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 11px;border-radius:100px;border:1.5px solid #e5e7eb;
  font-size:.78em;font-weight:600;cursor:pointer;
  background:#fff;color:#374151;transition:all .15s ease;
  user-select:none;-webkit-user-select:none;
}
.pub-filter-pill:hover{border-color:#9ca3af;background:#f3f4f6}
.pub-filter-pill.active{color:#fff;border-color:var(--filter-acc,#2563eb);background:var(--filter-acc,#2563eb)}
.pub-filter-pill .pfc{font-size:.85em;opacity:.7;font-weight:500}
.pub-filter-reset{
  display:inline-flex;align-items:center;gap:5px;
  padding:6px 14px;border-radius:100px;font-size:.78em;font-weight:700;
  background:#fef2f2;color:#dc2626;border:1px solid #fecaca;cursor:pointer;
  font-family:inherit;white-space:nowrap;transition:all .15s ease;
}
.pub-filter-reset:hover{background:#fee2e2}
.pub-filter-active-bar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;
  padding:8px 12px;margin-bottom:12px;font-size:.78em;font-weight:600;color:#1d4ed8;
}
/* Dark mode filter */
.form-page[data-theme="dark"] .pub-filter-group{background:#1a1f2e;border-color:rgba(255,255,255,.08)}
.form-page[data-theme="dark"] .pub-filter-head{color:#c8d0e0}
.form-page[data-theme="dark"] .pub-filter-head:hover{background:rgba(255,255,255,.03)}
.form-page[data-theme="dark"] .pub-filter-pill{background:#252a3a;border-color:rgba(255,255,255,.1);color:#c8d0e0}
.form-page[data-theme="dark"] .pub-filter-pill:hover{background:#2e3547}
.form-page[data-theme="dark"] .pub-filter-pill.active{
  color:#fff !important;
  background:var(--filter-acc,#2563eb) !important;
  border-color:var(--filter-acc,#2563eb) !important;
  box-shadow:0 0 0 2px rgba(var(--filter-acc-rgb,37,99,235),.25);
}
.form-page[data-theme="dark"] .pub-filter-active-bar{background:rgba(37,99,235,.1);border-color:rgba(96,165,250,.25);color:#60a5fa}
/* ── Custom Dropdown (public form) ────────────────────────── */
.pub-custom-select{position:relative;width:100%;user-select:none}
.pub-custom-select-trigger{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;border-radius:10px;
  border:1.5px solid #e5e7eb;background:#fafafa;
  font-family:'Plus Jakarta Sans',sans-serif;font-size:.9em;color:#9ca3af;
  cursor:pointer;transition:all .2s ease;
}
.pub-custom-select-trigger.selected{color:#111827}
.pub-custom-select-trigger:hover{border-color:#d1d5db;background:#fff}
.pub-custom-select-trigger.open{
  border-color:var(--form-acc,#2563eb);background:#fff;
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
  border-radius:10px 10px 0 0;
}
.pub-custom-select-trigger svg{flex-shrink:0;transition:transform .2s ease;color:#9ca3af}
.pub-custom-select-trigger.open svg{transform:rotate(180deg)}
.pub-custom-select-opts{
  position:absolute;top:100%;left:0;right:0;z-index:999;
  background:#fff;border:1.5px solid var(--form-acc,#2563eb);
  border-top:none;border-radius:0 0 10px 10px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  max-height:220px;overflow-y:auto;
  /* No animation — transform-based animation causes full-page repaint on mobile */
}
.pub-custom-opt{
  padding:11px 14px;font-size:.9em;color:#374151;cursor:pointer;
  transition:background .12s ease;display:flex;align-items:center;gap:10px;
}
.pub-custom-opt:hover{background:#f0f4ff}
.pub-custom-opt.selected{
  background:#eff6ff;color:var(--form-acc,#2563eb);font-weight:600;
}
.pub-custom-opt.selected::after{
  content:'✓';margin-left:auto;font-size:.85em;
}
/* dark mode */
.form-page[data-theme="dark"] .pub-custom-select-trigger{background:#1e2230;border-color:rgba(255,255,255,.1);color:#4b5268}
.form-page[data-theme="dark"] .pub-custom-select-trigger.selected{color:#e8ecf4}
.form-page[data-theme="dark"] .pub-custom-select-trigger:hover{background:#252a3a;border-color:rgba(255,255,255,.2)}
.form-page[data-theme="dark"] .pub-custom-select-trigger.open{background:#252a3a}
.form-page[data-theme="dark"] .pub-custom-select-opts{background:#1e2230;border-color:var(--form-acc,#2563eb)}
.form-page[data-theme="dark"] .pub-custom-opt{color:#c8d0e0}
.form-page[data-theme="dark"] .pub-custom-opt:hover{background:rgba(37,99,235,.15)}
.form-page[data-theme="dark"] .pub-custom-opt.selected{background:rgba(37,99,235,.2);color:#93c5fd}
/* error state */
.form-field-error .pub-custom-select-trigger{border-color:#ef4444!important;background:#fff5f5}
/* ── Date filter ───────────────────────────────────────────── */
.pub-date-filter-pills{
  display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;
  animation:fadeUp .18s ease both;
}
.pub-date-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 13px;border-radius:100px;border:1.5px solid #e5e7eb;
  font-size:.78em;font-weight:600;cursor:pointer;
  background:#fff;color:#374151;transition:all .15s ease;
  user-select:none;-webkit-user-select:none;
}
.pub-date-pill:hover{border-color:#9ca3af;background:#f3f4f6}
.pub-date-pill.active{color:#fff;border-color:var(--filter-acc,#2563eb);background:var(--filter-acc,#2563eb)}
.pub-date-range-row{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:6px 14px 12px;
  animation:fadeUp .18s ease both;
}
.pub-date-range-row label{font-size:.74em;font-weight:600;color:#6b7280;white-space:nowrap}
.pub-date-input{
  padding:6px 10px;border-radius:8px;border:1.5px solid #d1d5db;
  background:#fff;color:#374151;font-family:inherit;font-size:.78em;
  outline:none;cursor:pointer;transition:all .15s ease;
}
.pub-date-input:focus{border-color:var(--filter-acc,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.pub-date-apply-btn{
  padding:6px 14px;border-radius:8px;
  background:var(--filter-acc,#2563eb);color:#fff;
  font-size:.78em;font-weight:700;cursor:pointer;border:none;
  font-family:inherit;transition:opacity .15s ease;white-space:nowrap;
}
.pub-date-apply-btn:hover{opacity:.88}
.pub-date-apply-btn:disabled{opacity:.4;cursor:not-allowed}
/* dark mode date filter */
.form-page[data-theme="dark"] .pub-date-pill{background:#252a3a;border-color:rgba(255,255,255,.1);color:#c8d0e0}
.form-page[data-theme="dark"] .pub-date-pill:hover{background:#2e3547}
.form-page[data-theme="dark"] .pub-date-pill.active{color:#fff !important;background:var(--filter-acc,#2563eb) !important;border-color:var(--filter-acc,#2563eb) !important}
.form-page[data-theme="dark"] .pub-date-range-row label{color:#8891a8}
.form-page[data-theme="dark"] .pub-date-input{background:#1e2230;border-color:rgba(255,255,255,.12);color:#e8ecf4}
.form-page[data-theme="dark"] .pub-date-input:focus{border-color:var(--filter-acc,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.15)}

/* ═══════════════════════════════════════
   MOBILE OVERRIDES — must come LAST to
   override the above desktop definitions
═══════════════════════════════════════ */
@media(max-width:768px){
  .mobile-topbar{display:flex}
  .a-shell{display:block}
  .a-sidebar{
    position:fixed!important;top:0;left:0;bottom:0;z-index:8000;
    height:100%!important;width:240px;overflow-y:auto;
    transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);
  }
  .a-sidebar.open{transform:translateX(0)}
  .a-main{padding:16px!important}
  .a-topbar{flex-direction:column;align-items:flex-start;gap:10px}
  .stats-row{grid-template-columns:1fr 1fr}
  .form-cards{grid-template-columns:1fr}
  .form-card-actions{flex-direction:row}
}
@media(max-width:480px){
  .a-main{padding:12px!important}
}

/* ═══════════════════════════════════════════════════════════════
   MODERN POLISH LAYER — admin (theme-aware, loaded last on purpose)
═══════════════════════════════════════════════════════════════ */
.admin-wrap[data-theme="dark"]{--p-surface:#131723;--p-surface2:#191e2c;--p-border:rgba(255,255,255,.08);--p-border2:rgba(255,255,255,.16);--p-text:#e8ebf3;--p-muted:#8b93a9;--p-hover:rgba(255,255,255,.05);--p-shadow:0 1px 2px rgba(0,0,0,.35),0 10px 28px rgba(0,0,0,.22)}
.admin-wrap[data-theme="light"]{--p-surface:#ffffff;--p-surface2:#f4f6fa;--p-border:#e3e7ee;--p-border2:#c9d0dc;--p-text:#111827;--p-muted:#64748b;--p-hover:rgba(15,23,42,.05);--p-shadow:0 1px 2px rgba(16,24,40,.06),0 10px 28px rgba(16,24,40,.06)}

/* Buttons */
.admin-wrap[data-theme] .btn-a{border-radius:10px;font-weight:600;font-size:.86em;padding:9px 16px;gap:7px;border:1px solid transparent;letter-spacing:.1px}
.admin-wrap[data-theme] .btn-sm-a{padding:7px 12px;font-size:.78em;border-radius:9px}
.admin-wrap[data-theme] .btn-primary-a{background-image:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0));box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 6px 16px var(--acc-glow)}
.admin-wrap[data-theme] .btn-primary-a:hover{box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 10px 24px var(--acc-glow);filter:brightness(1.06)}
.admin-wrap[data-theme] .btn-ghost-a{background:var(--p-surface);border-color:var(--p-border);color:var(--p-muted);box-shadow:0 1px 2px rgba(0,0,0,.05)}
.admin-wrap[data-theme] .btn-ghost-a:hover{background:var(--p-surface2);border-color:var(--p-border2);color:var(--p-text)}
.admin-wrap[data-theme] .btn-danger-a{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.25);color:#ef4444}
.admin-wrap[data-theme] .btn-danger-a:hover{background:rgba(239,68,68,.16)}

/* Page header */
.admin-wrap[data-theme] .a-page-title{font-size:1.7em;font-weight:800;letter-spacing:-.4px;color:var(--p-text)}
.admin-wrap[data-theme] .a-page-sub{color:var(--p-muted)}

/* Sidebar nav */
.admin-wrap[data-theme] .a-nav-item{border-radius:11px;border:1px solid transparent;font-weight:600}
.admin-wrap[data-theme] .a-nav-item:hover{background:var(--p-hover)}
.admin-wrap[data-theme] .a-nav-item.active{background:var(--acc-dim);color:var(--acc);border-color:transparent;box-shadow:inset 3px 0 0 var(--acc)}

/* Dashboard stats */
.admin-wrap[data-theme] .stats-row{gap:16px}
.admin-wrap[data-theme] .stat-box{background:var(--p-surface);border:1px solid var(--p-border);border-radius:16px;padding:18px 20px;box-shadow:var(--p-shadow);transition:transform .2s,border-color .2s}
.admin-wrap[data-theme] .stat-box:hover{transform:translateY(-2px);border-color:var(--p-border2)}
.admin-wrap[data-theme] .stat-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--acc-dim);color:var(--acc);margin-bottom:14px}
.admin-wrap[data-theme] .stat-num{color:var(--p-text);font-size:2em;letter-spacing:-.5px}
.admin-wrap[data-theme] .stat-label{color:var(--p-muted)}

/* Dashboard form cards */
.admin-wrap[data-theme] .form-cards{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:18px}
.admin-wrap[data-theme] .dash-form-card{background:var(--p-surface);border:1px solid var(--p-border);border-radius:18px;box-shadow:var(--p-shadow)}
.admin-wrap[data-theme] .dash-form-card:hover{border-color:var(--p-border2);transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.2)}
.admin-wrap[data-theme] .form-card-title{color:var(--p-text) !important;font-size:1.02em}
.admin-wrap[data-theme] .form-card-slug{color:var(--p-muted) !important}
.admin-wrap[data-theme] .form-card-meta{color:var(--p-muted) !important;border-top-color:var(--p-border) !important}
.admin-wrap[data-theme] .form-card-actions{display:flex;align-items:center;gap:10px;padding:0 16px 16px;flex-wrap:nowrap}
.fc-icons{display:flex;gap:6px;flex:1}
.fc-icon{flex:1;width:auto;height:36px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--p-border);color:var(--p-muted);cursor:pointer;transition:all .15s;padding:0}
.fc-icon:hover{background:var(--p-hover);color:var(--p-text);border-color:var(--p-border2)}
.fc-icon.fc-danger:hover{color:#ef4444;border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.08)}

/* Responses toolbar + chips */
.admin-wrap[data-theme] .resp-toolbar{background:var(--p-surface);border:1px solid var(--p-border);border-radius:14px;padding:10px 12px;box-shadow:var(--p-shadow)}
.admin-wrap[data-theme] .resp-toolbar-search input{background:var(--p-surface2);border:1px solid var(--p-border);color:var(--p-text);border-radius:10px;padding:10px 12px 10px 36px}
.admin-wrap[data-theme] .resp-toolbar-search input:focus{border-color:var(--acc)}
.admin-wrap[data-theme] .sort-pill{border-radius:100px;padding:6px 14px;font-size:.78em;font-weight:600;background:var(--p-surface);border:1px solid var(--p-border);color:var(--p-muted)}
.admin-wrap[data-theme] .sort-pill:hover{color:var(--p-text);background:var(--p-surface2)}
.admin-wrap[data-theme] .sort-pill.active{background:var(--acc-dim);color:var(--acc);border-color:var(--acc)}

/* ── Responses: responsive card grid ── */
.admin-wrap .responses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:14px;align-items:start;margin-top:14px}
.admin-wrap[data-theme] .responses-grid .pec-id-card{margin:0;background:var(--p-surface);border:1px solid var(--p-border);border-radius:16px;box-shadow:var(--p-shadow);transition:transform .18s,border-color .18s,box-shadow .18s}
.admin-wrap[data-theme] .responses-grid .pec-id-card:hover{transform:translateY(-2px);border-color:var(--p-border2)}
.admin-wrap[data-theme] .responses-grid .pec-id-card.expanded{border-color:var(--acc);box-shadow:0 0 0 1px var(--acc),var(--p-shadow);transform:none}
.admin-wrap[data-theme] .responses-grid .pec-compact{padding:14px;gap:14px}
.admin-wrap[data-theme] .responses-grid .pec-compact-photo{width:54px;height:68px;border-radius:11px}
.admin-wrap[data-theme] .responses-grid .pec-compact-name{color:var(--p-text);font-size:.95em}
.admin-wrap[data-theme] .responses-grid .pec-compact-sub{color:var(--p-muted)}
.admin-wrap[data-theme] .responses-grid .pec-expanded{background:var(--p-surface2);border-top-color:var(--p-border)}
.admin-wrap[data-theme] .responses-grid .pec-exp-name{color:var(--p-text)}

/* ── Filter panel ── */
.af-toggle{display:inline-flex;align-items:center;gap:6px;border-radius:100px;padding:6px 14px;font-size:.78em;font-weight:600;cursor:pointer;background:var(--p-surface);border:1px solid var(--p-border);color:var(--p-muted);transition:all .15s;user-select:none}
.af-toggle:hover{color:var(--p-text);background:var(--p-surface2)}
.af-toggle.active{background:var(--acc-dim);color:var(--acc);border-color:var(--acc)}
.af-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--acc);color:#fff;font-size:.85em;display:inline-flex;align-items:center;justify-content:center}
.af-panel{background:var(--p-surface);border:1px solid var(--p-border);border-radius:14px;padding:16px 18px;margin:0 0 14px;box-shadow:var(--p-shadow)}
.af-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px 26px}
.af-head{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:.72em;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--p-muted);margin-bottom:9px;user-select:none}
.af-head:hover{color:var(--p-text)}
.af-sel{margin-left:auto;color:var(--acc);text-transform:none;letter-spacing:0;font-weight:700}
.af-chev{transition:transform .18s;font-size:1.1em}
.af-chev.open{transform:rotate(180deg)}
.af-pills{display:flex;flex-wrap:wrap;gap:6px}
.af-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:100px;font-size:.78em;font-weight:600;cursor:pointer;border:1px solid var(--p-border);background:var(--p-surface2);color:var(--p-text);transition:all .15s;user-select:none}
.af-pill:hover{border-color:var(--acc)}
.af-pill.active{background:var(--acc);border-color:var(--acc);color:#fff}
.af-cnt{font-size:.85em;opacity:.6;font-weight:700}
.af-pill.active .af-cnt{opacity:.9}
.af-range{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:.78em;color:var(--p-muted)}
.af-range input[type=date]{padding:7px 10px;border-radius:9px;border:1px solid var(--p-border);background:var(--p-surface2);color:var(--p-text);font-family:inherit;font-size:.95em}
.af-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding:10px 12px;border-radius:10px;background:var(--acc-dim);color:var(--acc);font-size:.8em;font-weight:600}
.af-bar .af-reset{margin-left:auto}
.af-btn-tag{font-size:.82em;font-weight:700;padding:2px 8px;border-radius:100px;background:var(--acc);color:#fff;margin-left:2px}
.af-loading{display:flex;align-items:center;gap:8px;font-size:.8em;color:var(--p-muted);margin-bottom:12px}
@media (max-width:640px){
  .admin-wrap[data-theme] .form-card-actions{flex-wrap:wrap}
}
