:root {
  --bg: #111113;
  --fg: #e6e6e9;
  --soft: #b4b4bc;
  --dim: #8a8a93;
  --line: #26262b;
  --hover: #19191d;
  --good: #3fb950;
  --bad: #f85149;
  --warn: #d29922;
  --run: #58a6ff;
  /* Every control has one height, one corner and one way to answer the
     pointer: a soft fill, stronger for a line's step. */
  --control: 26px;
  --radius: 6px;
  --press: color-mix(in srgb, var(--fg) 7%, var(--bg));
  --fill: color-mix(in srgb, var(--fg) 12%, var(--bg));
  --fill-strong: color-mix(in srgb, var(--fg) 19%, var(--bg));
  --edge: color-mix(in srgb, var(--fg) 22%, var(--bg));
  font:
    14px/1.4 system-ui,
    sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #18181b;
    --soft: #45454d;
    --dim: #6f6f78;
    --line: #e5e5e8;
    --hover: #f6f6f7;
    --good: #1a7f37;
    --bad: #cf222e;
    --warn: #9a6700;
    --run: #0969da;
    color-scheme: light;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0 auto;
  padding: 0 20px 40px;
  max-width: 1320px;
  background: var(--bg);
  color: var(--fg);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--run);
  outline-offset: 2px;
}
code,
kbd,
.lead,
.when,
small {
  font:
    12px ui-monospace,
    monospace;
}
.good {
  color: var(--good);
}
.bad {
  color: var(--bad);
}
.warn {
  color: var(--warn);
}
.run {
  color: var(--run);
}
.dim,
.muted,
small {
  color: var(--dim);
}

/* Until the first dashboard arrives: the sign-in's mark, its dial turning, and
   a line on what the page waits for. It shows only after a moment, so a warm
   load goes straight to the page without a flash. */
#boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26vh;
  color: var(--dim);
  text-align: center;
  animation: rise 0.5s 0.3s ease-out both;
}
#boot .mark circle {
  stroke-dasharray: 13 31;
  transform-origin: center;
  transform-box: fill-box;
  animation: turn 1.1s linear infinite;
}
#boot-say {
  margin: 6px 0 0;
  font:
    12px ui-monospace,
    monospace;
  color: var(--soft);
}
#boot-hint {
  margin: 6px 0 0;
  max-width: 34em;
  min-height: 1.4em;
  font-size: 13px;
  transition: opacity 0.4s;
}
#boot-hint:empty {
  opacity: 0;
}
#boot.stalled .mark circle {
  stroke-dasharray: none;
  animation: none;
}
#boot-retry {
  margin-top: 18px;
}
#shell {
  animation: rise 0.4s ease-out both;
}
/* The sign-in: the cockpit's mark and its one button over the shipped strip's
   squares, which light up and fade in turn. Shades of the text colour only. */
#login {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26vh;
  color: var(--dim);
  animation: rise 0.6s ease-out both;
}
#login-grid {
  position: absolute;
  inset: 12vh 0 auto;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 5px;
  margin: 0 auto;
  max-width: 760px;
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
}
#login-grid > span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--line);
  animation: blink 12s var(--delay) ease-in-out infinite;
}
#login-grid > .l1 {
  background: color-mix(in srgb, var(--fg) 14%, var(--bg));
}
#login-grid > .l2 {
  background: color-mix(in srgb, var(--fg) 26%, var(--bg));
}
#login-grid > .l3 {
  background: color-mix(in srgb, var(--fg) 42%, var(--bg));
}
#login-grid > .l4 {
  background: color-mix(in srgb, var(--fg) 62%, var(--bg));
}
.mark {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 10px var(--bg);
  border-radius: 12px;
}
.mark rect {
  fill: var(--fg);
}
.mark circle {
  fill: none;
  stroke: var(--bg);
  stroke-width: 3;
}
#login .mark circle {
  stroke-dasharray: 44;
  animation: dial 1.4s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#login h1,
