:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #65717f;
  --line: #d9e0e7;
  --panel: #ffffff;
  --bg: #eef2f5;
  --accent: #116d6e;
  --accent-2: #8b4d12;
  --danger: #b32828;
  --soft: #e7f4f2;
  --focus: #174ea6;
  --resize-divider: #ffffff;
  --section-gap: 8px;
  --field-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2320242a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-transform: none;
}

.brand-mark span {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.2;
}

h2 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.12;
}

h3 {
  font-size: 16px;
}

.brand p,
.eyebrow,
.search span,
label span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.read-mode-control {
  display: grid;
  gap: 4px;
}

.read-mode-sync-button {
  min-height: 30px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.read-mode-sync-button:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: wait;
}

.search {
  display: grid;
  gap: 4px;
}

.search--inline {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.deleted-toggle {
  justify-content: flex-start;
  min-height: 28px;
  min-width: 0;
}

.ui-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.catalog-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.catalog-filter-row .search--inline {
  min-width: 0;
}

.ui-field--text,
.ui-field--textarea {
  appearance: none;
}

[data-surface-contract="metadata-fields.form"] textarea.ui-field--textarea {
  field-sizing: content;
  min-height: 30px;
  overflow-y: hidden;
}

.ui-field:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.ui-field:disabled,
.ui-field[readonly] {
  background-color: var(--bg);
  color: var(--muted);
}

.ui-field[aria-busy="true"] {
  color: var(--muted);
}

.ui-field:invalid:not(:focus) {
  border-color: var(--danger);
}

.ui-field--select {
  padding-inline-end: 30px;
  background-image: var(--field-select-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  cursor: pointer;
}

select.ui-field--select {
  appearance: none;
}

select.ui-field--select[size]:not([size="1"]) {
  height: auto;
  padding: 6px;
  background-image: none;
}

select.ui-field--select[size]:not([size="1"]) option {
  padding: 6px;
}

.ui-field--checkbox {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.ui-field--compact {
  min-height: 30px;
  padding-block: 3px;
  font-size: 12px;
}

.ui-field--code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.35;
}

.process-meta-form textarea,
.entity-metadata-form textarea {
  resize: vertical;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}

.deleted-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-switch {
  display: grid;
  container-type: inline-size;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.view-switch .view-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 20px;
}

.view-switch .view-button--authoring {
  padding-inline-end: 38px;
}

.view-authoring-chevron {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 28px;
  color: var(--accent);
  pointer-events: none;
}

.view-authoring-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.view-authoring-chevron text {
  fill: currentColor;
  font: 600 14px "Segoe UI", Arial, sans-serif;
}

.view-button:is(.active, [aria-selected="true"], [aria-pressed="true"]) .view-authoring-chevron {
  color: inherit;
}

.view-button-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  min-width: 0;
  line-height: 20px;
}

#processViewButton {
  padding-block: 0;
}

.view-button-caption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.view-button:is(.active, [aria-selected="true"], [aria-pressed="true"]) .view-button-caption {
  color: inherit;
  border-color: currentColor;
}

@container (max-width: 330px) {
  .view-button-caption {
    padding-inline: 0;
    gap: 1px;
  }
}

#operationCompileStats {
  display: grid;
  gap: 4px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

#operationCompileStats[hidden],
body:not([data-view="operations"]) #operationCompileStats {
  display: none;
}

.operation-compile-stats__summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.operation-compile-stats__details {
  color: var(--muted);
  overflow-wrap: anywhere;
}

#operationCompileStats[data-status="warning"] {
  border-left-color: var(--accent-2);
}

#operationCompileStats[data-status="error"] {
  border-left-color: var(--danger);
}

.filter,
.folder-actions button,
.view-button,
.icon-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.process-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding-right: 2px;
}

.folder-group {
  display: grid;
  gap: 6px;
}

.folder-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #f7faf9;
  color: var(--ink);
  text-align: left;
}

.folder-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3ch;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.folder-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-toggle small {
  color: var(--muted);
  justify-self: end;
}

