body {
  font-family: "Plex Mono", ui-monospace, monospace;
  --bg: #0c0b0d;
  --ink: #d8d1cc;
  --dim: #7d8581;
  --chrome: #9d9894;
  --accent: #ff2fb3;
  --line: #1a191a;
  --kw: #bd5cff;
  --str: #f2f2ea;
  --fn: #6c70e0;
  --ty: #53b1ca;
  --num: #8f57ff;
  --cell-w: 7.2px;
  --cell-h: 13px;
  --margin: 64px;
  --wide: 1008px;
  --desk-h: 184px;
  --bar-h: 46px;
  --eye-w: 216px;
  transition: background-color 420ms cubic-bezier(0.23, 1, 0.32, 1), color 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.stage {
  display: grid;
  grid-template-columns: min(calc(100vw - 2 * var(--margin)), var(--wide));
  grid-template-rows: calc(6 * var(--cell-h)) minmax(0, 1fr) var(--bar-h) var(--desk-h) var(--cell-h);
  justify-content: center;
  font: 400 12px/13px "Plex Mono", ui-monospace, monospace;
}

.frame-top {
  position: relative;
  inset: auto;
  grid-row: 1;
  display: block;
}

.brand {
  position: absolute;
  left: var(--cell-w);
  top: calc(3 * var(--cell-h));
  gap: var(--cell-w);
  min-height: 0;
  color: var(--ink);
  font: 400 12px/13px "Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

.brand svg {
  width: calc(2 * var(--cell-w));
  height: 12px;
}

.brand::after,
.switch a::after {
  content: "";
  position: absolute;
  inset: -16px -8px;
}

.switch {
  position: absolute;
  right: var(--cell-w);
  top: calc(3 * var(--cell-h));
}

.switch a {
  position: relative;
  min-width: 0;
  min-height: 0;
  font: 400 12px/13px "Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

.editor {
  position: relative;
  grid-row: 2;
  display: grid;
  grid-template-columns: calc(32 * var(--cell-w)) minmax(0, 1fr);
  min-height: 0;
}

.tabline {
  display: none;
}

.wheel {
  position: relative;
  min-height: 0;
  border-right: 1px solid color-mix(in srgb, var(--dim) 30%, transparent);
  outline: none;
  touch-action: none;
  user-select: none;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel.is-in {
  opacity: 1;
}

.wheel-ink {
  position: absolute;
  top: 0;
  left: -150px;
  pointer-events: none;
}

.wheel-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  clip-path: inset(0 0 0 -150px);
}

.wheel-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 94px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dim) 50%, transparent);
  background: var(--line);
  cursor: pointer;
  transform-origin: 50% 50%;
}

.wheel.is-dragging .wheel-item {
  cursor: grabbing;
}

.wheel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--shade, 0);
  pointer-events: none;
}

.wheel-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1px 6px 2px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--ink);
  font: 400 11px/14px "Plex Mono", ui-monospace, monospace;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.wheel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.wheel-item[aria-selected="true"] {
  border-color: var(--accent);
}

.wheel-item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}


.wheel-mark {
  position: absolute;
  left: 0;
  top: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--accent);
  pointer-events: none;
}

.wheel-hint {
  position: absolute;
  left: var(--cell-w);
  bottom: 4px;
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  pointer-events: none;
}