#boot h1 {
  margin: 0;
  padding: 0 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  background: var(--bg);
  border-radius: 6px;
}
#login .tagline {
  margin: 6px 0 28px;
  padding: 0 10px;
  font:
    12px ui-monospace,
    monospace;
  background: var(--bg);
  border-radius: 4px;
}
#sign-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 8px var(--bg);
  transition: transform 0.15s;
}
#sign-in:hover {
  background: color-mix(in srgb, var(--fg) 86%, var(--bg));
  transform: translateY(-1px);
}
#sign-in kbd {
  border-color: color-mix(in srgb, var(--bg) 30%, var(--fg));
  color: color-mix(in srgb, var(--bg) 60%, var(--fg));
}
#login-note:not(:empty) {
  padding: 0 10px;
  background: var(--bg);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes dial {
  from {
    stroke-dashoffset: 44;
  }
}
@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  #login,
  #login *,
  #login-grid > span,
  #boot,
  #boot *,
  #shell {
    animation: none;
    transition: none;
  }
}

/* The header stays on top: the brand, the sections of the page, then what
   the page says, how fresh it is and who is signed in. */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--dim);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--fg);
}
.brand:hover {
  text-decoration: none;
}
header .mark {
  width: 20px;
  height: 20px;
  margin: 0;
  box-shadow: none;
  border-radius: 5px;
}
header .mark rect {
  fill: var(--fg);
  stroke: none;
}
header .mark circle {
  stroke: var(--bg);
  stroke-width: 3;
}
#sections {
  display: flex;
  align-self: stretch;
  gap: 2px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
#sections a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  white-space: nowrap;
  color: var(--dim);
}
#sections a:hover {
  text-decoration: none;
  color: var(--fg);
}
#sections a[aria-current] {
  color: var(--fg);
}
/* The current section is underlined on the header's own edge. */
#sections a[aria-current]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 1px;
  background: var(--fg);
}
#sections a span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#sections a span:empty {
  display: none;
}
/* Something broken or ready to merge: the count is filled. */
#sections a span.due {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  line-height: 18px;
  text-align: center;
  background: var(--fill-strong);
  color: var(--fg);
}
#flash {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--fg);
}
#flash.bad {
  color: var(--bad);
}
#flash:empty {
  visibility: hidden;
}
header .group {
  display: flex;
  align-items: center;
  gap: 10px;
}
#me {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
#account {
  color: var(--soft);
}
header button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
}
#flash {
  width: auto;
  height: auto;
  place-items: initial;
}
header svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#fresh {
  font-variant-numeric: tabular-nums;
}
/* Turns while a refresh is on its way, so a press of r answers at once. */
#refresh.spin svg {
  animation: turn 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #refresh.spin svg {
    animation: none;
  }
  #refresh.spin {
    opacity: 0.4;
  }
}
header button:hover {
  color: var(--fg);
}
#refresh:hover,
#logout:hover {
  background: var(--press);
}
#errors p {
  margin: 0 0 6px;
  color: var(--warn);
}
/* PRs merged per day, across every project. Shades of the text colour, not a
   palette: the busier the day, the stronger the square. Every square is the
   same fixed size on the same pitch, and nothing that answers the pointer
   moves it or grows it: a ring is drawn inside the square. The strip is as
   wide as the whole squares that fit, newest on the right; a narrow page
   drops the oldest days. */
.shipped {
  --cell: 18px;
  --gap: 3px;
  display: flex;
  justify-content: flex-end;
  gap: var(--gap);
  width: min(
    calc(60 * (var(--cell) + var(--gap)) - var(--gap)),
    calc(round(down, 100% + var(--gap), var(--cell) + var(--gap)) - var(--gap))
  );
  margin-top: 20px;
  overflow-x: clip;
}
.shipped > span {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--cell);
  height: var(--cell);
  border-radius: 3px;
  background: var(--line);
  font:
    10px ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--soft);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.12s;
}
.shipped > .l1 {
  background: color-mix(in srgb, var(--fg) 14%, var(--bg));
}
.shipped > .l2 {
  background: color-mix(in srgb, var(--fg) 26%, var(--bg));
}
.shipped > .l3 {
  background: color-mix(in srgb, var(--fg) 42%, var(--bg));
  color: var(--fg);
}
.shipped > .l4 {
  background: color-mix(in srgb, var(--fg) 62%, var(--bg));
  color: var(--bg);
}
/* Today wears a quiet ring; the day pointed at or held, a bright one with a
   hairline of background inside it, so it reads on any shade. */
