@import url("./css/features/setup-preparation.css");
@import url("./css/features/requirements.css");
@import url("./css/features/test-suites.css");
@import url("./css/features/admin.css");
@import url("./css/features/project-settings.css");

:root {
  --bg: #edf2f8;
  --topbar: #08244c;
  --nav-rail: #0b3e86;
  --module-bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f8fc;
  --text: #172033;
  --muted: #718197;
  --border: #d8e2ef;
  --accent: #2c7df4;
  --accent-strong: #1667d8;
  --danger: #b42318;
  --success: #047857;
  --shadow: 0 1px 4px rgba(24, 45, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  overflow: hidden;
}

.login-body {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08)),
    var(--bg);
}

.login-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-panel {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-brand {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0b1f45;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.login-label {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.login-panel h1 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-submit {
  width: 100%;
  margin-top: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  min-height: 0;
}

.app-shell.i18n-pending {
  visibility: hidden;
}

.language-menu { position: relative; }
.language-trigger { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; padding: 6px; }
.language-trigger[disabled] { cursor: default; }
.language-options { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 132px; padding: 4px; border: 1px solid var(--border-color, #d8dee9); border-radius: 8px; background: var(--panel-background, #fff); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.language-options button { display: block; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 7px 9px; border-radius: 5px; cursor: pointer; }
.language-options button:hover, .language-options button:focus-visible { background: rgb(100 116 139 / 12%); outline: none; }

.global-topbar {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
  background: var(--topbar);
  color: #dce9ff;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 210px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.topbar-brand-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.topbar-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-label {
  color: #b9ccec;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 96px 238px minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-shell.suites-mode .workspace-shell,
.app-shell.admin-mode .workspace-shell,
.app-shell.settings-mode .workspace-shell {
  grid-template-columns: 96px minmax(0, 1fr);
}

.app-shell.suites-mode .sidebar,
.app-shell.admin-mode .sidebar,
.app-shell.settings-mode .sidebar {
  display: none;
}

.nav-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: var(--nav-rail);
  color: #d9e8ff;
  padding: 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-rail-spacer {
  flex: 1;
}

.nav-rail-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #dbeafe;
  padding: 0 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}

.nav-rail-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-rail-button.active {
  border-left-color: #ffffff;
  background: #1f73e8;
  color: #ffffff;
}

.nav-rail-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--module-bg);
  color: #172033;
  border-right: 1px solid var(--border);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 9px 0 12px;
  border-bottom: 1px solid #e8eef6;
}

.sidebar-header h1 {
  margin: 0;
  overflow: hidden;
  color: #22344e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 16px;
}

.section-tab {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
}

.section-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.section-tab.active {
  background: #ffffff;
  color: #111827;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #6f8198;
}

.icon-button:hover {
  border-color: #d7e3f2;
  background: #f4f8fd;
  color: var(--accent);
}

.icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-wrap {
  padding: 8px 9px;
  border-bottom: 1px solid #edf2f7;
}

.search-wrap input {
  width: 100%;
  height: 28px;
  border: 1px solid #d6e2f0;
  border-radius: 3px;
  background: #ffffff;
  color: #1f2f47;
  outline: none;
  padding: 0 9px;
  font-size: 12px;
}

.search-wrap input::placeholder {
  color: #9aabc0;
}

.search-wrap input:focus {
  border-color: #73a9fb;
  box-shadow: 0 0 0 2px rgba(44, 125, 244, 0.14);
}

.sidebar-action {
  padding: 0 9px 8px;
  border-bottom: 1px solid #edf2f7;
}

.plan-transfer-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.plan-transfer-sidebar-actions .secondary-button {
  min-height: 28px;
  padding: 4px 8px;
}

.create-module-button {
  width: 100%;
  min-height: 28px;
  border: 1px solid #2275ec;
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
}

.create-module-button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.module-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  overflow: auto;
  padding: 7px 6px 14px;
}

.module-item {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #44546a;
  text-align: left;
  padding: 7px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.module-item:hover {
  background: #eef5ff;
  color: #1e5db7;
}

.module-item.active {
  background: #eaf3ff;
  color: var(--accent-strong);
}

.tree-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tree-module-button,
.tree-plan-button,
.tree-script-button {
  width: 100%;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #334155;
  text-align: left;
  font-size: 12px;
}

.tree-module-button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 31px;
  gap: 5px;
  padding: 6px 7px;
}

.tree-module-button:hover,
.tree-plan-button:hover,
.tree-script-button:hover {
  background: #eef5ff;
  color: #185ec5;
}

.tree-module-button.active {
  background: #eef5ff;
  color: #334155;
}

.tree-caret {
  color: #7f94ad;
  font-size: 11px;
}

.tree-module-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-count {
  min-width: 24px;
  border-radius: 10px;
  background: #edf4ff;
  color: #3b77d8;
  padding: 1px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}

.tree-plan-list,
.tree-script-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tree-plan-button,
.tree-script-button {
  min-height: 28px;
  padding: 6px 8px 6px 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #53647a;
}

.tree-plan-button.active,
.tree-script-button.active {
  background: #eef5ff;
  color: #53647a;
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  padding: 7px 8px 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: none;
}

.path-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
}

.topbar h2 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.account-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-left: auto;
  color: #e8f2ff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.account-avatar {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.project-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.project-select {
  width: min(260px, 28vw);
  height: 26px;
  border: 1px solid rgba(183, 207, 243, 0.62);
  border-radius: 2px;
  background: #0f356a;
  color: #ffffff;
  padding: 0 28px 0 9px;
  font-size: 12px;
  font-weight: 650;
}

