:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --panel-muted: #f0f2ed;
  --topbar: #fbfcfa;
  --control: #ffffff;
  --control-muted: #f1f3ef;
  --editor-bg: #fcfdfb;
  --editor-text: #17201c;
  --editor-gutter: #eef2ec;
  --editor-line: #cfd8d2;
  --editor-selection: #cfe6ff;
  --syntax-property: #0a6cae;
  --syntax-string: #a95617;
  --syntax-number: #7b4fc4;
  --syntax-atom: #0f6b61;
  --syntax-comment: #728178;
  --line: #d8ddd2;
  --text: #1d2522;
  --muted: #66736c;
  --accent: #0f6b61;
  --accent-strong: #0a4f47;
  --accent-soft: #dcefeb;
  --primary-text: #ffffff;
  --button-bg: #ffffff;
  --button-border: #a8b8af;
  --button-hover-bg: #eaf5f2;
  --button-hover-border: #0f6b61;
  --button-shadow: 0 1px 2px rgba(31, 42, 38, 0.12);
  --button-hover-shadow: 0 4px 12px rgba(15, 107, 97, 0.18);
  --row-bg: #ffffff;
  --row-border: #d5ddd7;
  --row-hover-bg: #edf7f4;
  --row-hover-border: #8cbeb5;
  --row-active-bg: #d3eee8;
  --row-active-border: #0f6b61;
  --row-shadow: 0 1px 3px rgba(31, 42, 38, 0.08);
  --row-active-shadow: inset 3px 0 0 #0f6b61, 0 5px 14px rgba(15, 107, 97, 0.16);
  --warning: #9a6200;
  --warning-soft: #fff2d8;
  --danger: #a33a32;
  --badge-bg: #edf0f3;
  --badge-text: #35414b;
  --toast-bg: #1f2925;
  --toast-text: #ffffff;
  --modal-backdrop: rgba(17, 23, 20, 0.48);
  --diff-add-bg: #e4f7e9;
  --diff-add-line: #1d8c4f;
  --diff-remove-bg: #fde9e7;
  --diff-remove-line: #c4473f;
  --diff-mod-bg: #fff6d7;
  --diff-mod-line: #b17a00;
  --diff-context-bg: #f8faf7;
  --diff-separator-bg: #eef2ed;
  --shadow: 0 16px 36px rgba(31, 42, 38, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111714;
  --panel: #18211d;
  --panel-muted: #202b26;
  --topbar: #151d19;
  --control: #202b26;
  --control-muted: #1b2520;
  --editor-bg: #101713;
  --editor-text: #e4eee8;
  --editor-gutter: #16201b;
  --editor-line: #2e3b35;
  --editor-selection: #254b61;
  --syntax-property: #83d7ff;
  --syntax-string: #ffb38a;
  --syntax-number: #c6a5ff;
  --syntax-atom: #8be9d8;
  --syntax-comment: #7f8d86;
  --line: #324039;
  --text: #edf4ef;
  --muted: #9eada6;
  --accent: #58c9b8;
  --accent-strong: #9be3d7;
  --accent-soft: #193b35;
  --primary-text: #0c1612;
  --button-bg: #26342e;
  --button-border: #52645c;
  --button-hover-bg: #30453e;
  --button-hover-border: #58c9b8;
  --button-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  --button-hover-shadow: 0 6px 16px rgba(88, 201, 184, 0.18);
  --row-bg: #1d2924;
  --row-border: #3b4b44;
  --row-hover-bg: #263a33;
  --row-hover-border: #58c9b8;
  --row-active-bg: #183f37;
  --row-active-border: #7bd7c8;
  --row-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  --row-active-shadow: inset 3px 0 0 #7bd7c8, 0 8px 18px rgba(88, 201, 184, 0.16);
  --warning: #f0be5a;
  --warning-soft: #493714;
  --danger: #ff8a80;
  --badge-bg: #28352f;
  --badge-text: #d8e5de;
  --toast-bg: #e8f1ec;
  --toast-text: #15201b;
  --modal-backdrop: rgba(0, 0, 0, 0.68);
  --diff-add-bg: #173725;
  --diff-add-line: #62d28f;
  --diff-remove-bg: #3b1e1e;
  --diff-remove-line: #ff8a80;
  --diff-mod-bg: #3a3217;
  --diff-mod-line: #f0be5a;
  --diff-context-bg: #151f1a;
  --diff-separator-bg: #202b26;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--button-border);
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
  padding: 0 14px;
  box-shadow: var(--button-shadow);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.45;
}

button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
}

.brand h1,
.pane h2,
.file-title h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.2;
}

.brand p,
.pane-header p,
.file-title p,
.editor-footer {
  color: var(--muted);
}

.brand p,
.pane-header p,
.file-title p {
  margin: 4px 0 0;
  font-size: 13px;
}

.summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 14px;
}

.summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control);
  padding: 7px 12px;
}

