:root {
  --workflow-progress-bg: #eef2ff;
  --workflow-progress-fill: #4f46e5;
  --workflow-status-success: #059669;
  --workflow-status-pending: #d97706;
  --workflow-status-danger: #dc2626;
  --workflow-status-neutral: #4b5563;
  --workflow-border: #e5e7eb;
  --workflow-muted: #6b7280;
}

body {
  background: #f3f4f6;
  color: #111827;
  font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  margin: 0;
}

.workflow-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  padding-top: calc(1.5rem + 72px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.workflow-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}

.workflow-headline {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--workflow-text);
}

.workflow-headline-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.workflow-headline-row .workflow-headline {
  margin: 0.35rem 0 0;
}

.workflow-guide-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.workflow-guide-link:hover {
  text-decoration: underline;
}

.panel-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.panel-subtitle {
  margin: 0.25rem 0 0;
  color: var(--workflow-muted);
  font-size: 0.9rem;
}


.input-format-note {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--workflow-border);
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
  color: var(--workflow-muted);
}

.input-format-note p {
  margin: 0.25rem 0;
}

.input-format-note strong {
  color: var(--workflow-text);
  font-weight: 600;
}

.note-details {
  margin-top: 0.35rem;
  color: var(--workflow-muted);
  font-size: 0.9rem;
}

.note-details summary {
  cursor: pointer;
  color: var(--workflow-text);
  font-weight: 600;
  list-style: none;
}

.note-details summary::-webkit-details-marker {
  display: none;
}

.note-details summary::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.35rem;
  color: var(--workflow-muted);
}

.note-details[open] summary::after {
  transform: rotate(180deg);
  display: inline-block;
}

.note-details p {
  margin-top: 0.25rem;
  color: var(--workflow-muted);
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.panel-actions.demo-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 240px;
  margin-top: 4.4em;
  align-self: flex-start;
}

.demo-action-row {
  display: flex;
  gap: 0.4rem;
}

.demo-tip-box {
  width: 100%;
  max-width: 260px;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--workflow-border);
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--workflow-muted);
  text-align: left;
}

.demo-select {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--workflow-muted);
}

.demo-select select {
  min-width: 170px;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--workflow-border);
  background: #fff;
  font-size: 0.85rem;
  color: var(--workflow-text);
}

.demo-progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 220px;
  font-size: 0.8rem;
  color: var(--workflow-muted);
}

.demo-progress[hidden] {
  display: none;
}

.demo-progress-text {
  text-align: right;
}

.demo-progress .progress-bar {
  height: 0.35rem;
}

.host-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--workflow-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--workflow-border);
  background: #fff;
}

.host-filter[hidden],
#workflow-release-ssh[hidden] {
  display: none !important;
}


.host-filter input {
  accent-color: var(--workflow-primary);
}

.status-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--workflow-border);
  background: #fff;
  font-size: 0.8rem;
  color: var(--workflow-muted);
}

.status-filter:focus-within {
  border-color: #7b86f6;
  box-shadow: 0 0 0 2px rgba(123, 134, 246, 0.2);
}

.status-filter select {
  border: 0;
  background: transparent;
  color: var(--workflow-text);
  font-size: 0.85rem;
  height: 100%;
  line-height: 34px;
  padding: 0 0.2rem;
  outline: none;
}

.status-filter select:focus {
  outline: none;
  box-shadow: none;
}

.status-filter select:focus-visible {
  outline: none;
  box-shadow: none;
}

.status-filter input {
  border: 0;
  background: transparent;
  color: var(--workflow-text);
  font-size: 0.85rem;
  height: 100%;
  line-height: 34px;
  padding: 0 0.2rem;
  outline: none;
  width: 140px;
}

.status-filter input:focus,
.status-filter input:focus-visible {
  outline: none;
  box-shadow: none;
}

.status-filter input::placeholder {
  color: var(--workflow-muted);
}

.workflow-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
}

.form-field[hidden] {
  display: none !important;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.form-field-sub {
  margin-top: -0.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--workflow-border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  box-sizing: border-box;
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled,
.form-input:disabled {
  background: #f7f9fc;
  color: #c4c9d3;
  border-color: #e6eaf1;
  cursor: not-allowed;
}

.form-field input:disabled::placeholder,
.form-field textarea:disabled::placeholder,
.form-input:disabled::placeholder {
  color: #d2d6de;
}

#collector-graphdta-topm::placeholder {
  color: #c9cfd9;
}

#collector-graphdta-topm:disabled::placeholder {
  color: #d2d6de;
}

