/* Codepit on the web, look B · Pixel (as the iPhone app's Theme.swift): graphite panels, honey where you act, the
   pixel font for names and labels only, square-ish corners on buttons you press. Dark only, like the app. */
:root {
  --bg: #0c0d0f;
  --panel: #15161a;
  --panel2: #17181c;
  --line: #222428;
  --line2: #1f2125;
  --code: #0f1013;
  --ink: #f0f0f2;
  --soft: #b5b8bf;
  --sub: #8d919a;
  --faint: #6c7079;
  --label: #7c818b;
  --honey: #ffc53d;
  --honey-ink: #1c1500;
  --orange: #ff9f5a;
  --orange-ink: #251200;
  --green: #5ad396;
  --red: #ff6b78;
  --pink: #ff8f99;
  --violet: #9d8cff;
  --button: #26282d;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --pixel: 'Codepit Pixel', 'Geist', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.4 var(--sans);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

p,
h1,
h2,
ol,
ul {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

input,
textarea {
  font: 16px/1.4 var(--sans);
  color: var(--ink);
}

a {
  color: var(--honey);
}

:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--mono);
}
.small {
  font-size: 12.5px;
}
.sub {
  color: var(--sub);
}
.faint {
  color: var(--faint);
}
.grow {
  flex: 1;
  min-width: 0;
}
.pad {
  padding: 15px;
}
.tint-honey {
  color: var(--honey);
}
.tint-green {
  color: var(--green);
}
.tint-red {
  color: var(--red);
}
.tint-orange {
  color: var(--orange);
}
.tint-violet {
  color: var(--violet);
}
.tint-pink {
  color: var(--pink);
}
.tint-soft {
  color: var(--soft);
}
.tint-sub {
  color: var(--sub);
}

.icon {
  flex-shrink: 0;
  display: block;
}

.art {
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
}

.noscript {
  padding: 40px 22px;
  color: var(--soft);
}

/* ---- The frame: tabs, the dock, layers above them */

#app,
#layers {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  max-width: 560px;
}

#layers {
  pointer-events: none;
  z-index: 20;
}

.tabs {
  position: absolute;
  inset: 0;
}