.account-logout {
  min-width: 50px;
}

.primary-button,
.secondary-button {
  min-width: 64px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.secondary-button:hover {
  background: var(--surface-muted);
}

.global-topbar .secondary-button {
  height: 26px;
  border-color: rgba(183, 207, 243, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.global-topbar .secondary-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.danger-button {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.28);
}

.danger-button:hover:not(:disabled) {
  background: #fef2f2;
}

.danger-primary-button {
  min-width: 64px;
  height: 30px;
  border: 1px solid var(--danger);
  border-radius: 3px;
  background: var(--danger);
  color: #ffffff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
}

.danger-primary-button:hover:not(:disabled) {
  border-color: #8f1c14;
  background: #8f1c14;
}

.compact-button {
  min-width: 54px;
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.notice {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
}

.notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--danger);
}

.notice.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--success);
}

.viewer-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: none;
}

.empty-state {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.markdown-preview {
  height: calc(100vh - 104px);
  overflow: auto;
  padding: 22px 26px 34px;
  line-height: 1.72;
}

.script-preview {
  height: calc(100vh - 104px);
  margin: 0;
  overflow: auto;
  background: #0f172a;
  color: #e5e7eb;
  padding: 18px;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.68;
  tab-size: 2;
  white-space: pre;
}

.viewer-area.with-tabs .markdown-preview,
.viewer-area.with-tabs .script-preview,
.viewer-area.with-tabs .editor,
.viewer-area.with-tabs .execution-record,
.viewer-area.with-tabs .module-script-panel,
.viewer-area.with-tabs .module-execution-record,
.viewer-area.with-tabs .module-repair-record,
.viewer-area.with-tabs .script-repair-record,
.viewer-area.with-tabs .generation-record {
  height: calc(100vh - 140px);
  min-height: 0;
}

.script-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 0 8px;
}

.content-tab {
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 11px 8px;
}

.content-tab:hover {
  color: var(--accent-strong);
  background: #f3f7fd;
}

.content-tab.active {
  border-color: transparent transparent var(--accent);
  background: #ffffff;
  color: var(--accent-strong);
}

.execution-record {
  overflow: auto;
  padding: 12px;
}

.module-script-panel,
.module-execution-record,
.module-repair-record {
  overflow: auto;
  padding: 12px;
}

.script-repair-record,
.generation-record {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px;
}

.generation-record-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.generation-record-empty {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.generation-record-empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.generation-record-empty p {
  margin: 0;
  color: var(--muted);
}

.script-repair-actions {
  display: flex;
  justify-content: flex-end;
}

.repair-duration {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  color: #93c5fd;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
}

.execution-log-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #0f172a;
  margin-bottom: 12px;
}

.execution-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  color: #e5e7eb;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
}

.execution-log-header span:last-child {
  color: #93c5fd;
  font-weight: 600;
}

.execution-log {
  min-height: 220px;
  max-height: 44vh;
  margin: 0;
  overflow: auto;
  padding: 12px;
  background: #0f172a;
  color: #dbeafe;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.execution-report-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.execution-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.execution-report-header a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.execution-report-header a:hover {
  text-decoration: underline;
}

.execution-report-frame {
  width: 100%;
  height: min(760px, calc(100vh - 220px));
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #ffffff;
}

.execution-report-path {
  margin: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #f8fafc;
  color: #334155;
  padding: 8px 10px;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.execution-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 3px;
  background: #f8fafc;
  text-align: center;
}