.form-field:has(input:disabled),
.form-field:has(select:disabled),
.form-field:has(textarea:disabled) {
  color: #b3b9c3;
}

.form-field:has(input:disabled) .field-hint,
.form-field:has(select:disabled) .field-hint,
.form-field:has(textarea:disabled) .field-hint {
  color: #c3c8d1;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--workflow-border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  box-sizing: border-box;
  background: #fff;
}

.form-field .compact-file-input {
  width: auto;
  max-width: 16rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.sequence-field textarea {
  margin-top: -0.4rem;
}

.form-fieldset {
  border: 1px solid var(--workflow-border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.form-fieldset[hidden] {
  display: none !important;
}

.form-fieldset legend {
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  background: #eef2ff;
  border-radius: 999px;
  color: #4338ca;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-inputs input {
  flex: 1;
}

.range-sep {
  color: var(--workflow-muted);
  font-size: 0.85rem;
}

.filter-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-switches .form-field {
  flex: 1 1 260px;
  min-width: 240px;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--workflow-text);
  width: auto;
  max-width: 100%;
}

.field-label-text {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e2e8f0;
  transition: 0.2s ease;
  border-radius: 999px;
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.switch input:checked + .switch-slider {
  background-color: #4f46e5;
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  color: var(--workflow-muted);
  font-size: 0.85rem;
}

.msa-prefetch-provider {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.msa-prefetch-select {
  border: 1px solid var(--workflow-border);
  border-radius: 0.6rem;
  padding: 0.2rem 1.6rem 0.2rem 0.45rem;
  font-size: 0.75rem;
  background: #fff;
  color: var(--workflow-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.5rem;
}

.form-field .inline-select {
  padding: 0.1rem 1.2rem 0.1rem 0.45rem;
  border-radius: 0.6rem;
  border: 1px solid var(--workflow-border);
  background: #fff;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--workflow-text);
  width: 3.4rem;
  min-width: 3.4rem;
  max-width: 3.4rem;
  height: 1.5rem;
  flex: 0 0 auto;
  box-sizing: border-box;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.5rem;
}

.form-field .inline-select option {
  font-size: 0.75rem;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  border: 1px solid var(--workflow-border);
  background: #fff;
  color: var(--workflow-text);
  cursor: pointer;
  padding: 0;
}

.icon-btn svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.icon-btn:hover {
  border-color: #e2e8f0;
  color: #6b7280;
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--workflow-border);
  cursor: pointer;
  font-size: 0.9rem;
}

.compound-source-toggle {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.radio-pill input {
  accent-color: var(--workflow-progress-fill);
}

.compound-input input[type='file'],
.compound-input input[type='url'] {
  width: auto;
  max-width: 360px;
  display: inline-block;
}

.field-hint {
  margin: 0.25rem 0 0;
  color: var(--workflow-muted);
  font-size: 0.85rem;
}

.field-tip {
  position: relative;
  display: inline-flex;
  margin-top: 0.35rem;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.field-tip-trigger {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.35;
  text-align: left;
  max-width: 100%;
  white-space: normal;
}

.field-tip-trigger:focus {
  outline: 2px solid rgba(234, 179, 8, 0.5);
  outline-offset: 2px;
}

.field-tip-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 30;
  min-width: 260px;
  max-width: 520px;
  width: min(520px, 90vw);
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(148, 99, 2, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.field-tip-panel p {
  margin: 0.25rem 0;
}

.field-tip:hover .field-tip-panel,
.field-tip:focus-within .field-tip-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--workflow-border);
}

.payment-channel-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--workflow-muted);
  font-weight: 600;
}

.payment-channel-inline select {
  min-width: 140;
  width: auto;
}

.payment-balance {
  font-weight: 600;
  color: var(--workflow-muted);
}

.payment-balance[hidden] {
  display: none !important;
}

.payment-balance.is-insufficient {
  color: #dc2626;
}

.table-actions-grid {
  display: block;
}

.table-actions-row {
  display: block;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}

.table-actions-row:last-child {
  margin-bottom: 0;
}

.table-actions-row .secondary-btn.small {
  margin-right: 0.14rem;
}

.table-actions-row .secondary-btn.small:last-child {
  margin-right: 0;
}

.primary-btn,
.secondary-btn,
.logout-btn {
  border: none;
  border-radius: 0.6rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-btn {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  color: #fff;
}

.submit-btn {
  padding: 0.65rem 1.45rem;
  font-size: 1rem;
  box-shadow: 0 9px 18px rgba(79, 70, 229, 0.2);
}

.primary-btn:hover {
  filter: none;
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
}

.secondary-btn:hover {
  background: #f3f4f6;
}

.secondary-btn {
  background: #fff;
  border: 1px solid var(--workflow-border);
  color: #111827;
}


.secondary-btn.small,
.primary-btn.small,
.logout-btn.small {
  padding: 0.34rem 0.75rem;
  font-size: 0.88rem;
}

.logout-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-left: 0.75rem;
}

.workflow-message {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.workflow-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.workflow-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.workflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}

.admin-tools {
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--workflow-border);
  border-radius: 0.75rem;
  background: #f8fafc;
  display: none;
}

.admin-tools-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--workflow-muted);
  margin-bottom: 0.6rem;
}