.tab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.tab.on {
  animation: tab-in 0.3s ease;
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px calc(120px + var(--bottom));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boot {
  height: 100%;
  display: grid;
  place-items: center;
  opacity: 0.5;
}

.dock {
  position: absolute;
  left: 50%;
  bottom: calc(8px + var(--bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(28, 29, 33, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid #2c2e33;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  z-index: 10;
  transition: transform 0.3s ease;
}

body.covered .dock {
  transform: translate(-50%, 140px);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--sub);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding 0.25s ease;
}

.dock-item.on {
  background: var(--honey);
  color: var(--honey-ink);
  padding: 0 16px;
}

.dock-label {
  display: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.dock-item.on .dock-label {
  display: inline;
}

.badge {
  font: 12px/1 var(--pixel);
  color: #fff;
  background: var(--orange);
  padding: 3px 6px 2px;
  border-radius: 6px;
}

.dock-item[data-tab='changes'] .badge {
  background: var(--red);
}

.dock-dot {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
}

.dock-dot.grey {
  background: var(--faint);
}

.layer {
  pointer-events: auto;
  position: absolute;
  inset: 0;
}

.layer-screen {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.layer-screen.in {
  opacity: 1;
  transform: none;
}

.layer-screen.out {
  opacity: 0;
  transform: translateX(36px);
}

.sheet-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(92% - var(--top));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 6px 16px calc(24px + var(--bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sheet-panel.tall {
  min-height: 60%;
}

.layer-sheet.in .sheet-dim {
  opacity: 1;
}

.layer-sheet.in .sheet-panel {
  transform: none;
}

.layer-sheet.out .sheet-dim {
  opacity: 0;
}

.layer-sheet.out .sheet-panel {
  transform: translateY(100%);
}

.sheet-grip {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: #3a3c42;
  margin: 4px auto 10px;
}

.layer-picture {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.layer-picture.in {
  opacity: 1;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--bottom));
  transform: translate(-50%, 10px);
  max-width: min(90vw, 480px);
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--button);
  border: 1px solid #34363c;
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 50;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Shared pieces */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.list > * + * {
  border-top: 1px solid var(--line2);
}

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  min-height: 50px;
}

.row:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
}

.row-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.row-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title.one {
  font-weight: 400;
  font-size: 15.5px;
}

.row-sub {
  font-size: 13.5px;
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-sub.wrap {
  white-space: normal;
  font-size: 12.5px;
}

.sq {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  background: var(--green);
}

.sq.big {
  width: 12px;
  height: 12px;
  margin: 0 4px;
}

.sq-honey {
  background: var(--honey);
  color: var(--honey);
}
.sq-orange {
  background: var(--orange);
  color: var(--orange);
}
.sq-red {
  background: var(--red);
  color: var(--red);
}
.sq-green {
  background: var(--green);
  color: var(--green);
}
.sq-violet {
  background: var(--violet);
  color: var(--violet);
}
.sq-idle {
  background: #3a3c42;
}

.sq.breathe {
  animation: breathe 1.6s ease-in-out infinite;
}

.sq.glow {
  box-shadow: 0 0 6px var(--honey);
}

.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.dot-live {
  background: var(--green);
  animation: ring 2.8s ease-in-out infinite;
}

.dot-connecting {
  background: var(--honey);
  animation: blink 1.4s ease-in-out infinite;
}

.pixel-label {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font: 400 13px var(--pixel);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--label);
}

.pixel-count {
  color: #4f535b;
}

.pixel-title {
  font: 600 24px/1.15 var(--pixel);
  color: var(--ink);
}

.tab-head {
  display: flex;
  align-items: center;
  padding: calc(10px + var(--top)) 18px 8px;
}

.tab-sub {
  font-size: 13px;
  color: var(--sub);
  margin-top: 1px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 10px;
  text-align: center;
}

.empty .art {
  opacity: 0.85;
}

.empty p {
  font-size: 14px;
  color: var(--sub);
  max-width: 320px;
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.banner-words {
  flex: 1;
  min-width: 0;
}

.banner-title {
  font-size: 15px;
  font-weight: 600;
}

.banner-text {
  font-size: 13.5px;
  color: var(--sub);
  margin-top: 2px;
}

.banner-action {
  margin-top: 10px;
}

.spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--honey);
  animation: spin 0.8s linear infinite;
}

.skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skel {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel2) 30%, #202126 50%, var(--panel2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

.counts {
  display: inline-flex;
  gap: 6px;
  font: 12.5px var(--mono);
}

.plus,
.plus-text {
  color: var(--green);
}

.minus,
.minus-text {
  color: var(--red);
}

.change-bar,
.review-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin: 6px 0 4px;
}

.change-bar span,
.review-bar span {
  display: block;
  height: 6px;
}

.change-bar .plus,
.review-bar .plus {
  background: var(--green);
}

.change-bar .minus,
.review-bar .minus {
  background: var(--red);
}

.row2 {
  display: flex;
  gap: 10px;
}

.row2 > * {
  flex: 1;
}

/* Buttons: pixel buttons you press (a darker bottom edge), chips, square icon buttons */

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px 3px;
  border-radius: 5px;
  font-size: 15.5px;
  font-weight: 700;
  background: var(--honey);
  color: var(--honey-ink);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.pbtn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.pbtn.no {
  background: var(--button);
  color: var(--ink);
}

.pbtn.orange {
  background: var(--orange);
  color: var(--orange-ink);
}

.pbtn.stop {
  background: rgba(255, 107, 120, 0.16);
  color: var(--pink);
}

.pbtn.night {
  background: var(--violet);
  color: #120c2e;
}

.pbtn.tall {
  min-height: 48px;
  width: 100%;
}

.pbtn.small {
  min-height: 34px;
  padding: 0 12px 2px;
  font-size: 14px;
  gap: 5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.chip.honey {
  background: var(--honey);
  color: var(--honey-ink);
}

.chip:active:not(:disabled) {
  transform: scale(0.96);
}

.stop-chip {
  color: var(--pink);
}

.sqbtn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--panel2);
  color: #d6d7db;
  transition: transform 0.12s ease;
}

.sqbtn:active:not(:disabled) {
  transform: scale(0.94);
}

.sqbtn.honey {
  background: var(--honey);
  color: var(--honey-ink);
  box-shadow: 0 0 18px rgba(255, 197, 61, 0.25);
}

.sqbtn.night {
  background: var(--violet);
  color: #120c2e;
}

.sqbtn.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--sub);
}

