/* Stage 16: optional production controls. Existing workbench styles untouched. */
.vma-production-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;margin:8px 0 14px;border:1px solid #bfd2ef;border-radius:12px;background:color-mix(in srgb,#e4f0ff 85%,transparent)}
.vma-production-toolbar[hidden]{display:none!important}
.vma-production-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.vma-production-text strong{font-size:13px;color:#1c3d68}
.vma-production-text small{font-size:11px;color:#637b9a;line-height:1.4}
.vma-production-toolbar button{white-space:nowrap;border:1px solid #5f95e6;border-radius:8px;background:#317bf8;color:white;padding:10px 16px;font-weight:700;cursor:pointer;font-size:12px}
.vma-production-toolbar button[data-prod-pause]{background:transparent;color:#2f64ac}
.vma-production-toolbar button:disabled{opacity:.55;cursor:wait}
.vma-production-toolbar button[hidden]{display:none}
.vma-ref-item{min-width:0;position:relative;display:flex;flex-direction:column;gap:5px}
.vma-ref-item>.dv-bible-tile{width:100%;flex:1}
.vma-ref-edit{align-self:flex-end;position:relative;border:1px solid #c4d8f8;border-radius:7px;background:#e7f1ff;color:#245fbd;font-size:10px;font-weight:700;padding:5px 10px;cursor:pointer}
.vma-ref-add{display:flex;gap:6px;margin-left:auto}
.vma-ref-add button{font-size:10px;color:#2464b9;background:#e8f1ff;border:1px solid #c3d8f5;border-radius:7px;padding:6px 9px;cursor:pointer}
.vma-drag-handle{touch-action:none;cursor:grab;display:grid;place-items:center;font-size:17px!important;color:#256bd6!important;border-color:#9bbcea!important;min-width:23px}
.vma-drag-handle:active{cursor:grabbing}
.dv-tile.vma-drop-target{outline:2px dashed #347cfa;outline-offset:-2px}
.vma-ref-dialog{max-width:min(96vw,600px);width:100%;border:1px solid #b9cee8;border-radius:16px;background:#f8fbff;color:#172f50;padding:22px;box-shadow:0 24px 70px #06162965}
.vma-ref-dialog::backdrop{background:#071729a8}
.vma-ref-dialog h3{margin:0 0 17px;font-size:20px}
.vma-ref-dialog form{display:flex;flex-direction:column;gap:12px}
.vma-ref-dialog label{font-size:12px;font-weight:700;color:#345575;display:flex;flex-direction:column;gap:6px}
.vma-ref-dialog input,.vma-ref-dialog textarea,.vma-ref-dialog select{width:100%;border:1px solid #c6d7ed;border-radius:9px;padding:10px 12px;font:inherit;font-size:13px;background:white;color:#132a4c}
.vma-ref-explain{font-size:12px;color:#6e829b;line-height:1.6;margin:0}
.vma-ref-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.vma-ref-actions button{border:1px solid #cad8eb;border-radius:9px;padding:9px 12px;background:#eaf0f9;color:#285c9c;font-weight:700;font-size:11px;cursor:pointer}
.vma-ref-actions [data-ref-save],.vma-ref-actions [data-ref-add]{background:#317bf8;color:#fff}
.vma-ref-actions [data-ref-remove]{color:#ad3440}
.vma-ref-dialog [data-ref-status]{color:#b84952;font-size:12px}
html[data-theme="dark"] .vma-production-toolbar{background:#16283f;border-color:#304c72}
html[data-theme="dark"] .vma-production-text strong{color:#e0ecff}
html[data-theme="dark"] .vma-production-text small{color:#9db6d5}
html[data-theme="dark"] .vma-ref-edit,html[data-theme="dark"] .vma-ref-add button{background:#183758;border-color:#36639b;color:#9cc8ff}
html[data-theme="dark"] .vma-ref-dialog{background:#122239;color:#ecf3ff;border-color:#3c5776}
html[data-theme="dark"] .vma-ref-dialog label{color:#c0d2e9}
html[data-theme="dark"] .vma-ref-dialog input,html[data-theme="dark"] .vma-ref-dialog textarea,html[data-theme="dark"] .vma-ref-dialog select{background:#1e354f;color:#f4f7ff;border-color:#3f5b7e}
@media(max-width:650px){.vma-production-toolbar{align-items:stretch;flex-wrap:wrap}.vma-production-toolbar button{width:100%}.vma-ref-dialog{padding:15px}.vma-ref-add{flex-wrap:wrap}}

/* Keep three timeline tools readable without squeezing status text. */
.vma-ref-item{flex:0 0 134px;width:134px}
.vma-ref-item>.dv-bible-tile{flex:0 0 auto}
.vma-ref-item>.dv-bible-tile{min-width:0!important;width:100%!important}
.vma-drag-handle{position:absolute!important;right:8px;bottom:36px;z-index:2;background:#e7f1ff!important}
@media(max-width:679px){.vma-ref-item{flex-basis:115px;width:115px}}