.admin-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #f6f7fb;
  font-size: 12px;
  color: #6b7280;
}

.admin-inline-toggle select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  font-size: 12px;
  color: #111827;
}

.workflow-table th,
.workflow-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--workflow-border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.workflow-table th {
  color: var(--workflow-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
}


.workflow-table th:nth-child(1),
.workflow-table td:nth-child(1) {
  width: 24%;
}

.workflow-table th:nth-child(2),
.workflow-table td:nth-child(2) {
  width: 9%;
}

.workflow-table th:nth-child(3),
.workflow-table td:nth-child(3) {
  width: 7%;
}

.workflow-table th:nth-child(4),
.workflow-table td:nth-child(4) {
  width: 7%;
}

.workflow-table th:nth-child(5),
.workflow-table td:nth-child(5) {
  width: 3%;
}

.workflow-table th:nth-child(6),
.workflow-table td:nth-child(6) {
  width: 5%;
}

.workflow-table th:nth-child(7),
.workflow-table td:nth-child(7) {
  width: 7%;
}

.workflow-table th:nth-child(8),
.workflow-table td:nth-child(8) {
  width: 5%;
}

.workflow-table th:nth-child(9),
.workflow-table td:nth-child(9) {
  width: 5%;
}

.workflow-table th:nth-child(10),
.workflow-table td:nth-child(10) {
  width: 28%;
}


.workflow-table tr:hover {
  background: #f9fafb;
}

.workflow-table tr.is-selected {
  background: #eef2ff;
}

.empty-row td {
  text-align: center;
  color: var(--workflow-muted);
}

.stage-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.workflow-table td .status-badge {
  margin-top: 0.4rem;
}

.stage-pill {
  background: #eef2ff;
  color: #4f46e5;
  white-space: nowrap;
}

.status-badge[data-status='COMPLETED'] {
  background: #d1fae5;
  color: var(--workflow-status-success);
}

.status-badge[data-status='RUNNING'],
.status-badge[data-status='SUBMITTED'],
.status-badge[data-status='QUEUED'] {
  background: #fffbeb;
  color: var(--workflow-status-pending);
}

.status-badge[data-status='FAILED'],
.status-badge[data-status='CANCELLED'],
.status-badge[data-status='OUT_OF_MEMORY'] {
  background: #fee2e2;
  color: var(--workflow-status-danger);
}

.status-badge[data-status='UNKNOWN'] {
  background: #e5e7eb;
  color: var(--workflow-status-neutral);
}

.progress-bar {
  height: 0.45rem;
  background: var(--workflow-progress-bg);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--workflow-progress-fill);
}

.progress-meta {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--workflow-text);
}

.workflow-table td:nth-child(8) {
  white-space: nowrap;
}

.time-date,
.time-clock {
  display: block;
  white-space: nowrap;
}

.time-clock {
  color: var(--workflow-muted);
}

.sync-indicator {
  font-size: 0.85rem;
  color: var(--workflow-muted);
}


.workflow-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--workflow-border);
  background: rgba(249, 250, 251, 0.7);
  border-radius: 0.75rem;
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pagination-size {
  order: 1;
}