.pane {
  position: relative;
  display: grid;
  grid-template-rows: calc(2 * var(--cell-h)) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.winbar {
  margin: 0;
  padding: var(--cell-h) var(--cell-w) 0 calc(6 * var(--cell-w));
  overflow: hidden;
  color: var(--dim);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buffer {
  min-height: 0;
  overflow: auto;
  padding-right: var(--eye-w);
  padding-bottom: calc(6 * var(--cell-h));
  outline: none;
  scrollbar-width: none;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
.buffer::-webkit-scrollbar,
.rack-wrap::-webkit-scrollbar {
  display: none;
}

::highlight(worm-eaten) {
  color: transparent;
}


.ln {
  display: grid;
  grid-template-columns: calc(6 * var(--cell-w)) minmax(0, 1fr);
  min-height: var(--cell-h);
}

.ln .no {
  padding-right: var(--cell-w);
  color: var(--dim);
  text-align: right;
  opacity: 0.55;
  user-select: none;
}

.ln .tx {
  padding-right: var(--cell-w);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ln.is-tilde .no {
  opacity: 0;
}

.ln.is-tilde .tx {
  color: var(--dim);
  opacity: 0.45;
}

.md-h {
  color: var(--kw);
}

.md-h1 {
  color: var(--accent);
}

.md-list {
  color: var(--accent);
}

.md-code {
  color: var(--str);
}

.md-fence,
.md-quote,
.md-comment {
  color: var(--dim);
}

.md-num {
  color: var(--num);
}

a.md-link {
  color: var(--link, var(--fn));
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 2px;
}

a.md-link:hover {
  text-decoration-color: currentColor;
}

.shot {
  margin: var(--cell-h) calc(2 * var(--cell-w)) var(--cell-h) calc(6 * var(--cell-w));
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--cell-w);
  color: var(--dim);
}

.shot .frame {
  position: relative;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dim) 35%, transparent);
  background: var(--line);
}

.shot .frame.is-xray {
  cursor: ew-resize;
  touch-action: pan-y;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.shot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eye-host {
  position: absolute;
  top: calc(3 * var(--cell-h));
  right: var(--cell-w);
  width: calc(var(--eye-w) - 2 * var(--cell-w));
  aspect-ratio: 1.7;
  pointer-events: none;
}

.desk {
  grid-row: 4;
  position: relative;
  min-height: 0;
}

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--dim) 45%, transparent);
  background: var(--bg);
  color: var(--ink);
  font: 400 11px/1.3 "Plex Mono", ui-monospace, monospace;
  white-space: pre;
  pointer-events: none;
}

.tip[hidden] {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.bar {
  position: relative;
  grid-row: 3;
  display: flex;
  align-items: flex-start;
  gap: calc(4 * var(--cell-w));
  min-width: 0;
  padding-top: 7px;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--dim) 32%, transparent);
  color: var(--ink);
  white-space: nowrap;
}

.bar p {
  margin: 0;
}

.bar-id {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: calc(29 * var(--cell-w));
}

.bar-title {
  font-size: 12px;
  line-height: 13px;
  letter-spacing: 1px;
}

.bar-sub {
  color: var(--dim);
  font-size: 9px;
  line-height: 13px;
  letter-spacing: 0.4px;
}

.bar-sub .cmd,
.bar-sub .hunt {
  font-size: 11px;
  letter-spacing: 0;
}

.bar-sub .cmd {
  color: var(--ink);
  white-space: pre;
}

.bar-sub .hunt {
  color: var(--accent);
  white-space: pre;
}

.bar-sub .cmd:not(:empty) ~ span,
.bar-sub .hunt:not(:empty) + .keys {
  display: none;
}

.bar.is-typing .cmd::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 1px;
  vertical-align: -1px;
  background: var(--accent);
}

.bar-cols,
.bar-state {
  display: flex;
  flex: 0 0 auto;
  gap: calc(4 * var(--cell-w));
}

.bar .col {
  display: grid;
  gap: 5px;
}

.bar .label {
  color: var(--dim);
  font-size: 8.5px;
  line-height: 13px;
  letter-spacing: 1px;
}

.bar .value {
  font-size: 12px;
  line-height: 13px;
}

.bar .value.is-hot {
  color: var(--accent);
}

.bar-cols .value,
.bar-graph .value {
  color: var(--color1, var(--ink));
}

.bar-graph {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: calc(2 * var(--cell-w));
  row-gap: 5px;
  margin-left: auto !important;
}

.bar-graph .end {
  text-align: right;
}

