:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-soft: #eef3f1;
  --ink: #17201d;
  --muted: #66736e;
  --border: #dce5e1;
  --accent: #256f5b;
  --accent-strong: #174f41;
  --danger: #b43d3d;
  --warning: #9a6400;
  --success: #20724d;
  --shadow: 0 18px 40px rgba(23, 32, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #cce3db;
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.auth-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-panel input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
  color: var(--ink);
}

.auth-panel button {
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #fbfcfb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand h1,
.brand p,
.panel-heading h2,
.panel-heading p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
}

.brand p,
.eyebrow,
.section-label,
.meta,
.form-message {
  color: var(--muted);
  font-size: 13px;
}

.new-run-button,
.sidebar-button,
.mini-button,
.form-actions button,
.approval-actions button,
.directory-actions button,
.workspace-picker button,
.requirement-tools button {
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0 14px;
}

.new-run-button:hover,
.sidebar-button:hover,
.mini-button:hover,
.form-actions button:hover,
.approval-actions button:hover,
.directory-actions button:hover,
.workspace-picker button:hover,
.requirement-tools button:hover {
  background: var(--accent-strong);
}

.sidebar-button {
  height: 40px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 800;
  padding: 0 14px;
}

.sidebar-link {
  display: grid;
  place-items: center;
  text-align: center;
}

.sidebar-link.active {
  background: #dfeae5;
  color: var(--accent-strong);
}

.nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-tab {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nav-tab:hover {
  background: #e2ebe7;
  color: var(--ink);
}

.nav-tab.active {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: 0 1px 3px rgba(23, 32, 29, 0.08);
}

.sidebar-button:hover {
  background: #e2ebe7;
}

.mini-button {
  height: 30px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.sidebar-section {
  min-height: 0;
}

.section-label {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.run-list {
  display: grid;
  gap: 8px;
}

.run-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.run-row:hover {
  background: var(--panel-soft);
}

.run-row.active {
  background: #e6efeb;
  border-color: #bfd4cc;
}

.run-row strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-line {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.workspace {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.compose-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.compose-panel {
  padding: 22px;
}

.panel-heading,
.panel-title-row,
.run-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-heading h2,
.run-header h2 {
  font-size: 24px;
  margin: 3px 0 0;
}

.status-pill,
.step-status,
.policy-mode {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-running {
  color: var(--accent);
  background: #e5f1ec;
}

.status-waiting_approval {
  color: var(--warning);
  background: #fff2d8;
}

.status-blocked {
  color: var(--warning);
  background: #fff2d8;
}

.status-completed {
  color: var(--success);
  background: #e5f4ec;
}

.status-failed,
.status-cancelled {
  color: var(--danger);
  background: #fae7e7;
}

.requirement-form {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.requirement-form label {
  font-size: 13px;
  font-weight: 800;
}

.requirement-form input,
.requirement-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
  color: var(--ink);
  resize: vertical;
}

.operation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
}

.operation-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operation-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.operation-options input {
  width: auto;
}

.workspace-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.workspace-picker button {
  white-space: nowrap;
}

.requirement-form input:focus,
.requirement-form textarea:focus {
  outline: 3px solid #cce3db;
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.requirement-tools {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.breakdown-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
}

.breakdown-panel[hidden] {
  display: none;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.breakdown-header strong {
  color: var(--ink);
  font-size: 14px;
}

.breakdown-loading {
  color: var(--muted);
  font-size: 13px;
}

.breakdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.breakdown-item:first-of-type {
  border-top: 0;
}

.breakdown-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.breakdown-item .acceptance {
  color: var(--success);
}

.breakdown-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 800;
  font-size: 14px;
}

.breakdown-check input {
  width: auto;
  margin-top: 3px;
}

.breakdown-item select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px;
}

.muted-item {
  opacity: 0.58;
}

.form-message {
  min-height: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.run-detail,
.control-panel {
  min-width: 0;
}

.panel {
  padding: 20px;
}

.control-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.step {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}

.step-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.step h4 {
  margin: 0;
  font-size: 15px;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.artifact-section {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
}

.artifact-section h3 {
  margin: 0;
  font-size: 14px;
}

.artifact-section p,
.blocked-reason {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.artifact-section pre {
  max-height: 120px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f3;
  color: var(--danger);
  font-size: 12px;
  white-space: pre-wrap;
}

.artifact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.artifact-row strong {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.command-list,
.file-list,
.result-list,
.operation-summary {
  display: grid;
  gap: 6px;
}

.operation-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-pill {
  border-radius: 6px;
  background: #f1f5f3;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.operation-pill.selected {
  background: #e5f4ec;
  color: var(--success);
}

.file-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.artifact-section code,
.validation-result code {
  display: block;
  min-width: 0;
  border-radius: 6px;
  background: #f1f5f3;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.validation-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.validation-result span {
  font-weight: 800;
  text-transform: uppercase;
}

.validation-result.status-passed span {
  color: var(--success);
}

.validation-result.status-failed span {
  color: var(--danger);
}

.approval-box {
  margin-top: 16px;
  border: 1px solid #efd394;
  background: #fff8e9;
  border-radius: 8px;
  padding: 14px;
}

.approval-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.approval-actions .reject {
  background: transparent;
  border: 1px solid #d9b56d;
  color: var(--warning);
}

.secondary-button {
  background: transparent !important;
  border: 1px solid var(--border);
  color: var(--ink) !important;
}

.logs {
  margin-top: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: 520px;
  min-height: 280px;
  overflow: auto;
  border: 1px solid #25342f;
  border-radius: 8px;
  background: #0c1210;
  color: #d9e5df;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.logs-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #25342f;
  background: #111a17;
  color: #94a59d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 9px 12px;
}

[data-log-list] {
  display: grid;
  align-content: start;
  padding: 8px 0;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.log-row {
  display: grid;
  grid-template-columns: 72px 58px 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 2px 12px;
  border-left: 2px solid transparent;
  overflow-wrap: anywhere;
}

.log-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.log-progress {
  border-left-color: var(--accent);
}

.log-validation {
  border-left-color: var(--success);
}

.log-approval {
  border-left-color: var(--warning);
}

.log-terminal {
  border-left-color: #486076;
}

.log-error {
  border-left-color: var(--danger);
  background: rgba(180, 61, 61, 0.12);
}

.log-time,
.log-level,
.log-category,
.log-message {
  min-width: 0;
}

.log-time {
  color: #6f8179;
  user-select: none;
}

.log-level {
  color: #8ba39a;
  font-weight: 800;
}

.log-category {
  color: #6f8179;
  font-weight: 800;
}

.log-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #d9e5df;
  white-space: pre-wrap;
}

.log-message > span,
.log-message > pre {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 29, 0.36);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(23, 32, 29, 0.22);
  padding: 20px;
}

.settings-modal {
  width: min(860px, 100%);
}

.settings-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  overflow: auto;
}

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

.settings-grid label,
.policy-setting-row {
  display: grid;
  gap: 7px;
}

.settings-grid span,
.settings-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-grid input,
.settings-grid select,
.policy-setting-row select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 10px;
}

.settings-policy {
  display: grid;
  gap: 10px;
}

.policy-setting-row {
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.policy-setting-row strong {
  display: block;
  font-size: 14px;
}

.policy-setting-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.directory-current {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfcfb;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.directory-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.directory-list {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
}

.directory-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 9px 12px;
}

.directory-row:hover {
  background: var(--panel-soft);
}

.directory-row:last-child {
  border-bottom: 0;
}

.folder-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e6efeb;
  color: var(--accent);
  font-size: 13px;
}

.directory-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.log-level.error {
  color: var(--danger);
}

.log-level.warn {
  color: var(--warning);
}

.log-level.success {
  color: var(--success);
}

.policy-list,
.validation-list,
.executor-panel,
.account-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.account-status strong {
  font-size: 14px;
}

.account-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-status.status-completed {
  color: var(--success);
  background: #e5f4ec;
}

.account-status.status-failed {
  color: var(--danger);
  background: #fae7e7;
}

.service-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.service-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.service-status.status-completed {
  color: var(--success);
  background: #e5f4ec;
}

.service-status.status-blocked {
  color: var(--warning);
  background: #fff2d8;
}

.service-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-checks {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-checks .status-passed {
  color: var(--success);
}

.service-checks .status-failed {
  color: var(--danger);
}

.account-output {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.account-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-copy-button {
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
}

.account-copy-button:hover {
  color: var(--accent-strong);
  border-color: #bfd4cc;
}

.account-panel pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.account-actions,
.api-key-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-actions button,
.api-key-form button {
  min-height: 34px;
}

.account-actions .reject {
  border-color: #e5bbbb;
  color: var(--danger) !important;
}

.api-key-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.api-key-form input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 9px 10px;
}

.auth-link-box {
  display: grid;
  gap: 6px;
  border: 1px solid #bfd4cc;
  border-radius: 8px;
  background: #f2f8f5;
  padding: 10px;
}

.auth-link-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-link-box a {
  color: var(--accent-strong);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.device-code-box {
  display: grid;
  gap: 6px;
  border: 1px solid #e0c178;
  border-radius: 8px;
  background: #fff8e9;
  padding: 12px;
}

.device-code-box span {
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}

.device-code-box strong {
  color: var(--ink);
  font: 800 24px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.device-code-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.executor-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.executor-mode strong {
  text-transform: uppercase;
}

.config-row {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.config-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.config-row code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.policy-row,
.validation-row {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.policy-row:first-child,
.validation-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.policy-main strong,
.validation-row strong {
  font-size: 14px;
}

.policy-row p,
.validation-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.terminal-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.terminal-workspace {
  padding: 24px;
}

.terminal-page-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  height: calc(100vh - 48px);
  min-height: 560px;
}

.terminal-page-heading,
.terminal-workspace-form,
.standalone-command-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.terminal-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.terminal-page-heading h2 {
  margin: 0;
}

.terminal-workspace-form {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.terminal-workspace-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.standalone-terminal-frame {
  display: block;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #101613;
  border: 1px solid #1d2a24;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .app-shell,
  .detail-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .log-row {
    grid-template-columns: 64px 52px minmax(0, 1fr);
    gap: 8px;
  }

  .log-category {
    display: none;
  }
}
