:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #fff;
  --surface-subtle: #f8fafc;
  --border: #e0e6ed;
  --divider: #edf0f4;
  --text: #213047;
  --secondary: #65748a;
  --muted: #728198;
  --primary: #2474de;
  --primary-soft: #eaf2ff;
  --success: #177650;
  --success-soft: #e8f5ef;
  --warning: #966009;
  --warning-soft: #fff4dc;
  --error: #bb353b;
  --error-soft: #fcecee;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0, #eaf0f8 0, transparent 40%), var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #80aff4;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #80aff4;
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
.app {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  padding: 0 14px 24px;
}
.brand:hover {
  text-decoration: none;
}
.brand span {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--secondary);
  font-weight: 700;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 700;
  padding: 13px 14px 8px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: var(--secondary);
  font-weight: 600;
  padding: 10px 12px;
  margin: 2px 0;
}
nav a:hover {
  background: #f3f6fb;
  text-decoration: none;
}
nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.nav-icon {
  width: 18px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 32px;
}
.instance {
  font-size: 12px;
  padding: 0 14px 16px;
  overflow-wrap: anywhere;
}
.logout button {
  width: 100%;
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 7px;
}
.main {
  min-width: 0;
  padding: 30px clamp(16px, 2.5vw, 44px) 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 6px;
  background: transparent;
  border: 0;
  min-width: 0;
}
.title {
  min-width: 0;
}
.title h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 4px 0 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.title p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  font-weight: 700;
}
.live-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.connection {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}
.connection[data-state="live"]:before {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}
.connection[data-state="error"]:before {
  background: var(--error);
}
small,
.muted,
.mono,
.meta {
  color: var(--secondary);
  font-size: 12px;
}
.mono,
code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
code,
pre,
.path {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  box-shadow: 0 2px 3px #23375202;
}
.card-head,
.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}
.card-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--secondary);
}
.label {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
}
.toolbar label,
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}
.toolbar .search-field {
  flex: 1;
  min-width: 200px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
.field {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  min-height: 36px;
  max-width: 100%;
}
input[type="search"] {
  width: 100%;
}
select {
  min-width: 125px;
}
label input[type="checkbox"] {
  accent-color: var(--primary);
}
.btn,
.run-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap;
  min-height: 32px;
}
.btn:hover,
.run-btn:hover {
  background: #f0f5fc;
  text-decoration: none;
}
.btn.primary,
.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn.danger {
  color: var(--error);
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  padding: 3px 0;
  min-height: 24px;
  color: var(--secondary);
  font-size: 11px;
}
.btn.active {
  background: var(--primary-soft);
  border-color: #b9d2f6;
  color: var(--primary);
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  position: relative;
  transition: border-color 0.2s;
}
.stat:hover {
  border-color: #9bbceb;
  text-decoration: none;
}
.stat .big,
.value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 6px 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat small {
  display: block;
}
.stat.alert {
  border-top: 3px solid var(--error);
}
.stat.good {
  border-top: 3px solid var(--success);
}
.stat.blue {
  border-top: 3px solid var(--primary);
}
#content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.overview-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 20px;
}
.grid,
.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.table-wrap,
.results-scroll {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  height: auto;
  table-layout: auto;
}
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--secondary);
  font-weight: 600;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.4;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8fafd;
}
td .mono {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.report-link,
.report-name {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.report-link:hover {
  color: var(--primary);
}
.name-cell {
  min-width: 200px;
  max-width: 340px;
}
.name-cell small {
  display: block;
  margin-top: 3px;
}
.nowrap {
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  background: #eef1f5;
  color: #5e6d81;
  letter-spacing: 0.1px;
}
.badge.running,
.badge.claimed,
.badge.busy {
  color: #2168ba;
  background: #eaf2ff;
}
.badge.success,
.badge.online,
.ok {
  color: var(--success);
  background: var(--success-soft);
}
.badge.failed,
.badge.offline,
.badge.error,
.err {
  color: var(--error);
  background: var(--error-soft);
}
.badge.timeout,
.badge.warn,
.badge.warning {
  color: var(--warning);
  background: var(--warning-soft);
}
.badge.queued {
  color: #716039;
  background: #f7f3e9;
}
.badge.canceled {
  color: #687487;
  background: #eff1f5;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--divider);
  padding-top: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--secondary);
}
.pagination .actions {
  flex-wrap: nowrap;
}
.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--secondary);
  font-size: 13px;
}
.empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}
.loading {
  color: var(--secondary);
  padding: 50px;
  text-align: center;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  white-space: pre-wrap;
}
.notice a {
  color: inherit;
  text-decoration: underline;
}
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.issue {
  padding: 13px 0;
  border-bottom: 1px solid var(--divider);
}
.issue:first-child {
  padding-top: 0;
}
.issue:last-child {
  border: 0;
  padding-bottom: 0;
}
.issue p {
  font-size: 12px;
  color: var(--secondary);
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.issue .actions {
  justify-content: space-between;
}
.issue-text {
  max-width: 450px;
  overflow-wrap: anywhere;
}
.run-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.active-run {
  background: #f8fbff;
  border: 1px solid #d9e6f9;
  border-radius: 9px;
  padding: 16px;
}
.active-run h3 {
  font-size: 14px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.run-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--secondary);
  gap: 10px;
  margin: 9px 0;
}
.timeout-track,
.progress-track {
  height: 5px;
  border-radius: 3px;
  background: #e7edf5;
  overflow: hidden;
  margin: 10px 0;
}
.timeout-track span,
.progress-track span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}
.timeout-track span.late {
  background: var(--error);
}
.health-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.health-pill {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 7px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
}
.chart-bars {
  height: 104px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  padding-top: 12px;
}
.chart-bar {
  flex: 1;
  min-width: 3px;
  height: var(--height);
  min-height: 2px;
  background: #acd2ee;
  border-radius: 2px 2px 0 0;
  position: relative;
}
.chart-bar .bad {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: var(--bad);
  background: #df9297;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--secondary);
  font-size: 10px;
  margin-top: 6px;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--secondary);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #acd2ee;
  margin-right: 5px;
}
.legend .bad:before {
  background: #df9297;
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 16px;
}
.server-card .card-head {
  align-items: flex-start;
}
.server-card h2 {
  overflow-wrap: anywhere;
}
.server-kpis,
.server-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.server-kpis strong {
  display: block;
  font-size: 18px;
}
.server-chart-label {
  font-size: 10px;
  color: var(--secondary);
  margin-bottom: 6px;
}
.spark {
  height: 64px;
  width: 100%;
  display: block;
}
.chart-empty {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--secondary);
  background: var(--surface-subtle);
  border-radius: 5px;
}
.server-host {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.server-host summary {
  font-size: 12px;
  color: var(--secondary);
  cursor: pointer;
}
.detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 20px;
  align-items: start;
}
.kv {
  display: grid;
  grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
}
.kv dt {
  color: var(--secondary);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.event {
  border-bottom: 1px solid var(--divider);
  padding: 12px 0;
}
.event summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  font-size: 12px;
}
.event summary strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.event pre {
  background: var(--surface-subtle);
  padding: 12px;
  border-radius: 6px;
}
.event small {
  font-size: 10px;
  white-space: nowrap;
}
.events-tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.events-tools input {
  flex: 1;
  min-width: 150px;
}
.quick-search {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.quick-search input {
  flex: 1;
  min-width: 180px;
}
.quick-results {
  display: flex;
  flex-direction: column;
}
.quick-results .file {
  padding: 8px 0;
}
.file,
.assignment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--divider);
  min-width: 0;
  overflow-wrap: anywhere;
}
.list,
.assignment-list {
  display: grid;
  gap: 6px;
}
.props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.prop .k {
  font-size: 11px;
  color: var(--secondary);
}
.prop .v {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.search,
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search input {
  flex: 1;
}
textarea {
  width: 100%;
  min-height: 460px;
  padding: 16px;
  background: #fafbfe;
  border: 1px solid var(--border);
  border-radius: 8px;
  font:
    12px/1.65 "SFMono-Regular",
    Consolas,
    monospace;
  resize: vertical;
  margin-top: 12px;
}
summary {
  cursor: pointer;
}
form {
  max-width: 100%;
}
.editor-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}
.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.shell .card {
  width: min(420px, 100%);
  padding: 36px;
}
.shell h1 {
  font-size: 30px;
  margin: 0;
}
.shell p {
  color: var(--secondary);
}
.shell label {
  display: block;
  margin: 24px 0 6px;
}
.shell input,
.shell button {
  width: 100%;
}
.shell button {
  margin-top: 16px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 7px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 14px 20px;
  background: #22364c;
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 32px #182b4620;
  z-index: 20;
  font-size: 13px;
}
.toast a {
  color: white;
  text-decoration: underline;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 220px;
  z-index: 30;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.legacy .topbar .meta {
  display: none;
}
.legacy .results-card {
  flex: initial;
}
.legacy .results-table {
  height: auto;
}
.legacy table {
  min-width: 650px;
}
.legacy .table-wrap {
  margin-top: 10px;
}
.legacy .card .actions {
  margin-bottom: 10px;
}
.legacy .layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}
.legacy .sidebar-files {
  min-width: 0;
}
.legacy .result {
  padding: 12px;
}
.live-note {
  font-size: 11px;
  color: var(--secondary);
}
@media (min-width: 1700px) {
  .main {
    max-width: 1900px;
    width: 100%;
    margin: auto;
  }
  .stats .big {
    font-size: 38px;
  }
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .main {
    padding: 24px 20px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .title h1 {
    font-size: 25px;
  }
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }
  .brand {
    font-size: 24px;
    padding: 0 10px 8px;
  }
  .sidebar > .nav-label,
  .sidebar-footer,
  nav .nav-label {
    display: none;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  nav a {
    padding: 7px 9px;
    font-size: 11px;
  }
  .nav-icon {
    display: none;
  }
  .main {
    padding: 20px 12px;
    gap: 14px;
  }
  .topbar {
    align-items: flex-start;
  }
  .title h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .live-controls {
    max-width: 140px;
  }
  .connection {
    font-size: 10px;
  }
  .live-controls small {
    font-size: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card {
    padding: 14px;
  }
  .stat .big {
    font-size: 28px;
  }
  .grid,
  .subgrid,
  .editor-grid,
  .legacy .layout {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar label {
    flex: 1;
    min-width: 125px;
  }
  .toolbar .search-field {
    flex-basis: 100%;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .event summary {
    flex-wrap: wrap;
  }
  .event small {
    white-space: normal;
  }
  .props {
    grid-template-columns: 1fr;
  }
  .skip-link {
    left: 10px;
  }
  .table-wrap {
    border-radius: 6px;
  }
  .server-kpis strong {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

.overview-stack {
  gap: 20px;
}
.current-step {
  color: var(--secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
  }
  .sidebar-footer .nav-label {
    display: none;
  }
  .sidebar-footer .instance {
    padding-bottom: 0;
  }
  .sidebar-footer .logout button {
    padding: 5px 12px;
  }
}
.legacy .grid {
  align-items: start;
}

/* Operator workbench: fixed priority area, bounded activity, readable mobile lists. */
.priority-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: start;
}
.priority-grid .card {
  margin: 0;
  min-width: 0;
}
.priority-grid h2 {
  margin-top: 0;
}
.priority-grid .issue {
  padding: 8px 0;
}
.priority-grid .issue p {
  margin: 4px 0;
}
.diagnosis-preview {
  overflow-wrap: anywhere;
}
.compact-runs {
  display: block;
}
.compact-runs .active-run {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 2fr) minmax(
      150px,
      1fr
    );
  gap: 6px 16px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.compact-runs h3 {
  margin: 0;
}
.compact-runs .current-step {
  grid-column: 2;
  margin: 0;
}
.compact-runs .timeout-track {
  display: none;
}
.compact-runs .run-meta {
  margin: 0;
}
.overview-grid {
  grid-template-columns: 1fr;
}
.overview-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pagination-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
#content {
  scroll-margin-top: 20px;
}
#content:focus {
  outline: none;
}
#content td small {
  display: block;
}
#content td a + a {
  margin-left: 5px;
}
.issue-text details summary {
  cursor: pointer;
}
.issue-text details p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.context-back {
  margin-bottom: 12px;
}
.plan-counts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.plan-counts strong {
  display: block;
  font-size: 22px;
}
.issue-work {
  border-left: 4px solid #cb6433;
}
.issue-work[data-state="resolved"] {
  border-left-color: #23916a;
}
.issue-work .actions {
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .priority-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .overview-stack {
    grid-template-columns: 1fr;
  }
  #content .name-cell {
    min-width: 140px;
  }
  #content .nowrap {
    white-space: normal;
  }
  #content .issue-text {
    max-width: 260px;
  }
}
@media (max-width: 760px) {
  .priority-grid {
    grid-template-columns: 1fr;
  }
  .compact-runs .active-run {
    display: block;
  }
  .compact-runs .active-run > * {
    margin: 5px 0;
  }
  #content .table-wrap {
    overflow: visible;
  }
  #content table,
  #content tbody,
  #content tr,
  #content td {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  #content thead {
    display: none;
  }
  #content tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
  }
  #content td {
    border: 0;
    padding: 5px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #content td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
  }
  #content .issue-text {
    max-width: none;
  }
  #content .name-cell {
    min-width: 0;
    max-width: none;
  }
  .pagination-top,
  .pagination {
    font-size: 12px;
  }
  .pagination-top .actions,
  .pagination .actions {
    flex-wrap: wrap;
  }
}
#settings-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#settings-form .card {
  margin-bottom: 16px;
}
.issue-members {
  max-width: 100%;
}
.issue-members .file {
  flex-wrap: wrap;
}
.issue-members a {
  overflow-wrap: anywhere;
  min-width: 0;
}
.issue-members select {
  max-width: 100%;
}
