.script-textarea {
  flex: 1 1 420px;
  min-height: 104px;
  font: 13px/1.45 var(--font-mono);
  color: var(--bfc-navy);
  padding: 11px 12px;
  border: 1px solid var(--bfc-line-strong);
  border-radius: 10px;
  background: var(--bfc-surface);
  resize: vertical;
}
.script-confirm {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--bfc-muted);
  font-size: 13px;
  font-weight: 700;
}
.script-confirm input {
  width: 260px;
  max-width: 48vw;
  font: 13px/1.2 var(--font-mono);
  text-transform: uppercase;
}
.script-confirm-hint {
  color: var(--bfc-ink);
  font-family: var(--font-mono);
  background: var(--bfc-soft);
  border: 1px solid var(--bfc-line);
  border-radius: 999px;
  padding: 3px 8px;
}
.scripts-actions { margin-top: 14px; }
.script-authority {
  margin-top: 4px;
  color: var(--bfc-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.script-status {
  color: var(--bfc-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.script-status-ok { color: var(--bfc-success-text); }
.script-status-running { color: var(--bfc-info-text, var(--bfc-teal)); }
.script-status-warn { color: var(--bfc-warn-text, var(--bfc-muted)); }
.script-status-block,
.script-status-failed,
.script-status-error { color: var(--bfc-danger-text); }
.script-confirm-callout {
  margin: 14px;
  padding: 10px 12px;
  border: 1px solid var(--bfc-warn-line, var(--bfc-line-strong));
  border-radius: var(--radius-md);
  background: var(--bfc-warn-bg, var(--bfc-soft));
  color: var(--bfc-ink);
  font-size: 13px;
  font-weight: 700;
}
.create-user-body { display: flex; flex-direction: column; gap: 14px; }
.script-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--bfc-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.setup-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.setup-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-soft);
  padding: 12px 12px 12px 34px;
  cursor: pointer;
}
.setup-method-card input { position: absolute; left: 12px; top: 14px; }
.setup-method-card.is-selected { border-color: var(--bfc-teal); background: rgba(35,177,165,.08); }
.setup-method-title { font-weight: 800; color: var(--bfc-ink); }
.setup-method-copy { font-size: 12.5px; color: var(--bfc-muted); line-height: 1.35; }
.script-section {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  padding: 10px 12px 12px;
  background: var(--bfc-surface);
}
.script-section summary { cursor: pointer; font-weight: 800; color: var(--bfc-navy); }
.script-section[open] summary { margin-bottom: 8px; }
.script-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.script-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--bfc-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.script-label input, .script-label select { width: 100%; }
.script-wide { grid-column: 1 / -1; }
.script-check { align-self: end; padding-bottom: 9px; }
.script-checks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}
/* Create User — stepped layout (visual grouping only; field ids/flow unchanged) */
.cu-step { display: flex; flex-direction: column; gap: 12px; }
.cu-step-head { display: flex; align-items: center; gap: 9px; }
.cu-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bfc-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.cu-step-title { font-size: 14px; font-weight: 800; color: var(--bfc-navy); }
.cu-group { display: flex; flex-direction: column; gap: 8px; }
.cu-group .script-form-grid { margin-top: 0; }
.cu-new-user-grid {
  grid-template-columns: minmax(160px, 1.05fr) minmax(180px, 1.1fr) minmax(116px, .65fr) minmax(190px, 1.1fr);
  align-items: end;
}
.cu-new-user-id { grid-column: 1; }
.cu-new-password { grid-column: 2; }
.cu-password-check {
  grid-column: 3 / span 2;
  align-self: end;
  padding-bottom: 9px;
}
.cu-password-check .checkline { margin: 0; }
.cu-employee-number { grid-column: 1; }
.cu-first-name { grid-column: 2; }
.cu-middle-initial { grid-column: 3; }
.cu-last-name { grid-column: 4; }
@media (max-width: 920px) {
  .cu-new-user-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .cu-new-user-id, .cu-new-password, .cu-employee-number, .cu-first-name, .cu-middle-initial, .cu-last-name { grid-column: auto; }
  .cu-password-check { grid-column: 1 / -1; padding-bottom: 0; }
}
.cu-adv-hint {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bfc-muted);
}
.cu-checks-title { margin-top: 14px; }
.cu-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cu-pair { display: flex; gap: 10px; }
.cu-pair-main { flex: 1 1 auto; min-width: 0; }
.cu-pair-lib { flex: 0 0 104px; }
.cu-danger-zone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid var(--bfc-danger-line);
  border-radius: var(--radius-md);
  background: var(--bfc-danger-bg);
}
.cu-danger-zone .script-confirm { color: var(--bfc-danger-text); }
.cu-danger-zone .script-confirm input { width: 200px; }
.cu-danger-zone .btn { margin-left: auto; }
.cu-source-summary {
  margin: 14px;
  padding: 12px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
}
.cu-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cu-source-grid div {
  border: 1px solid var(--bfc-line);
  border-radius: 10px;
  background: var(--bfc-soft);
  padding: 9px 10px;
}
.cu-source-grid span { display: block; color: var(--bfc-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cu-source-grid b { display: block; margin-top: 4px; color: var(--bfc-ink); font-size: 12.5px; overflow-wrap: anywhere; }
.cu-source-options { margin-top: 10px; }
.cu-source-options summary { cursor: pointer; color: var(--bfc-navy); font-weight: 800; font-size: 12.5px; }
.cu-source-options div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tomcat-reboot-body { display: flex; flex-direction: column; gap: 14px; }
.tomcat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.tomcat-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bfc-surface), var(--bfc-soft));
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tomcat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tomcat-card input { position: absolute; opacity: 0; pointer-events: none; }
.tomcat-card.is-selected { border-color: var(--bfc-teal); box-shadow: 0 0 0 3px rgba(35,177,165,.13); }
.tomcat-radio-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--bfc-line-strong);
  margin-top: 2px;
  background: var(--bfc-surface);
}
.tomcat-card.is-selected .tomcat-radio-dot { border-color: var(--bfc-teal); box-shadow: inset 0 0 0 4px var(--bfc-surface); background: var(--bfc-teal); }
.tomcat-card-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tomcat-card-title { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: baseline; color: var(--bfc-ink); }
.tomcat-card-title b { color: var(--bfc-navy); font-size: 15px; }
.tomcat-card-title span { color: var(--bfc-muted); font-size: 12.5px; }
.tomcat-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tomcat-card-sub, .tomcat-evidence { color: var(--bfc-muted); font-size: 12px; line-height: 1.35; }
.tomcat-evidence { color: var(--bfc-success-text); }
.tomcat-secure-signon {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 12px;
}
.tomcat-actions { align-items: center; }
.tomcat-actions .script-confirm input { width: 260px; }
.tomcat-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
}
.tomcat-summary div {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 10px 12px;
}
.tomcat-summary span { display: block; color: var(--bfc-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tomcat-summary b { display: block; margin-top: 4px; color: var(--bfc-ink); font-size: 13px; overflow-wrap: anywhere; }
/* Deliver Setup — guided admin flow, using the same card/form primitives as other scripts. */
.deliver-setup-body { display: flex; flex-direction: column; gap: 14px; }
.deliver-panel {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 14px;
}
.deliver-panel h3 { margin: 4px 0 4px; color: var(--bfc-navy); font-size: 15px; line-height: 1.25; }
.deliver-panel p { margin: 0; color: var(--bfc-muted); font-size: 13px; line-height: 1.4; }
.deliver-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.deliver-core-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.deliver-sign-on-grid { max-width: 560px; }
.deliver-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.deliver-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 82px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-soft);
  padding: 12px 12px 12px 38px;
  cursor: pointer;
}
.deliver-action-card input { position: absolute; left: 13px; top: 14px; }
.deliver-action-card.is-on { border-color: var(--bfc-teal); background: rgba(35,177,165,.08); }
.deliver-action-card.is-danger.is-on { border-color: var(--bfc-danger-line); background: var(--bfc-danger-bg); }
.deliver-action-title { color: var(--bfc-ink); font-size: 13px; font-weight: 800; }
.deliver-action-copy { color: var(--bfc-muted); font-size: 12px; line-height: 1.35; }
.deliver-advanced { background: var(--bfc-surface); }
.deliver-run-panel.is-muted,
.deliver-run-panel.is-blocked { background: var(--bfc-soft); }
.deliver-run-panel.is-blocked { border-color: var(--bfc-danger-line); }
.deliver-confirm-zone .btn-sm { margin-left: 0; }
.deliver-run-hint { flex: 1 1 160px; }
.deliver-download-panel { background: linear-gradient(180deg, var(--bfc-surface), var(--bfc-soft)); }
.deliver-summary { padding-top: 14px; }
.deliver-check-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding: 14px;
}
.deliver-check-group {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 12px;
}
.deliver-check-block { border-color: var(--bfc-danger-line); background: var(--bfc-danger-bg); }
.deliver-check-warn { border-color: var(--bfc-warn-line, var(--bfc-line-strong)); background: var(--bfc-warn-bg, var(--bfc-soft)); }
.deliver-check-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.deliver-check-title span { color: var(--bfc-navy); font-weight: 800; font-size: 13px; }
.deliver-check-title b {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bfc-soft);
  color: var(--bfc-ink);
  font-size: 12px;
}
.deliver-check-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--bfc-line); }
.deliver-check-item:first-of-type { border-top: 0; }
.deliver-check-item b { color: var(--bfc-ink); font-size: 12.5px; }
.deliver-check-item p { margin: 3px 0 0; color: var(--bfc-muted); font-size: 12px; line-height: 1.35; }
.deliver-planned,
.deliver-config-files {
  margin: 14px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 12px;
}
.deliver-planned ol { margin: 10px 0 0 20px; padding: 0; color: var(--bfc-ink); font-size: 13px; line-height: 1.55; }
.deliver-no-ops { margin: 14px; }
.deliver-config-file { border-top: 1px solid var(--bfc-line); padding-top: 10px; margin-top: 10px; }
.deliver-config-files .script-section-title + .deliver-config-file { border-top: 0; padding-top: 0; }
.deliver-config-file details summary { cursor: pointer; color: var(--bfc-navy); font-weight: 800; font-size: 12.5px; }
.deliver-config-file pre {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--bfc-line);
  border-radius: 10px;
  background: var(--bfc-soft);
  white-space: pre-wrap;
  font: 12.5px/1.45 var(--font-mono);
  color: var(--bfc-ink);
}
.deliver-technical .script-preview-block { margin: 12px; }
.dump-tomcat-notice { margin: 0; line-height: 1.45; }
.dump-tomcat-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 12px;
}
.dump-tomcat-scope .script-section-title { flex-basis: 100%; }
.dump-tomcat-scope > span {
  border: 1px solid var(--bfc-line);
  border-radius: 999px;
  background: var(--bfc-soft);
  color: var(--bfc-muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}
.dump-artifact {
  margin: 14px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 14px;
}
.dump-artifact-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dump-artifact-head b { display: block; margin-top: 4px; color: var(--bfc-navy); overflow-wrap: anywhere; }
.dump-artifact-head span { display: block; margin-top: 4px; color: var(--bfc-muted); font-size: 12px; }
.dump-file-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 7px; margin-top: 12px; }
.dump-file-list div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--bfc-line); padding-top: 7px; color: var(--bfc-muted); font-size: 12px; }
.dump-file-list span { overflow-wrap: anywhere; }
.dump-file-list b { color: var(--bfc-ink); white-space: nowrap; }
.tomcat-final-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 14px 0;
  color: var(--bfc-muted);
  font-size: 13px;
  font-weight: 700;
}
.script-ops { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.script-op {
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  padding: 12px;
}
.script-op-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.script-op pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12.5px/1.45 var(--font-mono);
  color: var(--bfc-ink);
}
.script-preview-block {
  margin: 14px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  overflow: hidden;
}
.script-preview-block summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--bfc-ink);
  border-bottom: 1px solid var(--bfc-line);
}
.script-preview-block pre,
.script-json {
  margin: 14px;
  padding: 12px;
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-md);
  background: var(--bfc-surface);
  white-space: pre-wrap;
  font: 12.5px/1.45 var(--font-mono);
  color: var(--bfc-ink);
}
.script-preview-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  max-height: 520px;
  overflow: auto;
}
.script-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 6px 2px 0;
  color: var(--bfc-muted);
  white-space: nowrap;
}
.script-child.is-bad { color: var(--bfc-danger-text); }

