.wb-preview-frame { position:relative !important; display:flex !important; flex-direction:column; align-items:center; gap:24px; width:calc(100% * var(--preview-zoom, 1)) !important; min-height:100%; height:auto !important; padding:24px; box-sizing:border-box; }
.wb-raster-page { display:block; position:static; width:100%; max-width:1000px; height:auto; background:#fff; box-shadow:0 8px 30px #0003; }
.wb-page-wrap { position:relative; flex:none; width:100%; max-width:1000px; line-height:0; }
.wb-text-hit-layer { position:absolute; inset:0; pointer-events:none; }
.wb-text-hit { position:absolute; display:block; margin:0; padding:0; min-width:0; min-height:0; border:0; border-radius:2px; background:transparent; box-shadow:none; appearance:none; pointer-events:auto; cursor:text; touch-action:manipulation; }
.wb-text-hit:hover, .wb-text-hit:focus-visible, .wb-text-hit.is-editing { background:rgba(37,99,235,.12); outline:1px solid #3b82f6; outline-offset:2px; }
.wb-inline-editor { position:fixed; z-index:900; width:min(380px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; box-sizing:border-box; padding:16px; border:1px solid #64748b; border-radius:12px; color:#e2e8f0; background:#0f172a; box-shadow:0 12px 48px #0006; font:14px/1.5 var(--font-sans,sans-serif); }
.wb-inline-editor label { display:block; margin-bottom:8px; font-weight:600; overflow-wrap:anywhere; }
.wb-inline-editor textarea { display:block; width:100%; min-height:64px; max-height:240px; resize:vertical; padding:10px; border:1px solid #64748b; border-radius:8px; color:#0f172a; background:white; font:inherit; font-size:16px; line-height:1.5; }
.wb-inline-editor textarea:focus { outline:2px solid #60a5fa; outline-offset:1px; }
.wb-inline-hint { margin:8px 0; color:#94a3b8; font-size:12px; }
.wb-inline-error { color:#fca5a5; font-size:13px; overflow-wrap:anywhere; }
.wb-inline-error:empty { display:none; }
.wb-inline-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.wb-inline-actions button { min-height:38px; padding:7px 14px; border:1px solid #64748b; border-radius:7px; background:#1e293b; color:#e2e8f0; font:inherit; cursor:pointer; }
.wb-inline-actions .wb-inline-save { background:#2563eb; border-color:#2563eb; color:white; }
.wb-inline-actions button:disabled { opacity:.6; cursor:wait; }
.wb-canvas-area { overflow:auto !important; }
.wb-render-status { font-size:12px; color:var(--text-muted,#94a3b8); padding:6px 12px; }
.wb-render-status[data-error="true"] { color:#ef4444; }
.wb-h-right { flex-wrap:wrap; }
.wb-fields-list .wb-f-item label { color:#94a3b8; }
.wb-h-right button:disabled { opacity:.5; cursor:wait; }
@media(max-width:720px) {
  .wb-preview-frame { padding:12px; gap:16px; }
  .wb-raster-page { min-width:0; }
  .wb-render-status { max-width:160px; font-size:11px; }
}
/* Field navigation and batch editing share the existing private preview session. */
.wb-text-hit.is-located { background:rgba(245,158,11,.26); outline:2px solid #d97706; outline-offset:2px; }
.wb-field-controls { display:flex; align-items:center; gap:7px; margin-bottom:7px; }
.wb-field-controls label { flex:1; min-width:0; overflow-wrap:anywhere; margin:0 !important; }
.wb-fields-list .wb-field-controls .wb-field-check { appearance:auto; width:16px; height:16px; min-height:16px; padding:0; flex:none; accent-color:#2563eb; cursor:pointer; }
.wb-locate-field { flex:none; border:0; background:transparent; color:#2563eb; padding:5px 2px; font:inherit; font-size:11px; cursor:pointer; }
.wb-batch-tools { flex:none; padding:12px 18px; border-bottom:1px solid #d6dfe8; background:#f8fafc; color:#24384f; font-size:12px; line-height:1.5; }
.wb-batch-tools summary { font-weight:600; cursor:pointer; padding:3px 0; }
.wb-batch-tools p { margin:8px 0; color:#52657b; }
.wb-batch-tools label { display:block; margin-top:8px; }
.wb-batch-tools input,.wb-batch-tools select { display:block; width:100%; box-sizing:border-box; margin-top:4px; padding:7px 8px; border:1px solid #cbd5e1; border-radius:6px; background:white; color:#24384f; font:inherit; }
.wb-batch-tools [hidden] { display:none; }
.wb-batch-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.wb-batch-actions button { padding:7px 9px; border:1px solid #cbd5e1; border-radius:6px; background:white; color:#2563eb; cursor:pointer; font:inherit; }
.wb-batch-actions button:disabled { opacity:.45; cursor:default; }
.wb-batch-tools ul { padding-left:16px; overflow-wrap:anywhere; }
.wb-batch-tools ul:empty { display:none; }
@media(max-width:720px) {
  .wb-batch-tools { padding:8px 18px; }
  .wb-batch-tools input,.wb-batch-tools select { font-size:16px; }
  .wb-locate-field,.wb-batch-actions button { min-height:36px; }
}
.wb-batch-body { max-height:30dvh; overflow:auto; padding-bottom:3px; }