.bar-graph canvas {
  grid-column: 1 / -1;
  display: block;
  margin-top: -2px;
}

.den {
  --worm: 108, 112, 224;
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.den::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: 18px;
  height: 9px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--dim) 45%, transparent);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  transition: border-color 160ms ease;
}

.den:focus-visible::before {
  border-color: color-mix(in srgb, var(--ink) 70%, transparent);
}

@media (hover: hover) {
  .den:hover::before {
    border-color: color-mix(in srgb, var(--ink) 70%, transparent);
  }
}

.den:focus-visible {
  outline: 0;
}

.den::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 11px;
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: rgb(var(--worm));
  box-shadow: 4px 0 rgb(var(--worm));
  opacity: 0;
}

.den[aria-pressed="false"]::after {
  animation: den-eyes 8.4s ease-in-out infinite;
}

@keyframes den-eyes {
  0%,
  100% {
    opacity: 0;
    transform: none;
  }
  8%,
  30% {
    opacity: 1;
    transform: none;
  }
  31% {
    transform: scaleY(0.15);
  }
  32.5%,
  45% {
    transform: none;
  }
  48%,
  57% {
    transform: translateX(-1.5px);
  }
  61%,
  64% {
    transform: translateX(1.5px);
  }
  68%,
  72% {
    transform: none;
  }
  73%,
  75% {
    transform: scaleY(0.15);
  }
  74%,
  76% {
    transform: none;
  }
  86% {
    opacity: 1;
  }
  92% {
    opacity: 0;
  }
}

.ln.term {
  grid-template-columns: minmax(0, 1fr);
  padding-left: calc(2 * var(--cell-w));
}

.t-prompt-row {
  margin-top: var(--cell-h);
}

.t-user {
  color: var(--fn);
}

.t-host,
.t-key,
.t-dim {
  color: var(--dim);
}

.t-path {
  color: var(--ty);
}

.t-git {
  color: var(--kw);
}

.t-caret {
  color: var(--accent);
}

.t-gauge {
  color: var(--color1, var(--accent));
}

.t-gauge-off {
  color: var(--dim);
  opacity: 0.55;
}

.t-icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  fill: currentColor;
}

.t-glyph {
  display: inline-block;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  font-size: 8px;
  line-height: 10px;
  overflow: hidden;
  text-align: center;
  vertical-align: -2px;
  opacity: 0.8;
}

.t-code {
  display: grid;
  margin: 2px 0 6px calc(6 * var(--cell-w));
  color: color-mix(in srgb, var(--ink) 85%, transparent);
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: normal;
}

.t-code > span {
  grid-area: 1 / 1;
  min-width: 0;
}

.t-measure {
  visibility: hidden;
}

.t-call,
.t-syn {
  color: var(--color1, var(--accent));
}

.t-code.is-typing .t-live::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: var(--ink);
}

.t-cal {
  display: grid;
  grid-template-columns: max-content repeat(var(--weeks), minmax(0, 1fr));
  gap: 2px;
  max-width: calc(4 * var(--cell-w) + var(--weeks) * 15px);
  margin: 4px 0 0 calc(2 * var(--cell-w));
  color: var(--dim);
  font-size: 9px;
  line-height: 1;
}

.t-cal-day {
  align-self: center;
  padding-right: 6px;
}

.t-cal-month,
.t-cal-week {
  white-space: nowrap;
}

.t-cal-month {
  padding-bottom: 4px;
}

.t-cal-week {
  padding-top: 3px;
}