.execution-empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.execution-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.module-script-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-script-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.module-script-summary,
.module-selection-count {
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

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

.module-script-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #ffffff;
}

.module-script-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 12px;
}

.module-script-table th,
.module-script-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.module-script-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.module-script-table tr:last-child td {
  border-bottom: 0;
}

.module-script-table tbody tr:hover {
  background: #f6faff;
}

.asset-info-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 12px 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #ffffff;
  padding: 10px;
}

.asset-info-header,
.asset-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 12px;
}

.asset-info-header span,
.asset-source-row {
  color: #64748b;
}

.asset-revision-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-revision-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
  color: #334155;
  font-size: 13px;
}

.asset-revision-item code {
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 6px;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 12px;
}

.asset-revision-item .secondary-button {
  min-height: 30px;
  padding: 0 10px;
}

.execution-history-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.execution-history-row {
  cursor: pointer;
}

.execution-history-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.execution-history-row.selected td {
  background: #eaf2ff;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.module-select-cell {
  width: 44px;
  text-align: center !important;
}

.module-script-name-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.module-script-name-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.muted-cell {
  color: #64748b;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.status-badge.success {
  border-color: rgba(4, 120, 87, 0.24);
  background: #ecfdf5;
  color: var(--success);
}

.status-badge.error,
.status-badge.failed {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fef2f2;
  color: var(--danger);
}

.status-badge.running,
.status-badge.queued {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eff6ff;
  color: var(--accent);
}

.status-badge.cancelled {
  border-color: rgba(100, 116, 139, 0.28);
  background: #f1f5f9;
  color: #475569;
}

.module-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.module-row-actions .secondary-button {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.compact-modal {
  width: min(520px, 100%);
}

.module-repair-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-repair-summary {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.module-repair-record-header .secondary-button,
.module-repair-record-header .danger-primary-button {
  flex: 0 0 auto;
}

.module-repair-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-repair-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.module-repair-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #ffffff;
  color: #172033;
  padding: 13px 14px;
  text-align: left;
}

.module-repair-toggle:hover {
  background: #f8fafc;
}

.module-repair-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.module-repair-duration {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.module-repair-output {
  border-top: 1px solid var(--border);
  background: #0f172a;
}

.module-repair-output pre {
  min-height: 180px;
  max-height: 42vh;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #dbeafe;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.execution-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.execution-video {
  width: 100%;
  max-height: calc(100vh - 320px);
  min-height: 320px;
  border-radius: 8px;
  background: #020617;
}

.execution-video-path {
  margin: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  padding: 10px 12px;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  line-height: 1.28;
}

.markdown-preview h1 {
  margin-top: 0;
  font-size: 24px;
}

.markdown-preview h2 {
  margin-top: 24px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}

.markdown-preview h3 {
  margin-top: 20px;
  font-size: 16px;
}

.markdown-preview p,
.markdown-preview li {
  font-size: 14px;
}

.markdown-preview p {
  white-space: pre-wrap;
}

.markdown-preview code {
  border-radius: 5px;
  background: #eef2f7;
  padding: 2px 5px;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.92em;
}

.markdown-preview pre {
  overflow: auto;
  border-radius: 3px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 12px;
}

.markdown-preview pre code {
  background: transparent;
  padding: 0;
}

.markdown-preview blockquote {
  margin: 14px 0;
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  padding: 8px 12px;
  color: #334155;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12px;
}

.markdown-preview th,
.markdown-preview td {
  border: 1px solid var(--border);
  padding: 7px 8px;
  vertical-align: top;
}

.markdown-preview th {
  background: #f1f5f9;
  text-align: left;
}

.editor {
  display: block;
  width: 100%;
  height: calc(100vh - 104px);
  min-height: 0;
  resize: none;
  border: 0;
  outline: none;
  padding: 18px;
  color: #0f172a;
  background: #fbfdff;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.68;
}

.editor.code-editor {
  overflow: auto;
  white-space: pre;
  tab-size: 2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.52);
  padding: 24px;
}

.modal {
  display: flex;
  width: min(820px, 100%);
  max-height: min(88vh, 820px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 20px 22px;
}

.modal-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.modal-description {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--surface-muted);
}

.modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  padding: 20px 22px;
}

.plan-transfer-modal {
  width: min(760px, 100%);
}

.plan-export-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #475569;
  font-size: 13px;
}