.summary strong {
  color: var(--text);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(520px, 1fr);
  gap: 16px;
  height: calc(100vh - 72px);
  padding: 16px;
}

.pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pane-header,
.editor-header,
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.pane-header h2,
.file-title h2 {
  font-size: 15px;
  line-height: 1.25;
}

.icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  color: var(--accent-strong);
  border-color: var(--button-border);
  background: var(--button-bg);
  font-weight: 800;
}

.icon-button:hover:not(:disabled),
.secondary:hover:not(:disabled) {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-border);
  color: var(--accent-strong);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-1px);
}

.search {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
}

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

.search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--control);
  color: var(--text);
}

.search input:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.project-list,
.file-list,
.config-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.project-row,
.file-row,
.config-row {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid var(--row-border);
  border-radius: 6px;
  background: var(--row-bg);
  color: var(--text);
  box-shadow: var(--row-shadow);
  margin-bottom: 6px;
  padding: 10px;
  text-align: left;
}

.project-row:hover,
.file-row:hover,
.config-row:hover {
  background: var(--row-hover-bg);
  border-color: var(--row-hover-border);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-1px);
}

.project-row.active,
.file-row.active,
.config-row.active {
  border-color: var(--row-active-border);
  background: var(--row-active-bg);
  box-shadow: var(--row-active-shadow);
}

.project-row strong,
.file-row strong,
.config-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row span,
.file-row span,
.config-row span {
  color: var(--muted);
  font-size: 12px;
}

.file-row,
.config-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.file-row .file-main,
.config-row .file-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.badge {
  align-self: start;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.badge.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.editor-pane {
  min-width: 0;
}

.editor-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.file-title {
  min-width: min(100%, 320px);
}

.file-title h2,
.file-title p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--primary-text);
  font-weight: 800;
}

.primary:hover:not(:disabled) {
  background: var(--accent-strong);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-1px);
}

.secondary {
  border-color: var(--button-border);
  background: var(--button-bg);
  color: var(--text);
  font-weight: 700;
}

.theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 132px;
  border: 1px solid var(--button-border);
  border-radius: 7px;
  background: var(--control-muted);
  padding: 3px;
}

.theme-toggle button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 0 10px;
}

.theme-toggle button.active {
  background: var(--button-bg);
  border-color: var(--button-hover-border);
  color: var(--text);
  box-shadow: var(--button-shadow);
}

