:root {
  --paper:#F2F0EC;
  --surface:#FBFAF8;
  --raised:#FFFFFF;
  --ink:#23201B;
  --ink-2:#4A453D;
  --stone:#6E6A62;
  --hair:#DCD8D0;
  --green:#0F6E56;
  --green-wash:#E3EDE8;
  --amber:#A8850C;
  --rust:#6B1030;
  --rust-wash:#F4E2E7;
  --on-green:#FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:#15140F;
    --surface:#1C1B16;
    --raised:#23221C;
    --ink:#EDEAE2;
    --ink-2:#BDB8AC;
    --stone:#8A857A;
    --hair:#33312A;
    --green:#5FBF9E;
    --green-wash:#17342B;
    --amber:#E0BC66;
    --rust:#DC6A72;
    --rust-wash:#33161D;
    --on-green:#0E1512;
  }
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

.mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-wash);
  display: inline-block;
  flex: none;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.gate {
  width: 100%;
  max-width: 380px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 34px 30px 28px;
}

.brandline {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.lede {
  color: var(--stone);
  font-size: 12.5px;
  margin: 4px 0 26px 20px;
}

label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 15px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 3px;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px;
}

button {
  width: 100%;
  padding: 10px;
  background: var(--green);
  color: var(--on-green);
  border: none;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.msg {
  background: var(--rust-wash);
  color: var(--rust);
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 12.5px;
  margin: 0 0 16px;
}

.foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--stone);
  line-height: 1.45;
}

.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
}
.bar .brand {
  font-size: 15px;
}

.spacer {
  flex: 1;
}

.who {
  font-size: 12.5px;
  color: var(--ink-2);
}
.who .rank {
  color: var(--stone);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
}

.mini {
  width: auto;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 500;
}
.mini:hover {
  border-color: var(--green);
  color: var(--green);
  filter: none;
}

.panel {
  padding: 26px;
  max-width: 70ch;
}
.panel h1 {
  font-size: 20px;
  margin: 0 0 6px;
}
.panel .lede {
  margin: 0 0 18px;
  font-size: 13px;
}
.panel .note {
  font-size: 12.5px;
  color: var(--stone);
  border-left: 2px solid var(--green);
  padding-left: 12px;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.rail {
  border-right: 1px solid var(--hair);
  padding: 16px 0 40px;
  min-height: 70vh;
}
.rail h2 {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin: 0 0 9px;
  padding: 0 18px;
}

@media (max-width: 900px) {
  .rail {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    min-height: 0;
  }
}
.rail-note {
  padding: 0 18px;
  font-size: 12px;
  color: var(--stone);
  line-height: 1.5;
}
.rail-note.bad {
  color: var(--rust);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.proj {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px 18px;
  background: none;
  color: var(--ink);
  border: none;
  border-left: 2px solid transparent;
  font: inherit;
  cursor: pointer;
}
.proj:hover {
  background: var(--green-wash);
  filter: none;
}
.proj[aria-current=true] {
  background: var(--green-wash);
  border-left-color: var(--green);
}
.proj .nm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  justify-self: center;
}

.d-ok {
  background: var(--green);
}

.d-stop {
  background: var(--rust);
}

.d-none {
  border: 1.5px solid var(--stone);
}

.p-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: 600;
}

.p-desc {
  color: var(--stone);
  font-size: 13px;
  margin-top: 3px;
}

.clone {
  margin-top: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-2);
}
.clone .sep {
  color: var(--hair);
}
.clone code {
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 3px 8px;
  border-radius: 2px;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 20px 0;
  font-size: 12.5px;
}
.facts dt {
  color: var(--stone);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: center;
}
.facts dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
}

.threads {
  margin-top: 26px;
}

h3.sec {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin: 22px 0 10px;
}

.note {
  font-size: 12.5px;
  color: var(--stone);
  border-left: 2px solid var(--green);
  padding-left: 12px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.item {
  border: 1px solid var(--hair);
  border-left: 3px solid var(--stone);
  border-radius: 3px;
  background: var(--raised);
  padding: 11px 13px;
}
.item.sev-crit {
  border-left-color: var(--rust);
}
.item.sev-warn {
  border-left-color: var(--amber);
}

.i-top {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
}

.i-title {
  font-weight: 600;
  font-size: 13.5px;
  flex: 1;
  min-width: 170px;
}

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.c-obs {
  background: var(--amber-wash, #F5EDD8);
  color: var(--amber);
}

.c-acc {
  background: var(--green-wash);
  color: var(--green);
}

.c-who {
  background: var(--hair);
  color: var(--ink-2);
}

.i-body {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 5px;
  line-height: 1.5;
}

.i-from {
  font-size: 11px;
  color: var(--stone);
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
}

.i-act {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.why {
  font-size: 11.5px;
  color: var(--stone);
}

.report {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.report input {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
  font-family: inherit;
  font-size: 13px;
}
.report button {
  width: auto;
}

:root {
  --amber-wash: #F5EDD8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --amber-wash: #33290F;
  }
}
.cmd-entry {
  border-bottom: 1px solid var(--hair);
  padding-bottom: 12px;
  margin-bottom: 12px;
  grid-template-columns: 14px 1fr;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 11px;
  margin: 20px 0 26px;
}

.tile {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  padding: 13px 15px;
  border-top: 3px solid var(--hair);
}
.tile .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tile .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin-top: 3px;
}
.tile .sub {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 6px;
  line-height: 1.4;
}
.tile.t-you {
  border-top-color: var(--rust);
}
.tile.t-live {
  border-top-color: var(--green);
}
.tile.t-quiet {
  border-top-color: var(--stone);
}
.tile.t-done {
  border-top-color: var(--hair);
}

.wait {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}

.wrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 15px;
  border-top: 1px solid var(--hair);
}
.wrow:first-child {
  border-top: none;
}

.w-p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--stone);
  white-space: nowrap;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 11px;
}

