.typography-workflow-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.typography-workflow-page > h3 { margin: -18px 0 12px; letter-spacing: -.6px; }
.typography-workflow-page #workflowDetailContent { min-width: 0; }
.typography-workflow-page .workflow-detail-hero { min-height: 96px; }
.typography-workflow-page .workflow-hero-icon { background: var(--blue-soft); }
:root[data-theme="dark"] .typography-workflow-page .workflow-hero-icon img { filter: brightness(1.35); }
.typography-workflow-page .workflow-overview-settings {
  grid-template-rows: auto auto 1fr auto;
  min-height: 344px;
}
.typography-workflow-page .workflow-overview-settings > button { grid-row: 4; }
.typography-workflow-page .workflow-overview-settings:not(:has([data-submit-workflow-review])) { grid-template-rows: auto; min-height: 0; }
.typography-run-panel { display: flex; flex-direction: column; min-height: 449px; }
.typography-run-form {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: 14px;
  min-width: 0;
}
.typography-font-row, .typography-method-row { display: grid; gap: 12px; }
.typography-font-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.typography-method-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.typography-run-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.typography-run-form :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-strong);
  font: 600 12px/16px Inter, sans-serif;
}
.typography-run-form input::placeholder { color: var(--muted); opacity: 1; }
.typography-method-row .secondary-button { min-height: 42px; }
.typography-run-form .form-status:empty { display: none; }
.typography-run-form .form-status { margin: 8px 0 0; color: var(--red); }
.typography-workflow-page .workflow-overview-main .workflow-stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 196px));
  overflow: visible;
  padding: 0;
}
.typography-workflow-page .workflow-overview-main .workflow-detail-stage { align-content: center; background: var(--surface-strong); }

:root .modal.typography-scale-dialog {
  width: min(1140px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface-strong);
}
:root .modal.typography-preview { width: min(560px, calc(100% - 32px)); }
:root .modal.typography-scale-dialog .secondary-button { min-height: 34px; padding: 0 12px; }
.typography-scale-dialog .typography-table-scroll { max-height: min(70dvh, 640px); overflow: auto; }
.typography-scale-dialog table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.typography-preview table { min-width: 0; }
.typography-scale-dialog th, .typography-scale-dialog td { padding: 11px 12px; text-align: start; }
.typography-scale-dialog thead th {
  position: sticky;
  top: 0;
  color: var(--muted);
  background: var(--surface-strong);
}
.typography-scale-dialog tbody tr { border-top: 1px solid var(--line); }
.typography-scale-dialog [lang="zh-CN"] thead th:nth-child(1) { width: 23.5%; }
.typography-scale-dialog [lang="zh-CN"] thead th:nth-child(2) { width: 20.5%; }
.typography-scale-dialog [lang="zh-CN"] thead th:nth-child(3) { width: 25%; }
.typography-scale-dialog td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .typography-workflow-page .workflow-overview-settings { min-height: 0; grid-template-rows: auto; }
  .typography-workflow-page .workflow-overview-settings > button { grid-row: auto; }
}
@media (max-width: 620px) {
  .typography-font-row { grid-template-columns: minmax(0, 1fr); }
  .typography-workflow-page .workflow-overview-main .workflow-stage-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .typography-workflow-page .workflow-overview-main .workflow-detail-stage { min-height: 84px; }
  .typography-workflow-page .workflow-overview-main .workflow-detail-stage + .workflow-detail-stage::before { display: none; }
  :root .modal.typography-scale-dialog { padding: 16px; }
}