.shipped > .today {
  box-shadow: inset 0 0 0 1px var(--dim);
}
.shipped > .on,
.shipped > .held {
  box-shadow:
    inset 0 0 0 1px var(--fg),
    inset 0 0 0 2px var(--bg);
}
/* While a day is picked, the rest steps back. */
.shipped.picking > span:not(.on, .held) {
  opacity: 0.4;
}
.shipped.intro > span {
  animation: fill 0.4s calc(var(--i) * 8ms) ease-out backwards;
}
.shipped > .bump {
  animation: bump 1.2s ease-out;
}
.say {
  margin: 6px 0 0;
  min-height: 16px;
  font:
    12px ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spark .day.on {
  fill: var(--fg);
}
#projects.picking .project:not(.lit, .head, .all) > .title {
  color: var(--dim);
  transition: color 0.15s;
}
@keyframes fill {
  from {
    opacity: 0;
  }
}
@keyframes bump {
  0%,
  60% {
    box-shadow:
      inset 0 0 0 1px var(--fg),
      inset 0 0 0 2px var(--bg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shipped > span,
  .shipped.intro > span {
    animation: none !important;
    transition: none;
  }
}
h2 {
  scroll-margin-top: calc(var(--head, 52px) + 12px);
  margin: 28px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
h2 span {
  font-weight: 400;
}
.empty {
  margin: 0;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

/* One line per thing. Columns: status, where, what, why, age, then the
   line's steps, its Close or Prompt and its links. Rows share their list's
   columns, so controls of any width line up down the list. */
.rows,
#projects {
  display: grid;
  grid-template-columns: 18px 8.5rem minmax(0, 1fr) auto 2.2rem auto auto auto;
  column-gap: 12px;
}
.rows > *,
#projects > * {
  grid-column: 1 / -1;
}
.row {
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: 40px;
  padding-inline: 10px;
  border-top: 1px solid var(--line);
  cursor: default;
}
.row:has(> .title[aria-expanded]) {
  cursor: pointer;
}
/* One selection: the line the mouse or j and k last went to, a row or a
   card. It holds the focus, so the line is what shows it: a row fills its own
   box, edge to edge with the hairlines, and the hairlines on either side of it
   step aside so nothing cuts through its corners. */
.row:focus-within::before {
  content: "";
  position: absolute;
  inset: -1px 0;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--hover);
}
.row:focus-within,
.row:focus-within + * {
  border-top-color: transparent;
}
.next:focus-within {
  background: var(--hover);
}
.title:focus-visible {
  outline: none;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.5;
}
.dot.good,
.dot.bad,
.dot.warn,
.dot.run {
  background: currentColor;
  opacity: 1;
}
.lead,
.title,
.why,
.cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead {
  color: var(--dim);
}
.title {
  text-align: left;
}
.why {
  max-width: 24rem;
  text-align: right;
}
.when {
  text-align: right;
  color: var(--dim);
}
.tools,
.tools > span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.row > .tools {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: -4 / -1;
}
.out {
  color: var(--dim);
  white-space: nowrap;
}
.out svg {
  display: block;
}
/* A project without a site keeps the globe's place. */
span.out.site {
  width: 15px;
}
.out:hover,
.out.on {
  color: var(--fg);
  text-decoration: none;
}
/* Every action is one button, in three weights: a soft fill for the step that
   moves a PR forward, an outline for the rest, bare text for closing. Clicked,
   it reads "Undo" while a fill sweeps across its three seconds, shimmers while
   it is sent, then says what it did. */
.act {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  align-items: center;
  overflow: hidden;
  height: var(--control);
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--fg);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
/* The label it started with holds the button's width through every state. */
.act > span {
  grid-area: 1 / 1;
}
.act > .keep {
  visibility: hidden;
}
.act:hover {
  background: var(--fill-strong);
  text-decoration: none;
}
.act:active:not(:disabled) {
  transform: scale(0.97);
}
.act.quiet,
.act.armed,
.act.busy,
.act.done {
  background: none;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.act.quiet:hover {
  background: var(--press);
}
.act.ghost {
  padding: 0 8px;
  background: none;
  color: var(--dim);
}
.act.ghost:hover {
  background: var(--press);
  color: var(--fg);
}
.act.ghost.armed,
.act.ghost.busy,
.act.ghost.done {
  padding: 0 12px;
}
.act.armed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform-origin: left;
  animation: sweep 3s linear both;
}
/* Each second of the countdown draws a new button: it picks the sweep up where
   the last one was. */
.act.armed[data-left="2"]::before {
  animation-delay: -1s;
}
.act.armed[data-left="1"]::before {
  animation-delay: -2s;
}
.act.busy {
  background: linear-gradient(
      90deg,
      transparent 30%,
      color-mix(in srgb, var(--fg) 12%, transparent),
      transparent 70%
    )
    0 0 / 200% 100%;
  animation: shimmer 1s linear infinite;
}
.act.done {
  color: var(--good);
  box-shadow: inset 0 0 0 1px var(--good);
  animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.act:disabled {
  opacity: 0.4;
  cursor: default;
}
.act.busy:disabled,
.act.done:disabled {
  opacity: 1;
}

/* The table is dense: a step narrower between its columns, and the room
   left over goes to its steps, which sit against Prompt and the links. */
#projects {
  grid-template-columns:
    18px minmax(6rem, auto) minmax(5rem, auto) minmax(4rem, auto)
    minmax(5rem, auto) minmax(6rem, auto) minmax(5.5rem, auto) repeat(7, auto)
    auto minmax(auto, 1fr) auto auto;
  column-gap: 10px;
}
.cost {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.project .title {
  font-weight: 600;
}
/* The sum sits a step apart from the projects it adds up, under the same
   hairline as the rest: space sets it off, not a brighter rule. */
.project.all {
  margin-top: 6px;
}
.project.all .title {
  font-weight: 400;
  color: var(--dim);
}
/* The last 30 days take seven of the project columns, so the figures line up
   from one project to the next: the count leads, the rest stays quiet. Wider
   gaps set what was shipped, what was served and what it cost apart. */
.stat {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 7;
  align-items: baseline;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
/* Main and CI read as a sign and a word: passing and idle are the usual, so
   only their sign says so; what fails, waits or runs is said in its colour. */
.signal {
  display: flex;
  align-items: center;
  gap: 6px;
}
.signal > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sign {
  flex: none;
}
.signal.good {
  color: var(--soft);
}
.signal.good .sign {
  color: var(--good);
}
.signal.muted {
  color: var(--dim);
}
.signal.muted .sign {
  opacity: 0.6;
}
.signal.run .sign {
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
.stat > * {
  text-align: right;
}
.stat > :first-child {
  text-align: left;
}
.stat > :first-child,
.stat > :nth-child(5),
.cost {
  margin-left: 16px;
}
.stat b {
  font-weight: 500;
  color: var(--fg);
}
.rate {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
/* What passed in pale green over what failed in pale red, so the share
   reads at a glance without shouting next to the number. */
.meter {
  flex: none;
  fill: color-mix(in srgb, var(--good) 55%, var(--bg));
}
.meter > :first-child {
  fill: color-mix(in srgb, var(--bad) 45%, var(--bg));
}
.spark {
  flex: none;
  fill: var(--dim);
}
.spark > rect {
  opacity: 0.4;
}
.spark .day:hover {
  fill: var(--fg);
}
.head,
.head .stat,
.head .cost {
  font-size: 12px;
  color: var(--dim);
}
.head {
  min-height: 28px;
  border-top: 0;
  white-space: nowrap;
}

/* A prompt for an agent, under its project's line, and what it started. */
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 10px 10px 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ask input {
  flex: 1 1 16em;
  min-width: 0;
  font: inherit;
  color: var(--fg);
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
}
.ask input:focus-visible {
  outline-offset: 0;
}
.detail {
  padding: 4px 0 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.detail .row {
  min-height: 32px;
}
.detail .row:first-child {
  border-top: 0;
}
.detail .detail {
  border-top: 0;
  padding-top: 0;
}
.detail > :not(.row, .detail) {
  padding-inline: 10px;
}
.detail > :not(.row, .detail) + .row {
  margin-top: 12px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 8px 0 0;
  color: var(--dim);
}
.facts .act {
  margin-left: auto;
}
#sentry-fresh,
.sentry-out {
  color: var(--dim);
  font-size: 12px;
}
.sentry-stack {
  font:
    12px/1.7 ui-monospace,
    monospace;
}
.sentry-work {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.production-heading {
  color: var(--soft);
  margin-bottom: 4px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.body {
  margin: 10px 0 0;
  padding-left: 12px;
  max-height: 18rem;
  overflow: auto;
  border-left: 2px solid var(--line);
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* A changelog: one line per change, its kind in a quiet tag before it. Only a
   breaking change takes a colour. */
.changes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.changes li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.changes .text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.kind {
  flex: none;
  width: 4.6rem;
  font:
    11px ui-monospace,
    monospace;
  color: var(--dim);
  text-align: right;
}
.kind.feat {
  color: var(--soft);
}
.kind.breaking {
  color: var(--warn);
}
.ref {
  flex: none;
  margin-left: auto;
  padding-left: 12px;
  font:
    12px ui-monospace,
    monospace;
}
.ref a {
  color: var(--dim);
}
.ref a:hover {
  color: var(--fg);
}
.pill {
  padding: 0 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
  font:
    11px/18px ui-monospace,
    monospace;
  color: var(--dim);
  white-space: nowrap;
}
.pill.good {
  color: var(--good);
}
.pill.bad {
  color: var(--bad);
}
.pill.warn {
  color: var(--warn);
}
.pill.run {
  color: var(--run);
}
.sum {
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The next releases: a card each, from what is live to what comes next. One
   that is ready carries the page's one solid button. */
#upcoming {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.next {
  padding: 12px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.3s;
}
.next.go {
  border-color: color-mix(in srgb, var(--fg) 22%, var(--bg));
}
.next-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 32px;
}
.next-head .title {
  font-weight: 600;
}
.next-head .tools {
  margin-left: 4px;
}
.next-head .tools > :empty {
  display: none;
}
.versions {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font:
    13px ui-monospace,
    monospace;
}
.versions b {
  font-weight: 600;
}
.arrow {
  color: var(--dim);
}
.next-head .why {
  margin-left: auto;
}
.next .changes {
  padding-left: 20px;
}
.next .facts {
  padding-left: 20px;
}

/* A release that went out says so before it leaves. */
.next.landed {
  border-color: var(--good);
  animation: landed 1.6s ease-out;
}
.next.landed .next-head .dot {
  animation: ping 1.2s ease-out 2;
}
@keyframes sweep {
  from {
    transform: scaleX(0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes pop {
  40% {
    transform: scale(1.08);
  }
}
@keyframes landed {
  from {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 30%, transparent);
  }
}
@keyframes ping {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 70%, transparent);
  }
  to {
    box-shadow: 0 0 0 8px transparent;
  }
}

/* Every release, by day: the day on the left, a line down the releases. */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.filter button,
.more {
  height: var(--control);
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--dim);
}
.filter button:hover,
.more:hover {
  color: var(--fg);
  background: var(--press);
}
.filter button[aria-pressed="true"] {
  color: var(--fg);
  background: var(--fill);
}
.filter small {
  margin-left: 2px;
}
.day {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  column-gap: 12px;
}
.day h3 {
  position: sticky;
  top: var(--head, 52px);
  align-self: start;
  margin: 0;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}
.day-list {
  border-left: 1px solid var(--line);
}
.release {
  position: relative;
  padding: 10px 0 14px 20px;
}
.release::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--dim);
}
.release + .release {
  border-top: 1px solid var(--line);
}
.day + .day .release:first-child {
  border-top: 1px solid var(--line);
}
.day + .day h3 {
  border-top: 1px solid var(--line);
}
.release-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 22px;
}
.tag {
  font:
    600 13px ui-monospace,
    monospace;
}
.release-head .name {
  font-weight: 500;
}
/* The summary and the time wrap together, so a narrow page never leaves the
   time on a line of its own. */
.release-head .end {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}
.release-head .when {
  margin-left: auto;
}
.more {
  margin: 10px 0 0 calc(8.5rem + 22px);
}
@media (prefers-reduced-motion: reduce) {
  .act,
  .act::before,
  .next.landed,
  .next.landed .dot,
  .signal .sign {
    animation: none !important;
    transition: none;
  }
}

/* The keys, grouped by what they act on. */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--dim);
}
footer span {
  white-space: nowrap;
}
footer .page {
  margin-left: 14px;
}
#version {
  margin-left: auto;
}
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 16px;
  text-align: center;
  color: var(--soft);
}