.mate {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  padding: 13px 15px;
}
.mate .nm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}
.mate ul {
  margin: 9px 0 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.tblwrap {
  overflow-x: auto;
}

.allp {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.allp th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  padding: 0 10px 7px 0;
}
.allp td {
  padding: 8px 10px 8px 0;
  border-top: 1px solid var(--hair);
  font-variant-numeric: tabular-nums;
}
.allp .pn {
  font-family: "IBM Plex Mono", monospace;
}
.allp .dim {
  color: var(--stone);
  font-size: 11.5px;
}
.allp .hot {
  color: var(--rust);
  font-weight: 600;
}

.ladder {
  margin-top: 26px;
}

.rungs-box {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}

.rungs-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
}

.pips {
  display: flex;
  gap: 4px;
}

.pip {
  width: 22px;
  height: 7px;
  border-radius: 1px;
  background: var(--hair);
}
.pip.on {
  background: var(--green);
}
.pip.warn {
  background: var(--amber);
}
.pip.bad {
  background: var(--rust);
}

.count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.hint {
  font-size: 11.5px;
  color: var(--stone);
  margin-left: auto;
}

.rung {
  border-top: 1px solid var(--hair);
  padding: 9px 15px;
}
.rung:first-of-type {
  border-top: none;
}
.rung.blocked {
  background: var(--rust-wash);
}

.r-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.gl {
  font-family: "IBM Plex Mono", monospace;
  width: 14px;
  text-align: center;
}

.gl-ok {
  color: var(--green);
}

.gl-run {
  color: var(--amber);
}

.gl-stop {
  color: var(--rust);
}

.gl-none {
  color: var(--stone);
}

.r-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--stone);
}

.r-t {
  font-size: 13.5px;
  flex: 1;
  min-width: 160px;
}

.r-by {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--green);
}

.r-act {
  display: flex;
  gap: 6px;
}

.datum {
  margin: 8px 0 0 24px;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-x: auto;
}

.prove {
  margin: 10px 0 0 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.prove .why {
  width: 100%;
  margin: 0 0 4px;
}
.prove input {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}
.prove button {
  width: auto;
}

.mini.danger {
  border-color: var(--rust);
  color: var(--rust);
}
.mini.danger:hover {
  background: var(--rust-wash);
}

.tabs {
  display: flex;
  gap: 2px;
  margin: 20px 0 0;
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
}

.tab {
  padding: 8px 13px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 13px;
  color: var(--stone);
  font-weight: 500;
  width: auto;
  cursor: pointer;
}
.tab[aria-selected=true] {
  color: var(--ink);
  border-bottom-color: var(--green);
}
.tab:hover {
  filter: none;
}

.fs {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
  background: var(--raised);
  margin-top: 14px;
}

@media (max-width: 800px) {
  .fs {
    grid-template-columns: 1fr;
  }
}
.tree {
  border-right: 1px solid var(--hair);
  padding: 8px 0;
  max-height: 460px;
  overflow: auto;
  min-height: 0;
}

.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 12px 8px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--stone);
  flex-wrap: wrap;
}
.crumb button {
  width: auto;
  padding: 2px 8px;
  font-size: 11px;
}

.node {
  display: flex;
  gap: 6px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 3px 12px;
  color: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  cursor: pointer;
}
.node:hover {
  background: var(--green-wash);
  filter: none;
}
.node .tw {
  color: var(--green);
  width: 10px;
}
.node .sz {
  margin-left: auto;
  color: var(--stone);
  font-size: 10.5px;
}

.preview {
  padding: 12px 15px;
  min-width: 0;
  overflow: auto;
  max-height: 460px;
}
.preview .fname {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--stone);
  margin-bottom: 9px;
}
.preview pre {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.commits {
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
  margin-top: 14px;
}

.commit {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.commit:first-child {
  border-top: none;
}
.commit .sha {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--green);
}
.commit .msg {
  font-size: 13px;
}
.commit .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--stone);
  text-align: right;
  white-space: nowrap;
}
.commit .churn {
  color: var(--ink-2);
}