.head-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Welcome */

.welcome {
  position: relative;
  height: 100%;
  overflow-y: auto;
  display: flex;
  padding: calc(22px + var(--top)) 22px calc(22px + var(--bottom));
}

.welcome-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(circle at 50% 0, #1a1a10, transparent 70%);
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  margin: auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.welcome-inner > .art {
  filter: drop-shadow(0 0 16px rgba(255, 197, 61, 0.4));
}

.welcome-title {
  font: 600 40px/1.1 var(--pixel);
  margin-top: 18px;
}

.welcome-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--soft);
}

.steps-card {
  list-style: none;
  margin-top: 28px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.step-no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  background: var(--honey);
  color: var(--honey-ink);
  font: 600 15px var(--pixel);
}

.welcome-small {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

.welcome-small .icon {
  display: inline;
  vertical-align: -2px;
}

/* ---- Chats */

.chats-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + var(--top)) 18px 8px;
}

.project {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.project > .art {
  filter: drop-shadow(0 0 8px rgba(255, 197, 61, 0.35));
}

.project-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  min-width: 0;
}

.project-name {
  font: 600 24px/1.15 var(--pixel);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-sub-line {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--sub);
  min-width: 0;
}

.project-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project:disabled {
  opacity: 1;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0 16px 8px;
  padding: 0 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--faint);
  flex-shrink: 0;
}

.projects .search-row {
  margin: 0 0 8px;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.live-card {
  padding: 16px;
  border-radius: 22px;
  border-color: rgba(255, 197, 61, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(255, 197, 61, 0.2), transparent 260px),
    var(--panel2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.live-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-words {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 400 12px var(--pixel);
  letter-spacing: 1.2px;
  color: var(--honey);
}

.live-kicker .sq {
  width: 8px;
  height: 8px;
}

.live-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-step {
  font-size: 14px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sweep {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 16px 0 12px;
}

.sweep span {
  height: 8px;
  background: var(--honey);
  opacity: 0.14;
  animation: sweep 1.6s ease-in-out infinite;
}

.live-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.need-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  width: 100%;
  text-align: left;
  background: var(--panel2);
  border-color: rgba(255, 159, 90, 0.35);
  border-radius: 18px;
}

.need-card .sq {
  box-shadow: 0 0 8px rgba(255, 159, 90, 0.6);
}

.need-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.need-title {
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.need-what {
  font-size: 13.5px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.need-what code {
  font: 12.5px var(--mono);
  color: #ffcfac;
}

.answer-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--orange);
  color: var(--orange-ink);
  font-size: 14px;
  font-weight: 700;
}

.unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--honey);
  flex-shrink: 0;
}

.wide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 15px;
  text-align: left;
  color: var(--sub);
}

.wide-card.night-on {
  border-color: rgba(157, 140, 255, 0.45);
}

.wide-card .row-words {
  gap: 3px;
}

.wide-card .review-bar {
  margin: 2px 0;
  width: 100%;
}

.earlier-row .row-title {
  color: var(--ink);
}

/* ---- One chat */

.chat-head,
.file-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + var(--top)) 14px 10px;
  border-bottom: 1px solid #1d1f23;
  flex-shrink: 0;
}

.chat-head-words,
.file-head-words {
  flex: 1;
  min-width: 0;
}

.chat-title {
  font: 600 18px/1.2 var(--pixel);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 1px;
}

.chat-status .sq {
  width: 7px;
  height: 7px;
  margin-right: 3px;
}

.st-running {
  color: var(--honey);
}
.st-waiting {
  color: var(--orange);
}
.st-error {
  color: var(--red);
}
.st-idle {
  color: var(--green);
}