.t-cal > i,
.t-cal-legend i {
  aspect-ratio: 1;
  border-radius: 1px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.t-cal > i {
  visibility: hidden;
}

.t-cal > i.is-on {
  visibility: visible;
}

.t-cal i.l1 {
  background: color-mix(in srgb, var(--ink) 30%, transparent);
}

.t-cal i.l2 {
  background: color-mix(in srgb, var(--ink) 50%, transparent);
}

.t-cal i.l3 {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}

.t-cal i.l4 {
  background: var(--accent);
}

.t-cal > i.is-head {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.t-cal-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin: 4px 0 0;
}

.t-cal-legend i {
  width: 9px;
}

.t-cal-legend i:first-of-type {
  margin-left: 4px;
}

.t-cal-legend i:last-of-type {
  margin-right: 4px;
}

.t-cursor::after {
  content: "";
  display: inline-block;
  width: var(--cell-w);
  height: var(--cell-h);
  vertical-align: top;
  background: var(--ink);
  animation: t-blink 1.06s steps(1) infinite;
}

@keyframes t-blink {
  50% {
    opacity: 0;
  }
}

.term-shot {
  margin: 6px calc(2 * var(--cell-w)) 0;
}

.term-shot figcaption {
  display: flex;
  gap: calc(2 * var(--cell-w));
  color: var(--dim);
  white-space: nowrap;
}

.term-shot .t-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.term-shot .t-help {
  margin-left: auto;
}

.term-shot .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dim) 35%, transparent);
  background: var(--line);
}

.term-shot .frame.is-xray {
  cursor: ew-resize;
  touch-action: pan-y;
}

.term-shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.term-shot img.is-on {
  opacity: 1;
}

.term-shot video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.term-shot video.is-on {
  opacity: 1;
}

.term-shot video::cue {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink);
  font: 400 12px/1.4 "Plex Mono", ui-monospace, monospace;
}

.t-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease-out, border-color 160ms ease;
}

.t-play[hidden] {
  display: none;
}

.t-play:hover {
  border-color: var(--accent);
}

.t-play:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.t-play:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.t-play svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.t-run {
  position: relative;
  display: block;
  height: 1px;
  margin-top: 5px;
  overflow: hidden;
  background: color-mix(in srgb, var(--dim) 30%, transparent);
}

.t-run i {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.t-run.is-running i {
  animation: t-run var(--run, 3800ms) linear forwards;
}

@keyframes t-run {
  to {
    transform: scaleX(1);
  }
}

.term-shot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.t-zoom,
.arc-zoom {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink);
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 160ms ease;
}

.t-zoom svg,
.arc-zoom svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  shape-rendering: crispEdges;
}

.t-zoom {
  right: 6px;
  bottom: 6px;
}

.arc-grid li {
  position: relative;
  container-type: inline-size;
}

.arc-zoom {
  top: calc(6px + (100cqw - 12px) * 9 / 16 - 26px);
  right: 10px;
}

.term-shot .frame:hover .t-zoom,
.arc-grid li:hover .arc-zoom,
.t-zoom:focus-visible,
.arc-zoom:focus-visible {
  opacity: 1;
  outline: none;
}

@media (hover: none) {
  .t-zoom,
  .arc-zoom {
    opacity: 0.85;
  }
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  outline: none;
}

.lb[hidden] {
  display: none;
}

.lb-back {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.lb-stage {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--dim) 45%, transparent);
  background: var(--bg);
  transform-origin: 0 0;
  cursor: zoom-out;
}

.lb-img,
.lb-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-film {
  opacity: 0;
  cursor: pointer;
}

.lb-film.is-on {
  opacity: 1;
}

.lb-film::cue {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink);
  font: 400 12px/1.4 "Plex Mono", ui-monospace, monospace;
}

.lb-cap {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--dim);
  font: 400 11px/13px "Plex Mono", ui-monospace, monospace;
  white-space: pre;
}

.lb-cap > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-cap > span:last-child {
  flex: none;
}

.lb-b {
  color: var(--ink);
}

.is-zoomed {
  overscroll-behavior-x: none;
}

.lb-apply {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.lb-apply:hover,
.lb-apply:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.t-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
}

.t-dot {
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--dim) 40%, transparent);
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}

