.studio-template-fields { padding:1rem 0 1.5rem; border-bottom:1px solid var(--nuwell-border); scroll-margin-top:1rem; }
.studio-template-fields h2 { margin:.5rem 0; }
.studio-template-fields h3 { font-size:17px; }
.studio-builder-help { margin:.75rem 0 1rem; padding:.65rem .85rem; max-width:760px; box-sizing:border-box; border-left:3px solid var(--nuwell-teal); border-radius:4px; background:var(--nuwell-teal-soft); color:var(--nuwell-text); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.studio-builder-help summary { cursor:pointer; color:var(--nuwell-navy); font-weight:600; }
.studio-builder-help-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:.3rem; border:1px solid var(--nuwell-teal); border-radius:50%; font-size:12px; vertical-align:middle; }
.studio-builder-help p { margin:.5rem 0; }
.studio-builder-help ol { margin:.6rem 0 .1rem; padding-left:1.25rem; }
.studio-builder-help li+li { margin-top:.35rem; }
.studio-template-fields .db360-btn { margin-top:.5rem; }
.studio-first-field { border:0; border-top:1px solid var(--nuwell-border); border-bottom:1px solid var(--nuwell-border); padding:1rem 0; margin:1rem 0; min-width:0; }
.studio-first-field legend { font-size:18px; font-weight:600; color:var(--nuwell-navy); }
.studio-structure-controls { border-bottom:1px solid var(--nuwell-border); padding:1rem 0; }
.studio-structure-controls summary { font-weight:600; color:var(--nuwell-navy); cursor:pointer; }
.studio-section-add { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:.75rem; padding:.75rem 0; }
.studio-section-add input,.studio-section-add select { width:100%; box-sizing:border-box; }
.studio-structure-row { padding:.75rem 0 .75rem calc(var(--structure-depth) * 1rem); border-bottom:1px solid var(--nuwell-border); min-width:0; }
.studio-structure-edit { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:.5rem; }
.studio-structure-edit input,.studio-structure-edit select { width:100%; min-width:0; box-sizing:border-box; }
.studio-structure-actions { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.studio-structure-kind { font-size:12px; }
.studio-field-row { border:0; border-top:1px solid var(--nuwell-border); padding:1rem 0; margin:1rem 0; min-width:0; }
.studio-field-row legend { color:var(--nuwell-navy); font-size:16px; font-weight:600; }
.studio-form-section { margin:1rem 0; padding:1rem 0; border-top:1px solid var(--nuwell-border); min-width:0; }
.studio-form-section .studio-form-section { margin-left:.5rem; padding-left:.75rem; border-left:2px solid var(--nuwell-teal-light); }
.studio-form-section h2 { font-size:20px; }.studio-form-section h3 { font-size:18px; }.studio-form-section h4 { font-size:16px; }.studio-form-section h5 { font-size:15px; }.studio-form-section h6 { font-size:14px; }
.studio-form-document { margin:1rem 0; min-width:0; }
.studio-form-document>h2 { font-size:20px; }.studio-form-document>h3 { font-size:18px; }
.studio-document-editor { display:grid; grid-template-columns:minmax(260px,320px) minmax(0,1fr); gap:1.5rem; margin-top:1.5rem; }
.studio-document-tools { min-width:0; border-right:1px solid var(--nuwell-border); padding-right:1.25rem; }
.studio-document-tools h2 { font-size:18px; margin-top:1.25rem; }
.studio-document-tools p { overflow-wrap:anywhere; }
.studio-document-confirm { display:flex; gap:.5rem; align-items:flex-start; margin-top:.75rem; font-size:13px; }
.studio-document-tools input:not([type=checkbox]),.studio-document-tools select,.studio-document-tools textarea { width:100%; min-width:0; box-sizing:border-box; }
.studio-document-tools .db360-field { margin:.65rem 0; }
.studio-document-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; }
.studio-document-coordinates { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; margin-bottom:.75rem; }
.studio-document-coordinates label { font-size:13px; }
.studio-document-tools>select,.studio-document-coordinates input,.studio-document-toolbar select { border:1px solid var(--nuwell-border); border-radius:4px; padding:8px; font:inherit; color:var(--nuwell-text); background:var(--nuwell-surface); }
.studio-document-new-field { margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--nuwell-border); }
.studio-document-new-field summary { font-size:17px; color:var(--nuwell-navy); font-weight:600; cursor:pointer; }
.studio-document-workspace { min-width:0; background:var(--nuwell-bg); }
.studio-document-toolbar { display:flex; gap:.75rem; align-items:center; padding:.75rem; border-bottom:1px solid var(--nuwell-border); background:var(--nuwell-surface); }
.studio-document-toolbar select { width:100px; }
.studio-document-canvas-scroll { overflow:auto; max-height:85vh; padding:1rem; }
.studio-document-canvas { position:relative; width:100%; max-width:850px; margin:0 auto; background:var(--nuwell-surface); box-shadow:0 1px 6px var(--nuwell-border); }
.studio-document-canvas>img { width:100%; height:100%; display:block; pointer-events:none; }
.studio-placement { position:absolute; box-sizing:border-box; border:2px solid var(--nuwell-teal); background:var(--nuwell-teal-soft); color:var(--nuwell-navy); font-size:12px; padding:2px; cursor:move; touch-action:none; overflow:hidden; }
.studio-placement.is-selected { border-color:var(--nuwell-navy); outline:1px solid var(--nuwell-navy); }
.studio-placement-label { display:block; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; pointer-events:none; }
.studio-placement-resize { position:absolute; bottom:0; right:0; width:18px; height:18px; border:0; background:var(--nuwell-navy); color:var(--nuwell-surface); cursor:nwse-resize; padding:0; line-height:18px; }
.studio-document-empty { min-height:360px; display:flex; align-items:center; justify-content:center; color:var(--nuwell-muted); }
.studio-recipient-document { margin-bottom:1rem; }
.studio-document-page-title { font-size:16px; font-weight:600; color:var(--nuwell-navy); margin:1rem 0 .5rem; }
.studio-recipient-page-scroll { overflow-x:auto; }
.studio-recipient-page { position:relative; width:100%; min-width:600px; background:var(--nuwell-surface); }
.studio-recipient-page>img { width:100%; height:100%; display:block; }
.studio-recipient-overlay { position:absolute; box-sizing:border-box; }
.studio-recipient-overlay input:not([type=checkbox]),.studio-recipient-overlay textarea,.studio-recipient-overlay select { display:block; width:100%; height:100%; min-height:0; box-sizing:border-box; padding:1px 3px; border:1px solid var(--nuwell-teal); border-radius:2px; background:var(--nuwell-teal-soft); color:var(--nuwell-text); font-size:12px; line-height:1.2; }
.studio-recipient-overlay input[type=checkbox] { width:100%; height:100%; margin:0; accent-color:var(--nuwell-teal); }
.studio-overlay-error { position:absolute; top:100%; left:0; z-index:2; background:var(--nuwell-surface); color:var(--queue-red); font-size:11px; white-space:nowrap; }
.studio-typed-signature { font-family:Georgia,serif; font-style:italic; }
.studio-signature-consent { border-top:1px solid var(--nuwell-border); padding-top:1rem; margin-top:1rem; }
.studio-signature-consent label { display:flex; gap:.75rem; align-items:flex-start; }
.studio-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:850px) {
  .studio-section-add,.studio-structure-edit { grid-template-columns:minmax(0,1fr); }
  .studio-document-editor { grid-template-columns:minmax(0,1fr); }
  .studio-document-tools { border-right:0; padding-right:0; }
  .studio-document-workspace { grid-row:1; }
}