/* Item UPC import workbench */
.upc-import-body { display: grid; gap: 16px; }
.upc-step { border: 1px solid var(--bfc-line); border-radius: var(--radius-md); padding: 16px; background: var(--bfc-surface); }
.upc-drop-zone { display: grid; gap: 5px; padding: 22px; border: 2px dashed var(--bfc-line); border-radius: var(--radius-md); cursor: pointer; background: var(--bfc-panel); }
.upc-drop-zone:hover { border-color: var(--bfc-indigo); }
.upc-drop-zone span { color: var(--bfc-muted); font-size: 13px; overflow-wrap: anywhere; }
.upc-drop-zone input { margin-top: 8px; }
.upc-summary { margin: 12px 0; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.upc-artifacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upc-safe-fixes { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; padding: 13px 14px; border: 1px solid var(--bfc-success-line); border-radius: var(--radius-md); background: var(--bfc-success-bg); }
.upc-safe-fixes div { display: grid; gap: 3px; }
.upc-safe-fixes b { color: var(--bfc-success-text); }
.upc-safe-fixes span { color: var(--bfc-muted); font-size: 12.5px; }
.upc-safe-fixes .btn { flex: 0 0 auto; }
.upc-issue-list { display: grid; gap: 10px; margin-top: 12px; max-height: 720px; overflow: auto; }
.upc-issue { border: 1px solid var(--bfc-line); border-left: 4px solid var(--bfc-yellow); border-radius: var(--radius-md); padding: 12px; background: var(--bfc-soft); }
.upc-issue.upc-status-blocked, .upc-issue.upc-status-unsupported { border-left-color: var(--bfc-danger-text); }
.upc-issue header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.upc-row-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 6px; margin: 8px 0; }
.upc-row-values div { display: flex; align-items: baseline; gap: 5px; min-width: 0; font-size: 12px; }
.upc-row-values span { color: var(--bfc-muted); font-size: 10px; font-weight: 700; }
.upc-row-values b, .upc-row-values strong { overflow-wrap: anywhere; }
.upc-row-values strong { color: var(--bfc-success-text); }
.upc-row-values em { color: var(--bfc-muted); font-style: normal; }
.upc-issue-reason { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--bfc-line); }
.upc-issue-reason div { flex: 1; min-width: 0; }
.upc-issue-reason p { margin: 3px 0 0; color: var(--bfc-muted); }
.upc-severity { border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.upc-severity.upc-yellow { background: var(--bfc-warn-bg); color: var(--bfc-warn-text); }
.upc-severity.upc-red, .upc-severity.upc-unsupported { background: var(--bfc-danger-bg); color: var(--bfc-danger-text); }
.upc-inline-editor { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.3fr); gap: 10px; align-items: end; margin: 10px 0; padding: 12px; border: 1px solid var(--bfc-indigo); border-radius: var(--radius-md); background: var(--bfc-surface); }
.upc-inline-editor label { display: grid; gap: 5px; color: var(--bfc-muted); font-size: 12px; font-weight: 800; }
.upc-inline-editor select, .upc-inline-editor input { width: 100%; }
.upc-inline-editor .toolbar { grid-column: 1 / -1; }
.upc-confirm { margin-top: 14px; }
@media (max-width: 760px) { .upc-issue-reason { flex-wrap: wrap; } .upc-inline-editor { grid-template-columns: 1fr; } .upc-safe-fixes { align-items: stretch; flex-direction: column; } }