.folder-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.folder-icon-button {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.folder-icon-button:hover {
  border-color: var(--line);
}

.folder-header.drop-target {
  border-color: var(--accent);
  background: var(--soft);
}

.process-item {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.process-item.active {
  border-color: var(--accent);
  background: var(--soft);
}

.process-item.deleted {
  border-color: #d9b6b6;
  background: #fff7f7;
}

.create-recording-item,
.create-process-draft-item {
  display: block;
  border-color: var(--accent);
  color: var(--accent);
}

.create-recording-item.active,
.create-process-draft-item:active {
  background: var(--accent);
  color: #fff;
}

.create-recording-item.active span,
.create-process-draft-item:active span {
  color: #e7f4f2;
}

.process-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.15;
}

.process-item strong span {
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

.process-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--section-gap);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.toolbar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.log-actions button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
}

button.ui-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
}

button.ui-button:disabled {
  cursor: not-allowed;
}

button.ui-button--compact {
  width: 34px;
  min-width: 34px;
  height: 32px;
  padding: 0;
}

button.ui-button--status {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 34px;
  min-width: 34px;
}

.shell-action__icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  line-height: 1;
}

.process-stack {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--section-gap);
  min-height: 0;
}

.process-stack > * {
  min-width: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-height: 0;
  padding: 12px;
}

.details-panel,
.run-panel {
  overflow: auto;
}

.details-panel {
  display: flex;
  flex-direction: column;
}

.steps-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8edf2;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.badge.danger {
  background: #fdeceb;
  color: var(--danger);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.facts div,
.data-cell {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.fact-description {
  grid-column: 1 / -1;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
  font-size: 13px;
}

.data-grid {
  display: grid;
  gap: 8px;
}

.business-data-form {
  display: grid;
  gap: 8px;
}

.system-client-form {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.screen-root {
  min-height: 0;
  overflow: hidden;
}

.screen-root:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--section-gap);
}

.screen-heading-host:empty {
  display: none;
}

.screen-details-panel {
  flex: 1 1 auto;
}

.ai-editor-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#aiEditorRoot {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#aiEditorRoot[hidden] { display: none; }

#aiEditorStatus {
  margin: var(--section-gap);
}

#aiEditorRetry {
  align-self: flex-start;
  margin: 0 var(--section-gap) var(--section-gap);
}

#aiEditorStatus[hidden] + #aiEditorRetry,
#aiEditorStatus[data-state="loading"] + #aiEditorRetry {
  display: none;
}

.screen-empty-state:not([hidden]) {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  min-height: 12rem;
  color: var(--muted);
  font-size: clamp(1.25rem, 2vw, 2rem);
  text-align: center;
}

.entity-field-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  margin: 10px 0;
}

.entity-field-grid__row {
  display: contents;
}

