:root {
  --uav-primary: #2563eb;
  --uav-primary-dark: #1d4ed8;
  --uav-accent: #0891b2;
  --uav-success: #059669;
  --uav-warning: #d97706;
  --uav-danger: #dc2626;
  --uav-ink: #172033;
  --uav-muted: #64748b;
  --uav-border: #dce5f0;
  --uav-surface: #ffffff;
  --uav-canvas: #f3f7fb;
}

.uav-workbench-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(7, 20, 42, .46);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .22s ease;
}

.uav-workbench-overlay.is-visible { opacity: 1; }

.uav-workbench {
  position: fixed;
  inset: 4.5vh 2.5vw;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  width: min(1380px, 95vw);
  height: min(900px, 91vh);
  margin: auto;
  overflow: hidden;
  color: var(--uav-ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--uav-canvas);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(4, 19, 45, .32);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.75,.3,1);
}

.uav-workbench.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.uav-workbench * { box-sizing: border-box; }

.uav-workbench__header {
  flex: 0 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% -20%, rgba(34,211,238,.42), transparent 31%),
    linear-gradient(125deg, #173b78 0%, #2458a8 55%, #087e98 100%);
}

.uav-workbench__identity,
.uav-workbench__header-actions,
.uav-workbench__header-status,
.uav-step__title,
.uav-card__title,
.uav-inline,
.uav-action-row {
  display: flex;
  align-items: center;
}

.uav-workbench__identity { gap: 14px; min-width: 0; }
.uav-workbench__identity-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  font-size: 21px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.uav-workbench__eyebrow {
  margin-bottom: 3px;
  font-size: var(--ui-note-size, 13px);
  font-weight: 700;
  letter-spacing: .13em;
  color: #bae6fd;
}

.uav-workbench__header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.uav-workbench__header p {
  margin: 5px 0 0;
  font-size: var(--ui-note-size, 13px);
  color: rgba(255,255,255,.8);
}

.uav-workbench__header-actions { gap: 9px; flex: 0 0 auto; }
.uav-workbench__header-status {
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: var(--ui-note-size, 13px);
  background: rgba(9, 29, 62, .28);
}
.uav-workbench__header-status i { color: #67e8f9; }

.uav-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.uav-icon-button:hover { background: rgba(255,255,255,.23); transform: translateY(-1px); }

.uav-workbench__stepper {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--uav-border);
}