.plan-export-selection-toolbar label,
.plan-export-module-header,
.plan-export-plan-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-export-tree {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.plan-export-module + .plan-export-module {
  border-top: 1px solid #e2e8f0;
}

.plan-export-module-header {
  padding: 10px 12px;
  background: #f8fafc;
  font-weight: 650;
}

.plan-export-module-plans {
  display: grid;
}

.plan-export-plan-row {
  padding: 8px 12px 8px 34px;
  color: #334155;
}

.plan-export-plan-row:hover {
  background: #f8fbff;
}

.plan-export-plan-row small {
  margin-left: auto;
  color: var(--muted);
}

.plan-export-empty {
  margin: 0;
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-help {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-field span,
.target-path-box span {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.inline-link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.inline-link-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.choice-option input {
  margin: 0;
}

.execution-mode-options {
  flex-direction: column;
}

.execution-mode-option {
  align-items: flex-start;
}

.execution-mode-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.execution-mode-option small {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 11px 12px;
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.62;
}

.form-field textarea[readonly] {
  background: #f8fafc;
  color: #334155;
  resize: none;
}

.form-field textarea[readonly]:focus {
  border-color: var(--border);
  box-shadow: none;
}

#scriptPromptFixed,
#planScriptPromptFixed {
  min-height: 112px;
}

#scriptPromptNote,
#planScriptPromptNote {
  min-height: 84px;
}

#scriptRunPromptFixed {
  min-height: 82px;
}

#scriptRunPromptNote {
  min-height: 126px;
}

.target-path-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-path-box code {
  display: block;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  padding: 11px 12px;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  white-space: pre;
}

.job-output {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.job-status {
  border-bottom: 1px solid var(--border);
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.job-status.success {
  color: var(--success);
}

.job-status.error {
  color: var(--danger);
}

.job-status.cancelled {
  color: #475569;
}

.job-output pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  color: #334155;
  font-family: Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.script-repair-record .job-output pre,
.generation-record .job-output pre {
  max-height: 42vh;
  min-height: 220px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 16px 22px;
}

.hidden {
  display: none !important;
}

.visually-hidden-file {
  position: absolute;
  display: block !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .app-shell {
    position: static;
    inset: auto;
    grid-template-rows: auto auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100vh;
  }

  .global-topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 10px;
  }

  .topbar-brand {
    flex: 1 1 auto;
  }

  .topbar-project {
    order: 3;
    flex: 1 1 100%;
  }

  .workspace-shell,
  .app-shell.suites-mode .workspace-shell,
  .app-shell.admin-mode .workspace-shell,
  .app-shell.settings-mode .workspace-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .nav-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 5px 8px;
  }

  .nav-rail-button {
    width: auto;
    min-width: 76px;
    min-height: 30px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 3px;
    padding: 0 10px;
    flex: 0 0 auto;
  }

  .nav-rail-button.active {
    border-bottom-color: #ffffff;
  }

  .sidebar {
    min-height: auto;
    max-height: 44vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .content {
    min-height: 0;
    overflow: visible;
    padding: 8px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .actions {
    width: 100%;
  }

  .project-select {
    width: 100%;
  }

  .account-actions {
    width: auto;
    justify-content: space-between;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 104px;
  }

  .markdown-preview,
  .script-preview,
  .editor {
    height: 56vh;
    min-height: 360px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .primary-button,
  .modal-footer .secondary-button {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Setup script management shared surfaces */
.setup-preparation-shell {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #f7f9fc;
}

.setup-notice,
.setup-modal-notice {
  flex: 0 0 auto;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.setup-notice.success,
.setup-modal-notice.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--success);
}

.setup-notice.error,
.setup-modal-notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--danger);
}

.setup-management-panel {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  padding: 14px;
}

.setup-management-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.setup-management-header h3,
.setup-management-header p {
  margin: 0;
}

.setup-management-header h3 {
  color: #172033;
  font-size: 18px;
  line-height: 1.3;
}

.setup-management-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.setup-list-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.setup-list-toolbar > label {
  display: grid;
  gap: 4px;
  color: #52647c;
  font-size: 11px;
  font-weight: 750;
}

.setup-toolbar-search {
  width: min(380px, 38vw);
}

.setup-list-toolbar input,
.setup-list-toolbar select {
  height: 34px;
  border: 1px solid #cfd9e6;
  border-radius: 3px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 0 9px;
  font-size: 12px;
}

.setup-list-toolbar input:focus,
.setup-list-toolbar select:focus {
  border-color: rgba(37, 99, 235, 0.76);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.setup-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 3px 3px 0 0;
}

.setup-data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.setup-data-table th,
.setup-data-table td {
  border-bottom: 1px solid #e4eaf2;
  padding: 10px 11px;
  vertical-align: middle;
  text-align: left;
}

.setup-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fc;
  color: #43536a;
  font-size: 11px;
  font-weight: 800;
}

.setup-data-table tbody tr:hover {
  background: #f8fbff;
}

.setup-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.setup-data-table td > strong,
.setup-data-table td > small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-data-table td > strong {
  color: #26374e;
  font-size: 12px;
  font-weight: 800;
}

.setup-data-table td > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.setup-actions-column {
  text-align: right;
}

.setup-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.setup-row-actions button {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 2px 0;
  font-size: 12px;
  font-weight: 750;
}

.setup-row-actions button:hover {
  text-decoration: underline;
}

.setup-row-actions button.danger {
  color: var(--danger);
}

.setup-table-empty {
  height: 180px;
  color: var(--muted);
  text-align: center !important;
}

.setup-table-footer {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  background: #fbfcfe;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 11px;
}

.setup-run-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.setup-run-cell small {
  color: var(--muted);
  font-size: 10px;
}

.setup-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  padding: 28px;
}