.chat-scroll {
  padding: 14px 16px 10px;
}

.msgs,
.asks,
.tail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asks:not(:empty),
.tail:not(:empty) {
  margin-top: 14px;
}

.msg-user {
  align-self: flex-end;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.from {
  font-size: 12px;
  color: var(--sub);
}

.bubble {
  padding: 11px 15px;
  border-radius: 18px 18px 4px 18px;
  background: var(--honey);
  color: var(--honey-ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thumbs {
  display: flex;
  gap: 6px;
}

.thumb {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.thumb.missing {
  display: none;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msg-claude {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-claude > .art {
  margin-top: 2px;
}

.msg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.local-label {
  font: 400 11px var(--pixel);
  color: var(--honey);
}

.chat-image-btn {
  display: block;
  max-width: 260px;
  border-radius: 10px;
  overflow: hidden;
}

.chat-image {
  display: block;
  width: 100%;
}

.thinking {
  padding-left: 36px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--faint);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice {
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}

.notice.error {
  color: var(--red);
}

/* Claude's words */

.md {
  font-size: 15.5px;
  line-height: 1.5;
  color: #e7e8ea;
  overflow-wrap: anywhere;
  min-width: 0;
}

.md > * + * {
  margin-top: 8px;
}

.md-chat p,
.md-chat li {
  white-space: pre-wrap;
}

.md-h {
  font-weight: 700;
}

.md code {
  font: 0.86em var(--mono);
  color: #ffe1a1;
  background: #1a1b1f;
  padding: 1px 5px;
  border-radius: 5px;
}

.md .file-link {
  cursor: pointer;
  text-decoration: underline dotted rgba(255, 225, 161, 0.6);
  text-underline-offset: 3px;
}

.md a {
  color: var(--honey);
  text-underline-offset: 2px;
}

.md-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--code);
  overflow-x: auto;
  white-space: pre;
}

.md-code code {
  font: 12.5px/1.5 var(--mono);
  color: #e7e8ea;
  background: none;
  padding: 0;
  white-space: pre;
}

.md ul,
.md ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.md ul {
  list-style: none;
}

.md ul > li {
  position: relative;
}

.md ul > li::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--honey);
}

.md ol > li::marker {
  color: var(--honey);
  font-family: var(--mono);
  font-size: 0.9em;
}

.md li.md-nested {
  margin-left: 18px;
}

.md blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid rgba(255, 197, 61, 0.6);
  color: var(--soft);
}

.md hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.md-table {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.md-table table {
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 100%;
}

.md-table th,
.md-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line2);
  text-align: left;
  vertical-align: top;
}

.md-table th {
  background: var(--panel2);
  font-weight: 600;
  white-space: nowrap;
}

.md-table tr + tr td,
.md-table td + td,
.md-table th + th {
  border-left: 1px solid var(--line2);
}

.md-file {
  font-size: 15.5px;
}

.md-file h1 {
  font: 600 24px/1.2 var(--pixel);
}
.md-file h2 {
  font-size: 20px;
  font-weight: 700;
}
.md-file h3,
.md-file h4 {
  font-size: 17px;
  font-weight: 700;
}

.md-file > h1,
.md-file > h2,
.md-file > h3 {
  margin-top: 16px;
}

.md-file > :first-child {
  margin-top: 0;
}

.md-picture {
  display: inline-block;
  max-width: 100%;
}

.md-picture-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sub);
  background: var(--panel2);
  padding: 6px 10px;
  border-radius: 8px;
}

.md-img-el {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

/* Steps */

.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 12px;
}

.steps::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed #2d2f34;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 14px;
  color: #c3c5cb;
  min-height: 26px;
}

.step-btn .sq {
  margin: 0;
}

.step-icon {
  color: var(--faint);
  width: 14px;
  display: grid;
  place-items: center;
}

.step-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.step-detail {
  font: 12.5px var(--mono);
  color: var(--ink);
  background: #1a1b1f;
  padding: 2px 6px;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45%;
  flex-shrink: 1;
}