.uav-step {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 10px;
  color: var(--ui-muted, #59697a);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.uav-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  right: -11%;
  width: 22%;
  height: 2px;
  background: #dce5f0;
}
.uav-step:disabled { cursor: not-allowed; opacity: .62; }
.uav-step__number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 2px solid #dce5f0;
  border-radius: 50%;
  font-size: var(--ui-note-size, 13px);
  font-weight: 800;
  background: #f3f6fa;
}
.uav-step__copy { text-align: left; }
.uav-step__copy b { display: block; font-size: var(--ui-note-size, 13px); color: #64748b; }
.uav-step__copy small { display: block; margin-top: 2px; font-size: var(--ui-note-size, 13px); }
.uav-step.is-active { color: var(--uav-primary); }
.uav-step.is-active::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--uav-primary), var(--uav-accent));
}
.uav-step.is-active .uav-step__number,
.uav-step.is-complete .uav-step__number {
  color: #fff;
  border-color: var(--uav-primary);
  background: var(--uav-primary);
  box-shadow: 0 0 0 4px #dbeafe;
}
.uav-step.is-active .uav-step__copy b,
.uav-step.is-complete .uav-step__copy b { color: #1d4ed8; }
.uav-step.is-complete:not(:last-child)::after { background: #60a5fa; }

.uav-workbench__body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.uav-workbench__aside {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px;
  background: #f8fafc;
  border-right: 1px solid var(--uav-border);
}

.uav-aside-card {
  margin-bottom: 13px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--uav-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(22, 48, 82, .035);
}
.uav-aside-card h3 {
  margin: 0 0 11px;
  font-size: var(--ui-note-size, 13px);
  color: #334155;
}
.uav-aside-card h3 i { width: 20px; color: var(--uav-primary); }
.uav-project-name { margin: 0 0 7px; font-size: var(--ui-note-size, 13px); font-weight: 700; line-height: 1.5; }
.uav-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: var(--ui-note-size, 13px);
  color: var(--uav-muted);
}
.uav-meta-line b { color: #334155; font-weight: 650; text-align: right; }

.uav-device-list { display: grid; gap: 8px; }
.uav-device {
  display: grid;
  grid-template-columns: 29px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 9px;
  background: #f8fafc;
}
.uav-device__icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: #475569;
  background: #e8eef6;
}
.uav-device b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-device small { display: block; margin-top: 2px; font-size: var(--ui-note-size, 13px); color: var(--ui-muted, #59697a); }
.uav-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.uav-status-dot.is-ready { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }

.uav-pipeline { display: grid; gap: 0; }
.uav-pipeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 8px;
  min-height: 40px;
  color: #64748b;
  font-size: var(--ui-note-size, 13px);
}
.uav-pipeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 1px;
  width: 1px;
  background: #dce5f0;
}
.uav-pipeline__item i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  z-index: 1;
  border-radius: 50%;
  color: var(--uav-primary);
  background: #dbeafe;
}
.uav-pipeline__item b { display: block; margin-bottom: 2px; color: #334155; font-size: var(--ui-note-size, 13px); }

.uav-workbench__main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.uav-workbench__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 28px;
}
.uav-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.uav-page-heading h3 { margin: 0; font-size: 18px; color: #172033; }
.uav-page-heading p { margin: 5px 0 0; font-size: var(--ui-note-size, 13px); color: var(--uav-muted); }
.uav-badge {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: var(--ui-note-size, 13px);
  font-weight: 700;
}
.uav-badge--warning { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.uav-badge--success { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }

.uav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.uav-grid--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.uav-span-2 { grid-column: 1 / -1; }
.uav-card {
  overflow: hidden;
  background: var(--uav-surface);
  border: 1px solid var(--uav-border);
  border-radius: 13px;
  box-shadow: 0 3px 13px rgba(31, 57, 91, .045);
}
.uav-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  padding: 12px 15px;
  border-bottom: 1px solid #e8eef5;
  background: linear-gradient(135deg, #f8fbff, #f1f7fd);
}
.uav-card__title { gap: 9px; font-size: var(--ui-note-size, 13px); font-weight: 700; }
.uav-card__title i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--uav-primary);
  background: #dbeafe;
}
.uav-card__body { padding: 15px; }

.uav-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 14px; }
.uav-form-field--full { grid-column: 1 / -1; }
.uav-form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #334155;
  font-size: var(--ui-note-size, 13px);
  font-weight: 650;
}
.uav-required { color: var(--uav-danger); }
.uav-form-field input,
.uav-form-field select,
.uav-form-field textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 11px;
  color: #1e293b;
  font: inherit;
  font-size: var(--ui-note-size, 13px);
  background: #fff;
  border: 1px solid #cfdbe8;
  border-radius: 8px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.uav-form-field textarea { min-height: 70px; resize: vertical; }