.t-dot[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.buffer[data-kind="about"] {
  padding-bottom: 0;
}

.buffer[data-kind="about"] .wave {
  margin-left: calc(2 * var(--cell-w));
  margin-bottom: 0;
}

.rackview {
  --strip: 26px;
  --strip-gap: 4px;
  padding: var(--cell-h) calc(2 * var(--cell-w)) calc(3 * var(--cell-h)) calc(6 * var(--cell-w));
}

.buffer[data-kind="themes"],
.buffer[data-kind="more"],
.buffer[data-kind="omarchy"] {
  padding-bottom: 0;
}

.arc {
  --fade-top: 0px;
  --fade-bottom: 0px;
  position: relative;
  margin: 6px calc(2 * var(--cell-w)) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
}

.arc::-webkit-scrollbar {
  display: none;
}

.arc-inner {
  position: relative;
  padding: 22px 0 14px 30px;
}

.arc-grp {
  position: relative;
  padding-top: 32px;
  margin-bottom: 20px;
}

.arc-mon {
  position: absolute;
  top: 4px;
  left: -12px;
  margin: 0;
  color: var(--ink);
  font: 400 10px/12px "Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.arc-count {
  color: var(--dim);
}

.arc-wire {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
  color: color-mix(in srgb, var(--dim) 30%, transparent);
}

.arc-wire line {
  stroke: currentColor;
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.arc-wire rect {
  fill: color-mix(in srgb, var(--dim) 70%, transparent);
}

.arc-wire .arc-tip {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.arc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arc-card {
  display: block;
  width: 100%;
  padding: 5px 5px 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.arc-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
}

.arc-card.is-on {
  border-color: var(--accent);
}

.arc-card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.arc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
}

.arc-name {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arc-stars {
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
}

.arc-stars b {
  margin-left: 4px;
  padding: 0 4px;
  background: var(--color1, var(--accent));
  color: var(--bg);
  font-weight: 400;
}

.arc-sw {
  display: flex;
  align-items: center;
  height: 10px;
  margin-top: 4px;
}

.arc-sw i {
  width: 9px;
  height: 7px;
}

.arc-note {
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
}

.buffer[data-kind="more"] .arc-meta,
.buffer[data-kind="omarchy"] .arc-meta {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.buffer[data-kind="more"] .arc-name,
.buffer[data-kind="omarchy"] .arc-name {
  white-space: normal;
  overflow-wrap: anywhere;
}

.t-mark {
  display: inline-block;
  vertical-align: -1px;
  background: var(--accent);
}

.t-mark-omarchy {
  width: 83px;
  height: 19px;
  margin: 8px 0 5px;
  vertical-align: top;
  -webkit-mask: url("brand/omarchy-wordmark.svg") center / contain no-repeat;
  mask: url("brand/omarchy-wordmark.svg") center / contain no-repeat;
}

.buffer:has(.wave[data-panel="1"]) .t-family {
  display: none;
}

.t-hang .tx {
  padding-left: calc(9 * var(--cell-w));
  text-indent: calc(-9 * var(--cell-w));
}

.t-done {
  color: var(--dim);
}

.fam {
  display: block;
  width: auto;
  height: 27px;
  overflow: visible;
}

.fam-lines line,
.fam-lines circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
}

.fam-dots circle {
  fill: currentColor;
}

.t-family .fam {
  height: 26px;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.arc-shot {
  position: relative;
  display: block;
}

.arc-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  display: block;
  padding: 3px 5px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.arc-omarchy {
  display: block;
  width: 58px;
  height: 13px;
  background: var(--accent);
  -webkit-mask: url("brand/omarchy-wordmark.svg") center / contain no-repeat;
  mask: url("brand/omarchy-wordmark.svg") center / contain no-repeat;
}

.t-mount.rackview {
  padding: 6px calc(2 * var(--cell-w)) 0;
}

.rack-wrap {
  position: relative;
}

.rack-stats {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px calc(3 * var(--cell-w));
  min-height: calc(2 * var(--cell-h) + 4px);
  margin: 14px 0 0;
  color: var(--dim);
}

.rack-stats b {
  color: var(--ink);
  font-weight: 400;
}

.rack-stats .rs-name {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 2px;
}

.rack-stats .rs-flag {
  color: var(--kw);
}


.wave {
  position: relative;
  height: 300px;
  margin: 0 calc(2 * var(--cell-w)) var(--cell-h) calc(6 * var(--cell-w));
  overflow: clip;
  isolation: isolate;
  pointer-events: none;
}

.wave canvas,
.wave-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wave-code {
  position: absolute;
  inset: 0 auto auto 0;
  visibility: hidden;
  color: var(--ink);
  font: 400 12px/1.5 "Plex Mono", ui-monospace, monospace;
  white-space: pre;
  text-shadow: 0 0 3px var(--bg), 0 1px 8px var(--bg);
  will-change: transform;
  mask-image: linear-gradient(90deg, #000 var(--code-solid, 100%), transparent var(--code-edge, 120%));
}

.wave-code code {
  font: inherit;
}

.wave-code .code-accent {
  color: var(--accent);
}

.wave-leader {
  fill: none;
  stroke: var(--dim);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.wave-target {
  fill: var(--dim);
}

.wave-leaders [data-annotation="accent"] .wave-target {
  fill: var(--accent);
}

.rack {
  display: flex;
  gap: var(--strip-gap);
  height: clamp(260px, 40vh, 480px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip {
  position: relative;
  flex: 0 0 var(--strip);
  min-width: 0;
  transition: flex-basis 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), flex-grow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.strip.is-open {
  flex: 1 1 var(--strip);
}

.strip-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--line);
  color: var(--ink);
  cursor: pointer;
}

.strip.is-open .strip-btn {
  cursor: default;
}

.strip-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 45%);
  filter: grayscale(1) brightness(0.6) contrast(1.06);
  transition: filter 0.45s ease;
}

.strip-btn:hover img,
.strip-btn:focus-visible img {
  filter: grayscale(1) brightness(0.92) contrast(1.06);
}

.strip.is-open .strip-btn img {
  filter: none;
}

.strip-btn:focus-visible {
  outline-offset: -3px;
}

.strip-name {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font: 400 11px/1 "Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgb(0 0 0 / 0.9);
  color: #f4f1ea;
  transition: opacity 0.3s ease;
}

.strip.is-open .strip-name {
  opacity: 0;
}

.strip-chips {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-rows: repeat(8, 9px);
}

.strip.is-open .strip-chips {
  grid-template-rows: none;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  height: 16px;
}

.gitlog {
  padding: var(--cell-h) calc(2 * var(--cell-w)) calc(3 * var(--cell-h)) calc(6 * var(--cell-w));
}

.gl-comment {
  margin: 0 0 var(--cell-h);
  color: var(--dim);
}

.gl-count {
  margin: 0;
  color: var(--accent);
  font: 400 12px/10px "Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.02em;
  white-space: pre;
}

.gl-caption {
  margin: var(--cell-h) 0 calc(2 * var(--cell-h));
  color: var(--dim);
}

.gl-caption b {
  color: var(--ink);
  font-weight: 400;
}

.gl-grid {
  --weeks: 38;
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: 3px;
  max-width: calc(var(--weeks) * 15px);
}

.gl-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.gl-cell.is-lit.l1 {
  background: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.gl-cell.is-lit.l2 {
  background: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.gl-cell.is-lit.l3 {
  background: color-mix(in srgb, var(--accent) 75%, var(--line));
}

.gl-cell.is-lit.l4 {
  background: var(--accent);
}

.gl-cell.is-future {
  opacity: 0.35;
}

.gl-cell.is-scan {
  box-shadow: 0 0 0 1px var(--ink);
}

.gl-months {
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(0, 1fr));
  max-width: calc(var(--weeks) * 15px);
  margin-top: 6px;
  color: var(--dim);
  font-size: 10px;
}

.gl-months span {
  grid-row: 1;
  white-space: nowrap;
}

.gl-stats {
  margin: calc(2 * var(--cell-h)) 0 0;
  padding-top: var(--cell-h);
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.gl-stats b {
  color: var(--ink);
  font-weight: 400;
}

@media (max-width: 1100px) {
  body {
    --margin: 36px;
    --eye-w: 184px;
  }
}

@media (max-width: 700px) {
  .arc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  .arc-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .arc-badge {
    top: 4px;
    right: 4px;
    padding: 2px 4px;
  }

  .arc-omarchy {
    width: 48px;
    height: 11px;
  }

  .buffer[data-kind="more"] .arc-name,
  .buffer[data-kind="omarchy"] .arc-name {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .rack-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .rack {
    width: max-content;
    height: 400px;
  }

  .strip.is-open {
    flex: 0 0 min(300px, 72vw);
  }

}

@media (max-width: 800px) {
  body {
    --margin: 20px;
  }
}

@media (min-width: 701px) and (max-width: 830px) {
  body {
    --margin: 20px;
    --eye-w: clamp(88px, 100vw - 620px, 184px);
  }
}

@media (max-width: 999px) {
  .bar-state {
    display: none;
  }
}

@media (max-width: 700px) {
  .editor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(2 * var(--cell-h)) minmax(0, 1fr);
  }

  .tabline {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding: 0 var(--cell-w);
    border: 0;
    background: var(--line);
    color: var(--chrome);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .tab-dir {
    color: var(--fn);
  }

  .tab-file {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tab-toggle {
    padding-left: var(--cell-w);
    color: var(--dim);
  }

  body {
    --eye-w: 0px;
    --desk-h: 0px;
    --eye-hw: clamp(0px, 100vw - 2 * (var(--margin) + 124px), 104px);
  }

  .desk,
  .winbar {
    display: none;
  }

  .eye-host {
    position: fixed;
    top: calc(3.5 * var(--cell-h) - var(--eye-hw) / 3.4);
    right: 0;
    left: 0;
    width: var(--eye-hw);
    margin: 0 auto;
  }

  .wheel-hint {
    visibility: hidden;
  }

  .buffer.is-cut {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
  }

  .wheel {
    position: absolute;
    inset: calc(2 * var(--cell-h)) 0 0;
    z-index: 5;
    display: none;
    border-right: 0;
    background: var(--bg);
  }

  .editor.is-tree-open .wheel {
    display: block;
  }

  .bar-id {
    min-width: 0;
  }

  .bar-cols,
  .bar-state {
    display: none;
  }

  .term-shot {
    margin-right: 0;
  }

  .t-cal {
    gap: 1.5px;
    margin-left: 0;
  }

  .t-code {
    margin-left: 0;
  }

  .pane {
    grid-row: 2;
    grid-template-rows: minmax(0, 1fr);
  }

  .ln {
    grid-template-columns: calc(4 * var(--cell-w)) minmax(0, 1fr);
  }

  .shot,
  .rackview,
  .gitlog,
  .wave {
    margin-left: 0;
    padding-left: 0;
  }

  .wave {
    height: 240px;
    margin-right: 0;
  }

  .shot {
    margin-right: 0;
  }

  .brand span {
    display: inline;
  }
}

@media (max-width: 380px) {
  body {
    --margin: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-cursor::after {
    animation: none;
  }

  .den[aria-pressed="false"]::after {
    animation: none;
    opacity: 0.8;
  }

  .term-shot img,
  .term-shot video,
  .t-play {
    transition: none;
  }

  .t-run {
    display: none;
  }

  body,
  .wheel,
  .strip,
  .strip-btn img,
  .strip-name,
  .gl-cell {
    transition: none;
  }
}