.chev .icon {
  transition: transform 0.2s ease;
}

.chev.up .icon {
  transform: rotate(180deg);
}

.step-out {
  margin: 0 0 0 19px;
  padding: 10px;
  border-radius: 6px;
  background: var(--code);
  font: 12px/1.5 var(--mono);
  color: var(--sub);
  overflow-x: auto;
  white-space: pre;
  max-height: 340px;
}

.step-out.error {
  color: var(--pink);
}

.step-more {
  align-self: flex-start;
  margin-left: 19px;
  font-size: 12.5px;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* What Claude asks: like a game's dialog box */

.dialog-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px;
  padding: 16px;
  background: var(--panel);
  border: 2px solid var(--honey);
  border-radius: 6px;
  outline: 2px solid #4d3d12;
  outline-offset: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-kicker {
  font: 400 12px var(--pixel);
  letter-spacing: 1.2px;
  color: var(--honey);
}

.dialog-q {
  font-size: 16px;
  font-weight: 600;
}

.dialog-title {
  font-size: 14px;
  color: var(--soft);
}

.dialog-detail {
  margin: 0;
  padding: 10px 12px;
  background: #0a0b0d;
  border-left: 3px solid var(--honey);
  border-radius: 4px;
  font: 13.5px/1.45 var(--mono);
  color: #ffe1a1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow-y: auto;
}

.always {
  font-size: 13px;
  color: var(--sub);
  padding: 4px;
  overflow-wrap: anywhere;
}

.question {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  text-align: left;
  border-radius: 6px;
  background: #1a1b1f;
  border: 1px solid transparent;
}

.option.on {
  background: rgba(255, 197, 61, 0.1);
  border-color: rgba(255, 197, 61, 0.6);
}

.option-box {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  background: #2a2c31;
}

.option.on .option-box {
  background: var(--honey);
}

.option-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-label {
  font-size: 15px;
  font-weight: 600;
}

.option-desc {
  font-size: 13px;
  color: var(--sub);
}

.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  font-size: 13.5px;
  color: var(--sub);
  min-width: 0;
}

.typing > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dots {
  display: inline-flex;
  gap: 5px;
  height: 14px;
  align-items: flex-end;
}

.dots i {
  width: 7px;
  height: 7px;
  background: var(--honey);
  animation: hop 1.1s ease-in-out infinite;
}

.typing.violet .dots i {
  background: var(--violet);
}

.dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-skeleton {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 10px;
}

.chat-skeleton > .skeleton:nth-child(2) {
  padding-left: 36px;
}

.skel-right {
  padding-left: 120px;
}

.skel-right .skel {
  margin-left: auto;
}

.quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px 0;
  flex-shrink: 0;
  scrollbar-width: none;
}

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

.quick-chip {
  background: var(--panel2);
  border: 1px solid #2a2c31;
}

.composer {
  flex-shrink: 0;
  margin: 8px 14px calc(8px + var(--bottom));
  padding: 6px 6px 6px 10px;
  border-radius: 22px;
  background: var(--panel2);
  border: 1px solid #2a2c31;
  transition: border-color 0.2s ease;
}

.composer.focus {
  border-color: rgba(255, 197, 61, 0.45);
}

.composer-input,
.night-input {
  display: block;
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 4px 4px;
  max-height: 160px;
}

.composer-input::placeholder,
.night-input::placeholder,
.search-input::placeholder,
.name-input::placeholder {
  color: var(--faint);
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sqbtn.send {
  background: var(--honey);
  color: var(--honey-ink);
}

.sqbtn.send.stop {
  background: rgba(255, 107, 120, 0.18);
  color: var(--pink);
}

/* The chat's menu */

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.menu-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 8px 0 14px;
  border-radius: 16px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--faint);
}

.name-row.focus {
  border-color: rgba(255, 197, 61, 0.5);
  color: var(--honey);
}

.name-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
  font-weight: 600;
}

.choice {
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.choice .row-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--soft);
}

.choice.on .row-title {
  font-weight: 600;
  color: var(--ink);
}

.check {
  flex-shrink: 0;
}