.setup-modal {
  display: flex;
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd6e4;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.24);
}

.setup-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 14px 18px;
}

.setup-modal-header h3,
.setup-modal-header p {
  margin: 0;
}

.setup-modal-header h3 {
  color: #18243a;
  font-size: 17px;
}

.setup-modal-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.setup-close-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
}

.setup-close-button:hover {
  color: #24364f;
}

.setup-modal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 18px;
}

.setup-modal-footer-spacer {
  flex: 1 1 auto;
}

.setup-panel-empty {
  display: flex;
  min-height: 160px;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px;
  border: 1px dashed #cbd8e8;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--muted);
  padding: 18px;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.setup-panel-empty strong {
  color: #334155;
  font-size: 12px;
}

.setup-list-empty {
  color: var(--muted);
  padding: 18px 8px;
  font-size: 10px;
  text-align: center;
}

.setup-load-error {
  gap: 10px;
}

.setup-load-error p {
  max-width: 640px;
  margin: 0;
  color: var(--danger);
  text-align: center;
}

.setup-run-modal {
  width: min(1120px, calc(100vw - 56px));
  height: min(760px, calc(100vh - 56px));
}

.setup-run-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-run-layout {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.setup-run-history {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: #fbfcfe;
}

.setup-run-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
  color: #334155;
  font-size: 11px;
}

.setup-run-history > header span {
  color: var(--muted);
}

.setup-history-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 4px;
  overflow: auto;
  padding: 8px;
}

.setup-history-list > button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  padding: 8px;
  text-align: left;
}

.setup-history-list > button:hover,
.setup-history-list > button.active {
  border-color: #b9d4f5;
  background: #eef6ff;
}

.setup-history-list > button > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.setup-history-list strong,
.setup-history-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-history-list strong {
  color: #26374e;
  font-size: 10px;
}

.setup-history-list small {
  color: var(--muted);
  font-size: 9px;
}

.setup-run-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.setup-run-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.setup-run-summary-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fbfcfe;
  padding: 9px;
}

.setup-run-summary-grid span {
  color: var(--muted);
  font-size: 9px;
}

.setup-run-summary-grid strong {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-run-output {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fbfcfe;
}

.setup-run-output > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 9px 11px;
  color: #334155;
  font-size: 11px;
}

.setup-run-output > header span {
  color: var(--muted);
  font-size: 9px;
}

.setup-run-output > div {
  padding: 9px 11px;
}

.setup-run-output label {
  display: block;
  margin-bottom: 5px;
  color: #52647c;
  font-size: 9px;
  font-weight: 800;
}

.setup-run-output pre {
  margin: 0;
  overflow: auto;
  border-radius: 3px;
  background: #f1f5f9;
  color: #334155;
  padding: 10px;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.setup-run-output > div.error {
  border-top: 1px solid #fecaca;
  background: #fff7f7;
}

.setup-scope-chip {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border-radius: 3px;
  background: #e8f1fd;
  color: #275d9f;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 800;
}

.setup-preparation-shell.setup-script-preparation-shell {
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.setup-management-panel.setup-scripts-panel {
  padding: 16px 18px 18px;
}

.setup-data-table.setup-scripts-table {
  min-width: 1020px;
}

.setup-modal.setup-script-modal {
  width: min(1220px, calc(100vw - 56px));
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
}

.setup-run-output.setup-script-run-output pre {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
}