@media (max-width: 1200px) {
  body {
    padding: 0 24px 30px;
  }
  #account,
  footer,
  .row.head {
    display: none;
  }
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0 0;
    row-gap: 4px;
  }
  .brand {
    margin-right: auto;
  }
  #me {
    padding-left: 0;
    border-left: 0;
  }
  /* The sections take a line of their own and scroll sideways if need be. */
  #sections {
    order: 1;
    flex-basis: 100%;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #sections a:first-child {
    padding-left: 0;
  }
  #sections a:first-child[aria-current]::after {
    left: 0;
  }
  #flash {
    order: 2;
    flex-basis: 100%;
    white-space: normal;
  }
  #flash:empty {
    display: none;
  }
  .rows,
  #projects {
    display: block;
  }
  .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 8px 10px 8px 28px;
  }
  .row > .dot {
    order: -2;
    margin-left: -18px;
  }
  .row > .title {
    order: -1;
    flex: 1 0 100%;
    white-space: normal;
  }
  .row > .tools {
    display: flex;
    margin-left: auto;
    min-width: 0;
  }
  .tools > :empty {
    display: none;
  }
  .next-head .tools {
    margin-left: auto;
  }
  /* What a project is on one line, the cost with it, then its last 30 days on
     a line of their own, its links at the end of that one. Nothing in between
     wraps on its own, whatever the width. */
  .row > :empty:not(.dot) {
    display: none;
  }
  .project::after {
    content: "";
    order: 1;
    flex-basis: 100%;
    margin-top: -2px;
  }
  .project .stat,
  .project .tools {
    order: 2;
  }
  .stat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
  }
  .meter,
  .stat > :empty {
    display: none;
  }
  .stat > :first-child,
  .stat > :nth-child(5),
  .cost {
    margin-left: 0;
  }
  .cell::before,
  .stat > [data-label]::before {
    content: attr(data-label) " ";
    color: var(--dim);
  }
  .stat b::before {
    font-size: 12px;
    font-weight: 400;
  }
}

@media (max-width: 600px) {
  .day {
    grid-template-columns: minmax(0, 1fr);
  }
  .day h3 {
    position: static;
    padding-bottom: 2px;
  }
  .day-list {
    border-left: 0;
  }
  .release {
    padding-left: 0;
  }
  .release::before {
    display: none;
  }
  .more {
    margin-left: 0;
  }
  .kind {
    width: auto;
    text-align: left;
  }
  .next {
    padding: 10px 12px 12px;
  }
  .next .changes,
  .next .facts {
    padding-left: 0;
  }
}