.uav-form-field input:focus,
.uav-form-field select:focus,
.uav-form-field textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.uav-form-field small { display: block; margin-top: 5px; color: var(--ui-muted, #59697a); font-size: var(--ui-note-size, 13px); line-height: 1.5; }

.uav-choice-list { display: grid; gap: 9px; }
.uav-choice {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.uav-choice input { margin: 2px 0 0; accent-color: var(--uav-primary); }
.uav-choice b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-choice small { display: block; margin-top: 3px; color: var(--uav-muted); font-size: var(--ui-note-size, 13px); line-height: 1.45; }
.uav-choice:has(input:checked) { border-color: #93c5fd; background: #eff6ff; }

.uav-parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.uav-parameter-card {
  --parameter-color: #2563eb;
  --parameter-soft: #eff6ff;
  position: relative;
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 78px;
  padding: 11px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.uav-parameter-card:hover:not(.is-disabled) { transform: translateY(-1px); border-color: var(--parameter-color); }
.uav-parameter-card input { margin: 0; accent-color: var(--parameter-color); }
.uav-parameter-card__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  color: var(--parameter-color);
  background: var(--parameter-soft);
}
.uav-parameter-card__copy b { display: block; color: #273449; font-size: var(--ui-note-size, 13px); }
.uav-parameter-card__copy small { display: block; margin-top: 4px; color: #64748b; font-size: var(--ui-note-size, 13px); line-height: 1.45; }
.uav-parameter-card__state { align-self: start; padding: 3px 6px; border-radius: 6px; color: var(--parameter-color); background: var(--parameter-soft); font-size: var(--ui-note-size, 13px); font-weight: 700; }
.uav-parameter-card.is-selected,
.uav-parameter-card:has(input:checked) { border: 2px solid var(--parameter-color); box-shadow: 0 0 0 3px var(--parameter-soft); }
.uav-parameter-card.is-disabled { cursor: not-allowed; opacity: .58; background: #f8fafc; }
.uav-parameter-card--green { --parameter-color: #059669; --parameter-soft: #d1fae5; }
.uav-parameter-card--blue { --parameter-color: #2563eb; --parameter-soft: #dbeafe; }
.uav-parameter-card--amber { --parameter-color: #d97706; --parameter-soft: #fef3c7; }
.uav-parameter-card--lime { --parameter-color: #65a30d; --parameter-soft: #ecfccb; }
.uav-parameter-card--cyan { --parameter-color: #0891b2; --parameter-soft: #cffafe; }
.uav-parameter-card--violet { --parameter-color: #7c3aed; --parameter-soft: #ede9fe; }

.uav-callout {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr);
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #155e75;
  background: #ecfeff;
}
.uav-callout--warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.uav-callout--success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.uav-callout > i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: inherit;
  background: rgba(255,255,255,.68);
}
.uav-callout b { display: block; margin-bottom: 3px; font-size: var(--ui-note-size, 13px); }
.uav-callout p { margin: 0; font-size: var(--ui-note-size, 13px); line-height: 1.6; }

.uav-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.uav-mode-card {
  position: relative;
  min-height: 132px;
  padding: 14px;
  text-align: left;
  color: #334155;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.uav-mode-card:hover:not(:disabled) { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 7px 18px rgba(37,99,235,.09); }
.uav-mode-card.is-active { border: 2px solid var(--uav-primary); background: #f5f9ff; box-shadow: 0 0 0 3px #dbeafe; }
.uav-mode-card:disabled { cursor: not-allowed; opacity: .66; background: #f8fafc; }
.uav-mode-card > i { margin-bottom: 10px; font-size: 20px; color: var(--uav-primary); }
.uav-mode-card b { display: block; margin-bottom: 5px; font-size: var(--ui-note-size, 13px); }
.uav-mode-card p { margin: 0; color: var(--uav-muted); font-size: var(--ui-note-size, 13px); line-height: 1.55; }
.uav-mode-card span { position: absolute; top: 9px; right: 9px; padding: 3px 6px; border-radius: 6px; color: #1d4ed8; background: #dbeafe; font-size: var(--ui-note-size, 13px); font-weight: 700; }

.uav-gateway-status {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
}
.uav-gateway-status.is-online { border-color: #a7f3d0; background: #ecfdf5; }
.uav-gateway-status__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #c2410c;
  background: #ffedd5;
}
.uav-gateway-status.is-online .uav-gateway-status__icon { color: #047857; background: #d1fae5; }
.uav-gateway-status b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-gateway-status small { display: block; margin-top: 3px; color: #64748b; font-size: var(--ui-note-size, 13px); }
.uav-gateway-status__pill { padding: 4px 7px; border-radius: 999px; color: #9a3412; background: #ffedd5; font-size: var(--ui-note-size, 13px); font-weight: 700; }
.uav-gateway-status.is-online .uav-gateway-status__pill { color: #047857; background: #d1fae5; }
.uav-gateway-flow { display: grid; gap: 7px; margin-top: 12px; }
.uav-gateway-flow__node {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}
.uav-gateway-flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: -8px;
  z-index: 2;
  height: 8px;
  border-left: 1px dashed #93a8c2;
}
.uav-gateway-flow__node > i { display: grid; place-items: center; width: 31px; height: 31px; color: #1d4ed8; border-radius: 8px; background: #dbeafe; }
.uav-gateway-flow__node b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-gateway-flow__node small { display: block; margin-top: 3px; color: #64748b; font-size: var(--ui-note-size, 13px); }

.uav-dropzone {
  padding: 27px 18px;
  text-align: center;
  border: 2px dashed #a9bfd8;
  border-radius: 12px;
  background: #f8fbff;
  transition: border-color .18s ease, background .18s ease;
}
.uav-dropzone.is-dragging { border-color: var(--uav-primary); background: #eff6ff; }
.uav-dropzone__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 11px;
  color: #fff;
  border-radius: 14px;
  font-size: 19px;
  background: linear-gradient(135deg, var(--uav-primary), var(--uav-accent));
}
.uav-dropzone h4 { margin: 0 0 5px; font-size: var(--ui-note-size, 13px); }
.uav-dropzone p { margin: 0 0 13px; color: var(--uav-muted); font-size: var(--ui-note-size, 13px); }

.uav-file-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.uav-metric { padding: 10px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.uav-metric small { display: block; color: var(--uav-muted); font-size: var(--ui-note-size, 13px); }
.uav-metric b { display: block; margin-top: 4px; color: #1e3a8a; font-size: var(--ui-label-size, 14px); }
.uav-file-list { max-height: 180px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 9px; }
.uav-file-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: var(--ui-note-size, 13px);
  border-bottom: 1px solid #eef2f7;
}
.uav-file-row:last-child { border-bottom: 0; }
.uav-file-row i { color: var(--uav-primary); }
.uav-file-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uav-file-row small { color: var(--ui-muted, #59697a); }

.uav-qc-list { display: grid; gap: 8px; }
.uav-qc-item {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}
.uav-qc-item > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.uav-qc-item.is-pass > i { color: #047857; background: #d1fae5; }
.uav-qc-item.is-warning > i { color: #b45309; background: #fef3c7; }
.uav-qc-item.is-pending > i { color: #475569; background: #e2e8f0; }
.uav-qc-item b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-qc-item small { display: block; margin-top: 3px; color: var(--uav-muted); font-size: var(--ui-note-size, 13px); }
.uav-qc-state { padding: 4px 7px; border-radius: 999px; font-size: var(--ui-note-size, 13px); font-weight: 700; }
.is-pass .uav-qc-state { color: #047857; background: #d1fae5; }
.is-warning .uav-qc-state { color: #92400e; background: #fef3c7; }
.is-pending .uav-qc-state { color: #475569; background: #e2e8f0; }

.uav-process-flow { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.uav-process-node {
  position: relative;
  min-height: 99px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #f8fafc;
}
.uav-process-node:not(:last-child)::after { content: "\f054"; position: absolute; right: -8px; top: 42px; z-index: 2; color: var(--ui-muted, #59697a); font-family: "Font Awesome 6 Free"; font-size: var(--ui-note-size, 13px); font-weight: 900; }
.uav-process-node i { display: block; margin-bottom: 9px; color: var(--uav-primary); font-size: 17px; }
.uav-process-node b { display: block; font-size: var(--ui-note-size, 13px); }
.uav-process-node small { display: block; margin-top: 4px; color: var(--ui-muted, #59697a); font-size: var(--ui-note-size, 13px); line-height: 1.4; }

.uav-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 34px;
  text-align: center;
  color: var(--uav-muted);
  border: 1px dashed #b9c9dc;
  border-radius: 12px;
  background: #f8fafc;
}
.uav-empty i { color: #93a8c2; font-size: 38px; }
.uav-empty h4 { margin: 13px 0 6px; color: #334155; font-size: var(--ui-note-size, 13px); }
.uav-empty p { max-width: 430px; margin: 0; font-size: var(--ui-note-size, 13px); line-height: 1.65; }

.uav-workbench__footer {
  flex: 0 0 auto;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--uav-border);
  box-shadow: 0 -7px 18px rgba(30,58,95,.045);
}
.uav-workbench__footer-note { font-size: var(--ui-note-size, 13px); color: var(--uav-muted); }
.uav-action-row { gap: 9px; }
.uav-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #475569;
  background: #fff;
  font: inherit;
  font-size: var(--ui-note-size, 13px);
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.uav-btn:hover:not(:disabled) { transform: translateY(-1px); background: #f8fafc; }
.uav-btn--primary { color: #fff; border-color: var(--uav-primary); background: linear-gradient(135deg, var(--uav-primary), var(--uav-primary-dark)); box-shadow: 0 5px 13px rgba(37,99,235,.2); }
.uav-btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
.uav-btn--success { color: #fff; border-color: #059669; background: linear-gradient(135deg, #10b981, #047857); }
.uav-btn:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }

.uav-help-dialog {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8,22,48,.48);
}
.uav-help-dialog__card {
  width: min(720px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(4,19,45,.28);
}
.uav-help-dialog__header { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; color: #fff; background: linear-gradient(135deg,#1e3a8a,#0e7490); }
.uav-help-dialog__header h3 { margin: 0; font-size: var(--ui-body-size, 16px); }
.uav-help-dialog__body { padding: 19px 20px; color: #475569; font-size: var(--ui-note-size, 13px); line-height: 1.75; }
.uav-help-dialog__body h4 { margin: 14px 0 5px; color: #1e293b; font-size: var(--ui-note-size, 13px); }
.uav-help-dialog__body h4:first-child { margin-top: 0; }
.uav-help-dialog__body ul { margin: 5px 0; padding-left: 19px; }

@media (max-width: 980px) {
  .uav-workbench { inset: 2vh 1.5vw; width: 97vw; height: 96vh; }
  .uav-workbench__body { grid-template-columns: 220px minmax(0,1fr); }
  .uav-mode-grid, .uav-process-flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .uav-step__copy small { display: none; }
}

@media (max-width: 720px) {
  .uav-workbench { inset: 0; width: 100vw; height: 100vh; border-radius: 0; }
  .uav-workbench__header { min-height: 72px; padding: 12px 14px; }
  .uav-workbench__identity-icon, .uav-workbench__header-status { display: none; }
  .uav-workbench__header h2 { font-size: 17px; }
  .uav-workbench__header p { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .uav-workbench__stepper { padding: 0 6px; }
  .uav-step { min-height: 58px; padding: 8px 2px; gap: 4px; }
  .uav-step__number { width: 27px; height: 27px; }
  .uav-step__copy b { font-size: var(--ui-note-size, 13px); }
  .uav-step__copy small, .uav-step:not(:last-child)::after { display: none; }
  .uav-workbench__body { display: block; }
  .uav-workbench__aside { display: none; }
  .uav-workbench__scroll { padding: 14px; }
  .uav-grid, .uav-grid--wide-left, .uav-form-grid { grid-template-columns: 1fr; }
  .uav-span-2, .uav-form-field--full { grid-column: auto; }
  .uav-mode-grid { grid-template-columns: 1fr; }
  .uav-parameter-grid { grid-template-columns: 1fr; }
  .uav-file-summary { grid-template-columns: repeat(2, 1fr); }
  .uav-workbench__footer-note { display: none; }
  .uav-workbench__footer { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .uav-workbench, .uav-workbench-overlay, .uav-btn, .uav-mode-card { transition: none; }
}