.effort-card {
  padding: 12px 0;
}

.effort-chips {
  display: flex;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.effort {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.effort.on {
  background: var(--honey);
  color: var(--honey-ink);
}

.effort-hint {
  padding: 10px 14px 0;
}

.action {
  min-height: 50px;
  padding: 0 14px;
}

.action-icon {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--soft);
}

.action .row-title {
  font-size: 15.5px;
  font-weight: 500;
}

.action.danger,
.action.danger .action-icon,
.action.danger .row-title {
  color: var(--red);
}

.note-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.note-card p {
  font-size: 13.5px;
  color: var(--sub);
}

.note-card .icon {
  margin-top: 2px;
}

/* ---- Confirm */

.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 6px;
}

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.confirm-text {
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 8px;
}

/* ---- Changes */

.review-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 211, 150, 0.12), transparent 240px),
    var(--panel);
}

.summary-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-top > div {
  flex: 1;
}

.pixel-num {
  font: 600 20px var(--pixel);
}

.file-card {
  border-radius: 18px;
  overflow: hidden;
}

.file-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.file-card-head .row-title {
  font-size: 15.5px;
}

.ellipsis-start {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
}

.tag {
  flex-shrink: 0;
  font: 400 11px var(--pixel);
  letter-spacing: 0.6px;
  padding: 3px 7px;
  background: #24262b;
}

.file-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.file-actions .chip {
  height: 32px;
  padding: 0 10px;
  gap: 5px;
  font-size: 13px;
}

.hunk + .hunk {
  border-top: 1px solid var(--line2);
}

.diff {
  overflow-x: auto;
  background: var(--code);
  padding: 4px 0;
}

.diff-inner {
  min-width: 100%;
  width: max-content;
}

.diff-line {
  display: flex;
  min-height: 21px;
  font: 12.5px/21px var(--mono);
  white-space: pre;
}

.diff-line.add {
  background: rgba(90, 211, 150, 0.12);
  color: #bff2d6;
}

.diff-line.del {
  background: rgba(255, 107, 120, 0.13);
  color: #ffc2c8;
}

.diff-sign {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.add .diff-sign {
  color: var(--green);
}

.del .diff-sign {
  color: var(--red);
}

.diff-no {
  width: 34px;
  padding-right: 8px;
  text-align: right;
  color: #4b4e55;
  flex-shrink: 0;
}

.diff-text {
  padding-right: 12px;
}

.hunk-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

/* ---- Night */

.night-tab {
  background:
    radial-gradient(circle at 50% 0, rgba(157, 140, 255, 0.08), transparent 460px),
    var(--bg);
}

.night-tab.lit {
  background:
    radial-gradient(circle at 50% 0, rgba(157, 140, 255, 0.16), transparent 460px),
    var(--bg);
}

.night-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border-color: rgba(157, 140, 255, 0.25);
  background:
    radial-gradient(circle at 0 0, rgba(157, 140, 255, 0.22), transparent 280px),
    var(--panel2);
}

.night-hero.on {
  border-color: rgba(157, 140, 255, 0.5);
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.night-add {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 22px;
  background: var(--panel2);
  border: 1px solid #2a2c31;
}

.night-add:focus-within {
  border-color: rgba(157, 140, 255, 0.5);
}

.night-input {
  padding: 8px 4px;
  max-height: 110px;
}

.task {
  padding: 13px 15px;
}

.task-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.task-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.task-btn .sq {
  margin-top: 5px;
}

.task-prompt {
  font-size: 15px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-prompt.open {
  display: block;
}

.report {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--code);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--soft);
}

.report-key {
  font: 400 11px var(--pixel);
  letter-spacing: 0.8px;
  color: var(--label);
  margin-bottom: 2px;
}

/* ---- Settings */

.machine {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--panel2);
}

.machine-name {
  font-size: 19px;
  font-weight: 600;
}

.machine-state {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 14px;
  color: var(--sub);
  flex-wrap: wrap;
}

.latency {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font: 12px var(--mono);
}

.usage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.usage-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.usage-top .row-title {
  font-size: 15px;
}