textarea {
  flex: 1;
  width: 100%;
  min-height: 320px;
  resize: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  color: var(--editor-text);
  background: var(--editor-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
}

textarea:disabled {
  color: var(--muted);
  background: var(--control-muted);
}

.editor-pane .CodeMirror {
  flex: 1;
  height: auto;
  min-height: 320px;
  border-bottom: 1px solid var(--line);
  background: var(--editor-bg);
  color: var(--editor-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.editor-pane .CodeMirror-scroll {
  min-height: 320px;
}

.editor-pane .CodeMirror-gutters {
  border-right: 1px solid var(--editor-line);
  background: var(--editor-gutter);
}

.editor-pane .CodeMirror-linenumber {
  color: var(--muted);
}

.editor-pane .CodeMirror-cursor {
  border-left-color: var(--editor-text);
}

.editor-pane .CodeMirror-selected {
  background: var(--editor-selection);
}

.editor-pane .CodeMirror-focused .CodeMirror-selected {
  background: var(--editor-selection);
}

.editor-pane .CodeMirror-activeline-background {
  background: var(--panel-muted);
}

.editor-pane .CodeMirror-foldmarker {
  color: var(--accent-strong);
  text-shadow: none;
}

.editor-pane .CodeMirror-foldgutter {
  width: 16px;
}

.editor-pane .CodeMirror-foldgutter-open,
.editor-pane .CodeMirror-foldgutter-folded {
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.editor-pane .CodeMirror-foldgutter-open:hover,
.editor-pane .CodeMirror-foldgutter-folded:hover {
  color: var(--accent-strong);
}

.editor-pane .CodeMirror-foldgutter-open:after {
  content: "\25BE";
}

.editor-pane .CodeMirror-foldgutter-folded:after {
  content: "\25B8";
}

.editor-pane .CodeMirror-code > div {
  border-left: 1px solid transparent;
}

.editor-pane .CodeMirror-focused .CodeMirror-code > div.CodeMirror-activeline {
  border-left-color: var(--accent);
}

.editor-pane .cm-property {
  color: var(--syntax-property);
}

.editor-pane .cm-string,
.editor-pane .cm-string-2 {
  color: var(--syntax-string);
}

.editor-pane .cm-number {
  color: var(--syntax-number);
}

.editor-pane .cm-atom {
  color: var(--syntax-atom);
}

.editor-pane .cm-comment {
  color: var(--syntax-comment);
  font-style: italic;
}

.editor-pane .editor-disabled {
  opacity: 0.72;
}

.editor-footer {
  min-height: 45px;
  border-bottom: 0;
  font-size: 13px;
  flex-wrap: wrap;
}

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

.state-ok {
  color: var(--accent-strong);
}

.empty,
.loading {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--toast-bg);
  color: var(--toast-text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  padding: 12px 14px;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: var(--modal-backdrop);
  padding: 18px;
}

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

.confirm-modal {
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.confirm-header,
.confirm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.confirm-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.confirm-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.confirm-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.diff-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
}

.diff-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control);
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.diff-pill.added {
  border-color: var(--diff-add-line);
  background: var(--diff-add-bg);
}

.diff-pill.removed {
  border-color: var(--diff-remove-line);
  background: var(--diff-remove-bg);
}

.diff-pill.modified {
  border-color: var(--diff-mod-line);
  background: var(--diff-mod-bg);
}

.diff-view {
  min-height: 280px;
  overflow: auto;
  background: var(--editor-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.diff-row {
  display: grid;
  grid-template-columns: 58px 58px 72px minmax(0, 1fr);
  border-bottom: 1px solid var(--editor-line);
  background: var(--diff-context-bg);
}

.diff-row.added {
  background: var(--diff-add-bg);
}

.diff-row.removed {
  background: var(--diff-remove-bg);
}

.diff-row.modified-old,
.diff-row.modified-new {
  background: var(--diff-mod-bg);
}

.diff-row.separator {
  grid-template-columns: 1fr;
  padding: 8px 14px;
  background: var(--diff-separator-bg);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.diff-line-no,
.diff-type,
.diff-code {
  min-width: 0;
  padding: 3px 8px;
}

.diff-line-no {
  color: var(--muted);
  text-align: right;
  user-select: none;
}

.diff-type {
  border-left: 1px solid var(--editor-line);
  border-right: 1px solid var(--editor-line);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  user-select: none;
}

.diff-row.added .diff-type {
  color: var(--diff-add-line);
}

.diff-row.removed .diff-type {
  color: var(--diff-remove-line);
}

.diff-row.modified-old .diff-type,
.diff-row.modified-new .diff-type {
  color: var(--diff-mod-line);
}

.diff-code {
  overflow: auto hidden;
  color: var(--editor-text);
  white-space: pre;
}

.build-action {
  background: #0b6bd3;
  border-color: #0754a6;
}

.build-action:hover:not(:disabled) {
  background: #0754a6;
}

.build-modal {
  width: min(920px, 100%);
}

.build-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
}

.build-summary-item {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
  padding: 9px 11px;
}

.build-summary-item.compact {
  min-width: 90px;
}

.build-summary-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.build-summary-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-param-form {
  display: grid;
  gap: 14px;
  min-height: 180px;
  max-height: min(560px, calc(100vh - 260px));
  overflow: auto;
  padding: 16px;
  background: var(--editor-bg);
}

.build-param-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 13px;
}

.param-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.param-label strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.param-required {
  border: 1px solid var(--warning);
  border-radius: 999px;
  color: var(--warning);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.param-kind,
.param-source {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-muted);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.param-source {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.build-param-field p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.build-param-field input:not([type="checkbox"]),
.build-param-field select,
.build-param-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control);
  color: var(--text);
  padding: 8px 10px;
}

.build-param-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.build-param-field select[multiple] {
  min-height: 150px;
}

.build-param-field textarea {
  min-height: 92px;
  resize: vertical;
  font-family: inherit;
}

.choice-control {
  display: grid;
  gap: 8px;
}

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

.choice-filter-row .choice-filter {
  min-height: 36px;
}

.choice-count,
.choice-hint {
  color: var(--muted);
  font-size: 12px;
}

.choice-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-muted);
  padding: 7px 10px;
  white-space: nowrap;
}

.choice-hint {
  display: block;
}

.jenkins-run-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel-muted);
  padding: 12px 14px;
}

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

.jenkins-run-panel strong {
  display: block;
  font-size: 13px;
}

.jenkins-run-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.login-shell {
  width: min(100%, 420px);
}

.login-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-heading {
  display: grid;
  gap: 6px;
}

.login-heading h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.login-heading p,
.login-error {
  margin: 0;
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 7px;
}

.login-panel label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control);
  color: var(--text);
  padding: 0 12px;
}

.login-panel input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.login-panel .primary {
  min-height: 42px;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: minmax(280px, 360px) 1fr;
    height: auto;
    min-height: calc(100vh - 72px);
  }

  .editor-pane {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu span,
  .user-menu button {
    flex: 1 1 0;
  }

  .theme-toggle {
    width: 100%;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .editor-pane {
    min-height: 560px;
  }

  .actions {
    width: 100%;
    justify-content: stretch;
  }

  .actions button {
    flex: 1 1 130px;
  }

  .build-summary,
  .choice-filter-row {
    grid-template-columns: 1fr;
  }

  .choice-count {
    justify-self: start;
  }

  .jenkins-run-panel {
    align-items: stretch;
    flex-direction: column;
  }
}