.entity-field-grid__label {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.entity-field-grid__readonly {
  display: flex;
  align-items: center;
}

.entity-field-grid textarea {
  resize: vertical;
}

.recording-action-list {
  overflow-x: auto;
}

/* Data-surface catalog: the single desktop visual owner for T01-T08, F01-F04 and R01. */
[data-surface-contract] {
  box-sizing: border-box;
  font: 400 12px/1.3 "Segoe UI", Arial, sans-serif;
}

:where([data-surface-contract="table.record-collection"]):is(table),
[data-surface-contract="table.record-collection"] table,
:where([data-surface-contract="metadata-fields.table"]):is(table),
[data-surface-contract="metadata-fields.table"] table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

:where([data-surface-contract="table.record-collection"]):is(table) th,
:where([data-surface-contract="table.record-collection"]):is(table) td,
[data-surface-contract="table.record-collection"] table th,
[data-surface-contract="table.record-collection"] table td,
:where([data-surface-contract="metadata-fields.table"]):is(table) th,
:where([data-surface-contract="metadata-fields.table"]):is(table) td,
[data-surface-contract="metadata-fields.table"] table th,
[data-surface-contract="metadata-fields.table"] table td {
  min-height: 34px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  vertical-align: middle;
}

:where([data-surface-contract="table.record-collection"]):is(table) th,
[data-surface-contract="table.record-collection"] table thead th,
:where([data-surface-contract="metadata-fields.table"]):is(table) thead th,
[data-surface-contract="metadata-fields.table"] table thead th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

:where([data-surface-contract="table.record-collection"]):is(table) tr > :last-child,
[data-surface-contract="table.record-collection"] table tr > :last-child,
:where([data-surface-contract="metadata-fields.table"]):is(table) tr > :last-child,
[data-surface-contract="metadata-fields.table"] table tr > :last-child {
  border-right: 0;
}

:where([data-surface-contract="table.record-collection"]):is(table) tbody tr:last-child > *,
[data-surface-contract="table.record-collection"] table tbody tr:last-child > *,
:where([data-surface-contract="metadata-fields.table"]):is(table) tbody tr:last-child > *,
[data-surface-contract="metadata-fields.table"] table tbody tr:last-child > * {
  border-bottom: 0;
}

[data-surface-contract="table.record-collection"] tr[aria-selected="true"] {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

[data-surface-contract="table.record-collection"] tr[aria-selected="true"] > * {
  background: #fff;
}

[data-surface-contract="table.record-collection"] table,
:where([data-surface-contract="table.record-collection"]):is(table) {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

[data-surface-contract="table.record-collection"][data-table-capabilities~="row-index"] tr > :first-child:not([data-step-column="edit"]):not([data-column-id="edit"]),
[data-surface-contract="table.record-collection"] [data-table-capabilities~="row-index"] tr > :first-child:not([data-step-column="edit"]):not([data-column-id="edit"]) {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

[data-surface-contract="table.record-collection"] .ui-table-text {
  display: -webkit-box;
  max-height: 2.5em;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

[data-surface-contract="metadata-fields.form"] :is(.run-parameters-fields, .entity-metadata-form, .entity-field-grid) {
  align-items: center;
  font: inherit;
}

[data-surface-contract="metadata-fields.form"] :is(
  .entity-metadata-form > label > span,
  .entity-field-grid__label,
  .metadata-field-label
) {
  align-self: center;
  color: var(--muted);
  font: inherit;
}

[data-surface-contract="metadata-fields.form"] :is(.ui-field, .entity-field-grid__readonly) {
  min-height: 30px;
}

[data-surface-contract="metadata-fields.form"] :is(.ui-field, .entity-field-grid__readonly):not(button) {
  font: inherit;
}

[data-surface-contract="record-picker"] .operation-picker-row {
  font: inherit;
}

.recording-actions-table {
  width: 100%;
}

.recording-actions-table th,
.recording-actions-table td {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.run-parameters-fields,
.entity-metadata-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  row-gap: 8px;
  column-gap: 12px;
  align-items: center;
}

.process-meta-form,
.entity-metadata-form,
.run-form {
  display: contents;
}

.operation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.operation-actions[hidden] {
  display: none;
}

.operation-lifecycle-action {
  min-height: 32px;
  min-width: 112px;
  font-size: 13px;
  font-weight: 600;
}

.workspace-sections {
  display: grid;
  gap: var(--section-gap);
  margin-top: 0;
}

.workspace-section {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.workspace-section[hidden],
.workspace-section__panel[hidden] {
  display: none;
}

.workspace-section__toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 42px;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: calc(13px + 2pt);
  font-weight: 700;
  text-align: left;
  list-style: none;
}

.workspace-section__toggle::before {
  position: absolute;
  left: 10px;
  top: 7px;
  content: "▸";
  color: var(--muted);
}

.workspace-section.open > .workspace-section__toggle::before,
.workspace-section[open] > .workspace-section__toggle::before {
  content: "▾";
}

.workspace-section__toggle > .badge,
.workspace-section__toggle > small { position: absolute; right: 10px; top: 7px; }
.workspace-section__toggle::-webkit-details-marker { display: none; }

.table-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  background: var(--panel);
}

.table-section-header__title {
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.table-section-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 4px 10px 4px 4px;
}

.table-section-header > .workspace-section__toggle {
  min-width: 0;
}

.workspace-section.open > .table-section-header > .workspace-section__toggle::before {
  content: "▾";
}

.workspace-section__panel {
  padding: 10px;
  border-top: 1px solid var(--line);
}

#stepsSectionPanel {
  border-top: 0;
  padding-top: 0;
}

.operation-link {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.operation-link:hover,
.operation-link:focus-visible {
  text-decoration: underline;
}

.operation-usages {
  display: grid;
  gap: 8px;
}

.operation-usage {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.operation-usage:hover,
.operation-usage:focus-visible {
  border-color: var(--accent);
}

.operation-usage span,
.operation-usage small {
  color: var(--muted);
}

.process-meta-form label,
.entity-metadata-form label,
.system-client-form label,
.recording-recorder-form label {
  display: grid;
  gap: 4px;
}

.process-meta-form > label,
.entity-metadata-form > label {
  display: contents;
}

.process-meta-form > label > span,
.entity-metadata-form > label > span {
  align-self: center;
}

.system-client-form {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.system-client-list {
  display: grid;
  gap: 6px;
}

.system-client-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.system-client-item.active {
  border-color: var(--accent);
  background: var(--soft);
}

.system-client-item strong,
.system-client-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-client-item span {
  color: var(--muted);
  font-size: 12px;
}

.system-client-grid {
  display: grid;
  grid-template-columns: minmax(80px, 0.6fr) minmax(72px, 0.45fr) minmax(120px, 1fr);
  gap: 8px;
}

.recording-recorder-form {
  display: none;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

#recordingCaptureSection .recording-recorder-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.form-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.form-head .muted {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.recording-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recording-grid.compact {
  grid-template-columns: minmax(0, 1fr);
}

.recording-grid .wide {
  grid-column: 1 / -1;
}

.session-list {
  display: grid;
  gap: 6px;
}

.session-list[hidden] {
  display: none;
}

.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.session-item strong,
.session-item span {
  display: block;
  overflow-wrap: anywhere;
}

.session-item span {
  color: var(--muted);
  font-size: 12px;
}

.business-data-group {
  display: grid;
  gap: 8px;
  width: 100%;
}

.business-data-group + .business-data-group {
  margin-top: 12px;
}

.business-data-group-heading {
  margin: 0;
  font-size: 13px;
}

.business-data-group-heading code {
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.business-data-table-wrap {
  overflow: auto;
}

.business-data-table {
  min-width: 360px;
  table-layout: fixed;
}

.business-data-table tbody th {
  width: 44%;
  overflow-wrap: anywhere;
}

.business-data-table textarea.select-option-input {
  resize: vertical;
  line-height: 1.35;
}

.business-data-checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.process-file-inputs-panel {
  padding: 0;
}

.process-file-inputs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.process-file-inputs-head h3 {
  margin: 0;
  font-size: 14px;
}

.process-file-inputs-list {
  overflow-x: auto;
}

.process-file-input-table {
  min-width: 760px;
  table-layout: fixed;
}

.process-file-input-table .process-file-input-name-column,
.process-file-input-table .process-file-upload-name-column {
  width: 25%;
}

.process-file-input-table .process-file-version-column {
  width: 11%;
}

.process-file-input-table .process-file-uploaded-column {
  width: 18%;
}

.process-file-input-table td code {
  overflow-wrap: anywhere;
}

.process-file-input-table small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.process-file-input-table td:nth-child(4),
.process-file-input-table td:nth-child(5) {
  text-align: center;
}

.data-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.process-actions {
  flex-wrap: wrap;
}

.draft-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.draft-flow-actions[hidden] {
  display: none;
}

.process-step-actions {
  justify-content: flex-start;
}

.draft-step-controls {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 4px;
}

.draft-purpose-input {
  width: 100%;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-file-input-missing {
  margin-top: 4px;
  color: var(--danger);
  font-size: 12px;
}

.process-file-input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.operation-picker-rows {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  gap: 4px;
  overflow: auto;
}

.operation-picker {
  position: fixed;
  z-index: 30;
  inset: var(--operation-picker-top) auto auto var(--operation-picker-left);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  width: var(--operation-picker-width, min(760px, calc(100vw - 16px)));
  height: var(--operation-picker-height, min(560px, calc(100dvh - 16px)));
  max-height: calc(100dvh - 16px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
  overflow: hidden;
}

.operation-picker[hidden] {
  display: none;
}

.operation-picker-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  background: #fbfcfd;
}

.operation-picker-search {
  width: 100%;
}

.operation-picker-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 72px max-content;
  grid-template-areas: "code main transaction meta";
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.operation-picker-row:hover,
.operation-picker-row:focus-visible {
  border-color: var(--focus);
  background: #f7fbfb;
}

.operation-picker-row > * {
  min-width: 0;
}

.operation-picker-source-code {
  grid-area: code;
  color: var(--focus);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operation-picker-main {
  grid-area: main;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operation-picker-title,
.operation-picker-purpose {
  display: block;
  min-width: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operation-picker-title {
  font-size: 12px;
  font-weight: 650;
}

.operation-picker-transaction {
  grid-area: transaction;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
}

.operation-picker-status {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.operation-picker-meta {
  grid-area: meta;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
}

.operation-picker-revisions {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}

.operation-picker-revision-choice {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.draft-step-controls > :last-child {
  margin-left: 2px;
  border-left-width: 2px;
}

.operation-picker-revision-choice--draft {
  border-color: #ead5a6;
  background: #fff9ec;
  color: #8b6118;
}

.recording-properties [data-field="source_process"] .ui-button--link {
  width: 100%;
  justify-content: flex-start;
}

.recording-outcome::first-letter {
  color: var(--focus);
}

.agent-installations-table .badge {
  border: 0;
  background: transparent;
  padding-inline: 0;
}

.operation-picker-purpose {
  color: var(--muted);
  font-size: 0.76rem;
}

.operation-picker-empty {
  margin: 0;
  padding: 16px 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .operation-picker-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "code main" "meta meta";
    gap: 2px 8px;
    min-height: 58px;
    padding: 2px 9px;
  }

  .operation-picker-transaction {
    display: none;
  }

  .operation-picker-meta {
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
  }

  .operation-picker-revision-choice {
    max-width: 100%;
    white-space: normal;
    text-align: right;
  }
}

.sync-actions {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.sync-preview-panel {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 16px;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgb(32 36 42 / 24%);
}

.sync-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sync-preview-head h3 {
  margin: 0;
  font-size: 15px;
}

.sync-preview-summary,
.sync-process-meta {
  color: var(--muted);
  font-size: 12px;
}

.sync-preview-details {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.sync-process-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #fff;
}

.sync-process-preview h4 {
  margin: 0 0 3px;
  font-size: 13px;
}

.sync-field-group {
  margin-top: 8px;
  font-size: 12px;
}

.sync-field-group strong {
  display: block;
  margin-bottom: 3px;
}

.sync-field-group ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
}

.sync-field-group li {
  overflow-wrap: anywhere;
}

.sync-field-group code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f4f7f6;
}

.sync-field-group span {
  margin-left: 6px;
  color: var(--muted);
}

.sync-add strong {
  color: var(--accent-2);
}

.sync-remove strong,
.sync-issue strong {
  color: var(--danger);
}

.sync-remove-line {
  margin: 8px 0;
}

.run-form__parameters {
  display: contents;
}

.run-form__parameter-controls {
  display: grid;
  grid-template-columns: minmax(78px, 92px) minmax(170px, 1fr) max-content;
  gap: 8px;
  align-items: center;
}

.run-form__parameter-controls label:not(.checkline) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.run-form__modes {
  display: flex;
  justify-self: stretch;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.run-form__agent {
  display: contents;
}

.run-form__agent > span:first-child {
  align-self: center;
}

.run-form__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.run-form__actions > .ui-button {
  width: 100%;
}

.debug-controls {
  display: grid;
  grid-template-columns: repeat(5, 34px) auto;
  gap: 8px;
  align-items: center;
  margin: 10px 10px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.debug-controls[hidden] {
  display: none;
}

.debug-controls--readonly {
  grid-template-columns: minmax(0, 1fr);
}

.debug-state {
  color: var(--focus);
  font-weight: 750;
}

.debug-context {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.checkline {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

.steps-table-wrap {
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: auto;
}

.steps-table {
  min-width: 980px;
  table-layout: fixed;
}

.steps-table th,
.steps-table td {
  overflow-wrap: anywhere;
}

.steps-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.process-steps {
  margin-top: 0;
}

.operation-revision-selector {
  width: 100%;
  min-width: 150px;
}

.step-num {
  font-variant-numeric: tabular-nums;
}

.steps-table code {
  display: block;
  color: var(--focus);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.process-bindings-panel {
  margin-top: 0;
}

.process-bindings-table-wrap {
  overflow-x: auto;
}

.process-bindings-table {
  white-space: nowrap;
}

.process-bindings-table td:last-child {
  min-width: 180px;
  white-space: normal;
}

.process-bindings-status {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--surface-muted);
}

.process-bindings-status--blocking {
  background: #fee2e2;
  color: #991b1b;
}

.artifact-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--focus);
  cursor: pointer;
  text-align: left;
  overflow-wrap: anywhere;
}

.artifact-link:hover,
.artifact-link:focus-visible {
  text-decoration: underline;
}

.artifact-row.selected {
  background: var(--soft);
}

.run-result {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.run-result--success {
  color: #137333;
}

.run-result--failure {
  color: var(--danger);
}

.run-result--progress {
  color: var(--focus);
}

#jobLog {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 10px 0 0;
  padding: 8px;
  border-radius: 6px;
  background: #101418;
  color: #d8f0df;
}

.run-log-drawer__summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  padding: 8px 9px;
  border-left: 3px solid #6b7785;
  border-radius: 4px;
  background: #151b21;
}

.log-entry.info {
  border-left-color: #8ab4f8;
}

.log-entry.success {
  border-left-color: #34a853;
}

.log-entry.warning {
  border-left-color: #fbbc04;
}

.log-entry.error {
  border-left-color: #f28b82;
}

.log-entry-header {
  color: #e8f0fe;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.log-entry-message,
.log-entry-details {
  margin-top: 5px;
  color: #d8f0df;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-entry-artifact-meta {
  margin-top: 7px;
  color: #a8b3bd;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.log-entry-artifact {
  max-height: 360px;
  overflow: auto;
  margin: 7px 0 0;
  padding: 10px;
  border: 1px solid #2e3a45;
  border-radius: 6px;
  background: #0b0f13;
  color: #d8f0df;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.syntax-key {
  color: #8ab4f8;
}

.syntax-string {
  color: #b7e1a1;
}

.syntax-number {
  color: #fdd663;
}

.syntax-keyword {
  color: #c58af9;
  font-weight: 700;
}

.syntax-comment {
  color: #8fa1ad;
  font-style: italic;
}

.syntax-literal {
  color: #f28b82;
}

.log-empty {
  color: #a8b3bd;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
}

body[data-view="operations"] .process-meta-form,
body[data-view="operations"] .system-client-form,
body[data-view="operations"] .business-data-form,
body[data-view="operations"] .recording-recorder-form,
body[data-view="operations"] .run-panel,
body[data-view="processes"] .system-client-form,
body[data-view="recordings"] .process-meta-form,
body[data-view="recordings"] .system-client-form,
body[data-view="recordings"] .business-data-form,
body[data-view="recordings"] .recording-recorder-form,
body[data-view="recordings"] .run-panel,
body[data-view="recording-create"] .process-meta-form,
body[data-view="recording-create"] .system-client-form,
body[data-view="recording-create"] .business-data-form,
body[data-view="recording-create"] .run-panel,
body[data-view="recording-create"] .steps-panel,
body[data-view="sap-systems-clients"] .run-panel,
body[data-view="sap-systems-clients"] .process-meta-form,
body[data-view="sap-systems-clients"] .business-data-form,
body[data-view="sap-systems-clients"] .recording-recorder-form,
body[data-view="sap-systems-clients"] .steps-panel,
body[data-view="agents"] .run-panel,
body[data-view="agents"] .process-meta-form,
body[data-view="agents"] .business-data-form,
body[data-view="agents"] .recording-recorder-form,
body[data-view="agents"] .steps-panel {
  display: none;
}

body[data-view="recording-create"] .recording-recorder-form {
  display: grid;
}

body[data-view="sap-systems-clients"] .system-client-form {
  display: grid;
}

body[data-view="operations"] .process-stack,
body[data-view="recordings"] .process-stack,
body[data-view="recording-create"] .process-stack,
body[data-view="sap-systems-clients"] .process-stack,
body[data-view="agents"] .process-stack {
  grid-template-rows: minmax(0, 1fr);
}

@media (max-width: 920px) {
  .process-stack {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .facts,
  .data-grid,
  .system-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.entity-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.entity-toolbar__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
}

.entity-toolbar__action:disabled {
  cursor: not-allowed;
}

.entity-toolbar__action:focus-visible,
.entity-toolbar__more > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.entity-toolbar__icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  font-size: 1rem;
  line-height: 1;
}

.entity-toolbar__more {
  position: relative;
}

.entity-toolbar__more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.entity-toolbar__menu {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  top: calc(100% + 4px);
  display: grid;
  gap: 4px;
  min-width: min(220px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
}

.entity-toolbar__more:not([open]) > .entity-toolbar__menu {
  display: none;
}

.entity-toolbar__menu .entity-toolbar__action {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.entity-toolbar__menu .entity-toolbar__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.entity-toolbar--constrained > .entity-toolbar__action .entity-toolbar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.process-item.dragging {
  opacity: 0.55;
}

.ui-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: min(34rem, calc(100vw - 16px));
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: none;
  white-space: normal;
  box-shadow: 0 6px 18px rgb(15 23 42 / 14%);
}

.ui-tooltip[hidden] {
  display: none;
}

.ui-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Catalog-owned button roles. Component classes keep geometry/content only. */
button:is(
  .ui-button-role--primary, .ui-button-role--secondary, .ui-button-role--neutral,
  .ui-button-role--danger, .ui-button-role--navigation, .ui-button-role--tab,
  .ui-button-role--icon, .ui-button-role--composite
) {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 1;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

button:is(.ui-button-role--primary, .ui-button-role--secondary, .ui-button-role--neutral, .ui-button-role--danger) {
  min-height: 32px;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  cursor: pointer;
}

button.ui-button-role--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
button.ui-button-role--secondary { color: var(--accent); background: #fff; border-color: var(--accent); }
button.ui-button-role--neutral { color: var(--ink); background: #fff; border-color: var(--line); }
button.ui-button-role--danger { color: var(--danger); background: #fff; border-color: var(--danger); }
button.ui-button-role--navigation { color: var(--ink); background: #fff; border-color: var(--line); }
button.ui-button-role--navigation:is(.active, [aria-selected="true"], [aria-pressed="true"]) {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
button.ui-button-role--tab { color: var(--ink); background: #fff; border-color: transparent; }
button.ui-button-role--tab:is(.active, [aria-selected="true"]) { color: var(--accent); border-bottom-color: var(--accent); }
button.ui-button-role--icon { color: var(--ink); background: #fff; border-color: var(--line); font-size: 14px; }
button.ui-button-role--icon.ui-button-role-mod--danger { color: var(--danger); border-color: var(--line); }
button.ui-button-role--composite { color: var(--accent); background: #fff; border-color: var(--accent); }
button.ui-button-role--composite .shell-control-kicker { color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.25; }
button.ui-button-role--composite .shell-control-value { color: var(--accent); font-size: 13px; font-weight: 500; line-height: 1.25; }

button:is(.ui-button-role--primary, .ui-button-role--secondary, .ui-button-role--neutral, .ui-button-role--danger, .ui-button-role--navigation, .ui-button-role--tab, .ui-button-role--icon, .ui-button-role--composite):hover:not(:disabled) {
  background-color: var(--soft);
}
button.ui-button-role--primary:hover:not(:disabled) { color: #fff; background-color: var(--focus); border-color: var(--focus); }
button.ui-button-role--danger:hover:not(:disabled), button.ui-button-role--icon.ui-button-role-mod--danger:hover:not(:disabled) { background-color: #fff4f3; }
button.ui-button-role--navigation:is(.active, [aria-selected="true"], [aria-pressed="true"]):hover:not(:disabled) { color: #fff; background-color: var(--focus); }

button:is(.ui-button-role--primary, .ui-button-role--secondary, .ui-button-role--neutral, .ui-button-role--danger, .ui-button-role--navigation, .ui-button-role--tab, .ui-button-role--icon, .ui-button-role--composite):focus-visible,
button.ui-button-role--rich:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:is(.ui-button-role--primary, .ui-button-role--secondary, .ui-button-role--neutral, .ui-button-role--danger, .ui-button-role--navigation, .ui-button-role--tab, .ui-button-role--icon, .ui-button-role--composite, .ui-button-role--rich):disabled {
  color: var(--muted);
  background: #f8fafb;
  border-color: var(--line);
  opacity: 1;
  transition: none;
  cursor: not-allowed;
}

.locale-switch select { min-width: 5.5rem; }

.run-form__actions > .ui-button { min-width: 0; white-space: normal; }

/* These screens compose section cards without an enclosing white card. */
:is(#processesScreen, #operationsScreen, #recordingsScreen, #recordingCreateScreen, #agentsScreen, #dslBookScreen) > .screen-details-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