.pagination-info {
  order: 2;
}

.pagination-nav {
  order: 3;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--workflow-muted);
  text-align: center;
  white-space: nowrap;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--workflow-muted);
  white-space: nowrap;
}

.pagination-info input {
  width: 1.4rem;
  border-radius: 0.5rem;
  border: 1px solid var(--workflow-border);
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  background: #fff;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.pagination-info input::-webkit-outer-spin-button,
.pagination-info input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination-size select {
  border-radius: 0.5rem;
  border: 1px solid var(--workflow-border);
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  background: #fff;
}

@media (max-width: 720px) {
  .workflow-pagination {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .pagination-info {
    white-space: nowrap;
  }
}

.detail-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
}

.detail-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--workflow-muted);
}

.detail-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-content: flex-start;
}

.detail-tags .tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-section {
  border-top: 1px solid var(--workflow-border);
  padding-top: 1rem;
}

.detail-section + .detail-section {
  margin-top: 1rem;
}

.detail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-code {
  background: #111827;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow: auto;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85rem;
}

.artifact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artifact-list li {
  border: 1px solid var(--workflow-border);
  border-radius: 0.65rem;
  padding: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.artifact-list li .meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.artifact-list li .meta span:first-child {
  font-weight: 600;
  color: #111827;
}

.artifact-list li button {
  white-space: nowrap;
}

.artifact-list li.empty {
  justify-content: center;
  color: var(--workflow-muted);
  border-style: dashed;
}

.workflow-info-panel {
  gap: 1.5rem;
}

.workflow-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
}

.workflow-steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0.5rem 0 1rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--workflow-border);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: #374151;
  line-height: 1.5;
}

.info-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #374151;
}

.info-card ul li + li {
  margin-top: 0.25rem;
}

.info-card-focus {
  border-color: #c7d2fe;
}

.info-card-stats {
  gap: 0.75rem;
}

.info-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}

.info-stats div {
  background: #f9fafb;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--workflow-border);
}

.info-stats dt {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--workflow-muted);
}

.info-stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.info-note {
  font-size: 0.85rem;
  color: var(--workflow-muted);
}

.info-list {
  padding-left: 1rem;
  color: #374151;
}

.info-list li::marker {
  color: #6366f1;
}

.workflow-step {
  position: relative;
}

.step-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workflow-step h3 {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.workflow-step .info-list {
  padding-left: 1.1rem;
}

@media (max-width: 960px) {
  .workflow-main {
    padding: 1rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .panel-actions.demo-actions {
    align-items: stretch;
  }

  .demo-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-tip-box {
    max-width: 100%;
  }

  .demo-select {
    align-items: flex-start;
    width: 100%;
  }

  .demo-select select {
    width: 100%;
  }

  .demo-progress {
    min-width: 0;
    width: 100%;
  }

  .demo-progress-text {
    text-align: left;
  }

  .detail-columns {
    flex-direction: column;
  }
}

@media (min-width: 960px) {
  .info-card-focus {
    grid-column: span 2;
  }
}
.job-target {
  margin-top: 0.25rem;
  color: var(--workflow-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.job-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-name-text {
  font-weight: 550;
}

.job-name-input {
  width: 100%;
  max-width: 220px;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #d6dbe5;
  font-size: 0.9rem;
  color: #1f2937;
  line-height: 1.3;
  resize: none;
}

.job-name-input:focus {
  outline: none;
  border-color: #7b86f6;
  box-shadow: 0 0 0 2px rgba(123, 134, 246, 0.2);
}

.job-id {
  font-size: 0.75rem;
  color: var(--workflow-muted);
  letter-spacing: 0.02em;
}

.job-id-copy {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.job-id-copy:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.copy-hint {
  position: fixed;
  z-index: 2000;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.copy-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, -14px);
}

.job-disk {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: var(--workflow-muted);
  white-space: nowrap;
}

.job-uid {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: var(--workflow-muted);
  white-space: nowrap;
}

.job-name-text {
  cursor: pointer;
}

.job-name-text:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.workflow-app .topbar-center {
  position: absolute;
  left: 43.5%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.workflow-app .zone-pill-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.workflow-app .zone-pill-link:hover {
  text-decoration: none;
}

.workflow-app .topbar-account-link {
  color: inherit;
  text-decoration: none;
}

.workflow-app .topbar-account-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