.usage-top .mono {
  font-size: 13px;
}

.usage-bar {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 10px;
}

.usage-bar span {
  background: #2a2c31;
}

.usage-bar span.on {
  background: currentColor;
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 15px;
  font-size: 15px;
}

.kv-value {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foot {
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  padding-top: 4px;
}

.foot a {
  color: var(--sub);
}

/* ---- Projects */

.projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 6px;
}

.project-row {
  gap: 12px;
  padding: 12px 14px;
}

.kind {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--sub);
  background: color-mix(in srgb, currentColor 13%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}

.kind-game {
  color: var(--honey);
}
.kind-website,
.kind-web-app {
  color: #6aa9ff;
}
.kind-mobile-app,
.kind-server {
  color: var(--green);
}
.kind-script {
  color: var(--orange);
}
.kind-library {
  color: var(--violet);
}
.kind-data {
  color: var(--red);
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.row-meta .mono {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pending {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--honey-ink);
}

.open-pill {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(90, 211, 150, 0.14);
}

/* ---- Files */

.file-title {
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sub {
  font: 11.5px var(--mono);
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-screen .scroll {
  padding-top: 16px;
}

.file-row {
  min-height: 52px;
  padding: 9px 15px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.file-scroll {
  padding: 12px 12px calc(40px + var(--bottom));
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 0;
}

.problem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 16px;
  text-align: center;
  color: var(--soft);
}

.code-view {
  border-radius: 10px;
  background: var(--code);
  border: 1px solid var(--line2);
  overflow: hidden;
}

.code-scroll {
  display: flex;
  overflow-x: auto;
}

.code-gutter,
.code-lines {
  margin: 0;
  padding: 10px 0;
  font: 12px/1.6 var(--mono);
  white-space: pre;
}

.code-gutter {
  position: sticky;
  left: 0;
  padding: 10px 10px 10px 10px;
  text-align: right;
  color: #4a4e57;
  background: var(--code);
  user-select: none;
  border-right: 1px solid var(--line2);
}

.code-lines {
  padding: 10px 14px 10px 12px;
  color: #e7e8ea;
}

.code-lines code {
  font: inherit;
}

.tk-c {
  color: var(--faint);
  font-style: italic;
}
.tk-s {
  color: #a7e3bd;
}
.tk-n {
  color: #ffb37a;
}
.tk-k {
  color: #c9b8ff;
}

.page-note {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--sub);
}

.page-note-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 70px 24px;
  text-align: center;
  color: var(--soft);
}

.page-note-box .icon {
  color: var(--faint);
}

.page-note-box .small .icon {
  display: inline;
  vertical-align: -2px;
}

.picture-frame {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 10px;
  min-height: 200px;
  background: repeating-conic-gradient(#16171a 0 25%, #1d1e22 0 50%) 0 0 / 20px 20px;
}

.preview-img {
  max-width: 100%;
  height: auto;
  min-width: 40%;
}

.md-page {
  padding: 6px 4px;
}

.csv-view .md-table {
  max-height: none;
}

.page-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.page-frame {
  display: block;
  width: 100%;
  height: 70vh;
  height: 70dvh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* ---- Pictures, big */

.viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #000;
}

.viewer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--top)) 14px 10px;
}

.viewer-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 12px 12px calc(12px + var(--bottom));
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-img:not([src]) {
  display: none;
}

/* ---- Movement */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes breathe {
  50% {
    opacity: 0.65;
    box-shadow: 0 0 7px currentColor;
  }
}

@keyframes ring {
  50% {
    box-shadow: 0 0 0 4px rgba(90, 211, 150, 0.22);
  }
}

@keyframes blink {
  50% {
    opacity: 0.4;
  }
}

@keyframes hop {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.55;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes sweep {
  0%,
  100% {
    opacity: 0.14;
  }
  20% {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

@keyframes tab-in {
  from {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .sweep span:nth-child(-n + 4) {
    opacity: 0.8;
  }
}

@media (min-width: 600px) {
  #app,
  #layers {
    border-left: 1px solid var(--line2);
    border-right: 1px solid var(--line2);
  }
}
