/* GENERATED by tools/build-site.py: the faces and Shale's tokens from
   brand/vendor, then Site/src/site.css. Never edit by hand. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/jost-86989f50.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-400-c0879324.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-600-6d25a6d1.woff2) format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-mono-400-b9a881a1.woff2) format("woff2");
}
:root {
  --night-paper: #111519;
  --night-paper-2: #171c21;
  --night-line: #2c3339;
  --night-ink: #efe7da;
  --night-ink-3: #8e949a;
  --night-accent: #d98b5f;
}
:root {
  --paper: #eef0f2;
  --paper-2: #fafbfc;
  --paper-3: #e1e5e9;
  --line: #cdd4da;
  --line-soft: #dce1e6;
  --ink: #12161a;
  --ink-2: #394149;
  --ink-3: #5c656d;
  --accent: #b0602c;
  --accent-ink: #8a4316;
  --second: #4a5f6e;
  --second-ink: #384a57;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111519;
    --paper-2: #171c21;
    --paper-3: #1d2329;
    --line: #2c3339;
    --line-soft: #222a30;
    --ink: #efe7da;
    --ink-2: #bdb6aa;
    --ink-3: #8e949a;
    --accent: #d98b5f;
    --accent-ink: #eba47a;
    --second: #8fa3b0;
    --second-ink: #b6c5cf;
    color-scheme: dark;
  }
}
/* The arrangement of www.kropach.app, drawn as the apps draw themselves.

   On a phone, the iPhone app (App/KropachiOS/ChatScreen.swift, Look.swift,
   Projects/, Railway/): the wash under everything, the top bar with its
   round glass buttons, the sidebar as a drawer over the content, and the
   content in cards with hairline borders. Wide, the Mac window
   (App/Kropach/MainWindow.swift): the brand, the places and the place's
   list in a sidebar of its own, and the item beside it in panels.

   tools/build-site.py puts the faces and Shale's tokens, read from the
   vendored brand, above this, and writes the whole as one stylesheet named
   by a hash of its bytes. Edit this file, never the one in Site/public/. */

/* [hidden] stays authoritative: an author display once overrode it on the
   studio's site and shipped a control that should not have shown. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

/* The apps' Theme, from Shale's tokens: the chosen row's wash
   (Theme.accentWash), the glass a sheet is cut from, and its shadow. */
:root {
  --wash: color-mix(in srgb, var(--accent) 14%, transparent);
  --glass: color-mix(in srgb, var(--paper-2) 78%, transparent);
  --card: color-mix(in srgb, var(--paper-2) 86%, transparent);
  --lift: 0 10px 28px -12px rgb(0 0 0 / 0.28);
  --bar: color-mix(in srgb, var(--paper) 84%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wash: color-mix(in srgb, var(--accent) 16%, transparent);
    --glass: color-mix(in srgb, var(--paper-2) 82%, transparent);
    --card: color-mix(in srgb, var(--paper-2) 90%, transparent);
    --lift: 0 10px 28px -12px rgb(0 0 0 / 0.6);
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
  background: var(--paper);
}

/* The wash (Look.swift's Wash): Shale's paper with a copper glow at the
   top left and slate ones to the right and the foot. */
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
/* The wash is painted on the body itself, which is at least the window's
   height and grows with the page, so it reaches the foot of a long page:
   the copper glow at the head, the slate one at the foot. */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55vmax),
    radial-gradient(circle at 92% 34%, color-mix(in srgb, var(--second) 16%, transparent), transparent 45vmax),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--second) 20%, transparent), transparent 55vmax);
}
body.locked { overflow: hidden; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

button, input { font: inherit; color: inherit; }
img, svg { max-width: 100%; }

/* ---- Buttons and fields, as the apps set them. ---- */

/* The filled capsule (the Sync button, Create a passkey). */
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  padding: 0.55rem 1rem;
}
button:hover { border-color: var(--ink-3); }
button.primary {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  background: var(--accent);
  color: var(--paper-2);
  font-weight: 600;
  font-size: 0.9375rem;
}
button.primary:hover { background: var(--accent-ink); }
/* The quiet capsule, as the iPhone sets its suggestion chips. */
button.quiet {
  color: var(--ink);
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
}
button:disabled { opacity: 0.55; cursor: progress; }

/* The field, as the drawer's search is drawn. */
input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input[type="text"]:focus { border-color: var(--accent); outline: none; }

label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.seal { display: block; flex: none; }

/* The tracked capital label set above a group (Look.swift's Kicker). */
.kicker {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- The sign-in, the setup and the codes: one sheet on the wash. ---- */

.gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding:
    max(2rem, calc(env(safe-area-inset-top) + 1.5rem))
    max(16px, env(safe-area-inset-right))
    1.5rem
    max(16px, env(safe-area-inset-left));
}

.card {
  width: 100%;
  max-width: 26rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.375rem 1.625rem;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--lift);
}
.card .seal { width: 6.5rem; height: 6.5rem; margin-bottom: 0.25rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.card form { width: 100%; display: grid; gap: 0.75rem; text-align: left; }

h1 {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* A message the page shows by its address alone (#failed, #later), so the
   form without the script can say how it went; the script sets .shown. */
.note { display: none; margin: 0; }
.note:target, .note.shown { display: block; }
.card .note, .card .said {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--wash);
  color: var(--accent-ink);
  font-size: 0.875rem;
}

.opener { color: var(--ink-2); font-size: 0.875rem; }
.recovery { display: none !important; }
.recovery:target, .note:target ~ .recovery { display: grid !important; }
.note:target ~ .opener { display: none; }

.codes {
  margin: 0;
  padding: 0.75rem 1rem;
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.pill-link {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper-2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.pill-link:hover { background: var(--accent-ink); color: var(--paper-2); }

footer {
  padding:
    1rem
    max(16px, env(safe-area-inset-right))
    max(1.5rem, calc(env(safe-area-inset-bottom) + 0.75rem))
    max(16px, env(safe-area-inset-left));
  text-align: center;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--accent-ink); text-decoration: underline; }
body.inside footer { display: none; }

/* ---- The window: the phone first. ---- */

.window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

/* The top bar (ChatScreen.swift's topBar): the round sidebar button, or
   the way back from an item, the seal and the title in the middle. */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.5rem;
  padding:
    calc(env(safe-area-inset-top) + 6px)
    max(16px, env(safe-area-inset-right))
    8px
    max(16px, env(safe-area-inset-left));
  background: var(--bar);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.bar > .round { grid-column: 1; grid-row: 1; }
.bar > .spacer { grid-column: 3; visibility: hidden; }

/* A round icon button in the glass (Look.swift's RoundButton). */
.round {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  box-shadow: var(--lift);
  color: var(--ink);
}
.round svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-title {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.bar-title .seal { width: 28px; height: 28px; }
.bar-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
}

/* The drawer (ChatScreen.swift's ChatList): the places, the open place's
   list, and the foot, over the content with the content dimmed. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.window.drawer .scrim { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding:
    calc(env(safe-area-inset-top) + 12px)
    18px
    calc(env(safe-area-inset-bottom) + 8px)
    max(18px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.window.drawer .sidebar {
  transform: none;
  visibility: visible;
  box-shadow: 0 0 40px rgb(0 0 0 / 0.3);
  transition: transform 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .window.drawer .sidebar, .scrim { transition: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.625rem 0.25rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
}
.brand .seal { width: 2.25rem; height: 2.25rem; }

.places, .items { list-style: none; margin: 0; padding: 0; min-width: 0; }
.places {
  display: grid;
  gap: 2px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.places .apart {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.places a, .items a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.45rem 0.625rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}
.places a:hover, .items a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.places a[aria-current="page"], .items a[aria-current="page"] {
  background: var(--wash);
}
.places a[aria-current="page"] { font-weight: 600; }
.places svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.places a[aria-current="page"] svg { stroke: var(--accent-ink); }

.sidebar .kicker { padding: 0 0.625rem; }
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; align-content: start; }
.items li { min-width: 0; }
.items a { flex-direction: column; align-items: stretch; gap: 1px; padding: 0.55rem 0.625rem; }
.items .title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
}
.items .sub {
  min-width: 0;
  color: var(--ink-3);
  font-size: 0.78125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty { margin: 0 0.625rem; color: var(--ink-3); font-size: 0.875rem; }

/* The foot, as the iPhone sets its account row: under a rule, clear of
   the home indicator. */
.foot {
  margin-top: auto;
  padding-top: 0.375rem;
  border-top: 1px solid var(--line);
}
.signout {
  border: 0 !important;
  background: none !important;
  color: var(--ink-2) !important;
  padding: 0.6rem 0.625rem !important;
  border-radius: 10px !important;
}
.signout:hover { color: var(--accent-ink) !important; }

/* The content: a 16px gutter, clear of the home indicator. */
.detail {
  flex: 1;
  min-width: 0;
  padding:
    1rem
    max(16px, env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + 2rem)
    max(16px, env(safe-area-inset-left));
}
#view { min-width: 0; display: flex; flex-direction: column; gap: 0.875rem; }

/* An empty place, centered, as the iPhone sets its greeting. */
.nothing {
  min-height: 55vh;
  min-height: 55svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}
.nothing .seal { width: 4.5rem; height: 4.5rem; opacity: 0.9; }
.nothing p { margin: 0; max-width: 20rem; color: var(--ink-2); font-size: 0.9375rem; }

/* ---- What the content is made of. ---- */

#view h2 {
  margin: 0.25rem 0 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
#view h3 {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
#view p { margin: 0; }
.meta {
  color: var(--ink-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.group { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.25rem;
  min-width: 0;
}
.group-head .kicker { min-width: 0; overflow-wrap: anywhere; }
.group-head .kicker a { color: var(--accent-ink); text-decoration: none; }
.group-head .kicker a:hover { text-decoration: underline; }
.group-head .meta { flex: none; }

/* A card: a glass sheet with its hairline (Look.swift's glassSheet). */
.panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--lift);
}
.panel.pad { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* A list in a card: rows under a rule inset from the left, as the
   Projects screen sets them, each with its chevron. */
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li + li > * {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 16px) 1px;
  background-position: 16px 0;
  background-repeat: no-repeat;
}
.rowlist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  text-decoration: none;
}
.rowlist a:hover { color: var(--ink); background-color: color-mix(in srgb, var(--ink) 4%, transparent); }
.rowlist li:first-child > a { border-radius: 16px 16px 0 0; }
.rowlist li:last-child > a { border-radius: 0 0 16px 16px; }
.rowlist li:only-child > a { border-radius: 16px; }
.rowlist .title { grid-column: 1; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.rowlist .sub {
  grid-column: 1;
  color: var(--ink-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rowlist a::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink-3);
  border-top: 1.6px solid var(--ink-3);
  transform: rotate(45deg);
}

/* The notice in the accent's wash (the tracker's notice line). */
.notice {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--wash);
  color: var(--accent-ink);
  font-size: 0.8125rem;
}

/* A chip: the model's name, a part's state. */
.chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink-2);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

/* A chat: the person's turns on the right in the accent's bubble, the
   answers on the left on the wash, as the iPhone sets them. */
.chat-head { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
#view .chat-head h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.turns { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding-top: 0.25rem; }
.turn { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.turn .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.turn.user { align-self: flex-end; max-width: calc(100% - 3rem); }
.turn.user .text {
  padding: 0.55rem 0.875rem;
  border-radius: 18px;
  background: var(--accent);
  color: var(--paper);
}
.turn.answer { align-self: stretch; }
.turn.answer .text { line-height: 1.6; }

/* A code block stays night, and scrolls inside its own box. */
.code {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: var(--night-paper);
  color: var(--night-ink);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre;
}

/* A project, as the tracker draws it: the night band, the phase line,
   Your move, and the parts as tiles. */
.hero {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.375rem 1.25rem 1.5rem;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  color: var(--night-ink);
  background-color: var(--night-paper);
  background-image:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--night-accent) 24%, transparent), transparent 60%),
    linear-gradient(160deg, var(--night-paper-2), var(--night-paper));
  box-shadow: var(--lift);
}
.hero .kicker { color: var(--night-accent); }
#view .hero h2 { margin: 0; font-size: 2rem; color: var(--night-ink); }
.hero .tagline { color: color-mix(in srgb, var(--night-ink) 70%, transparent); font-size: 0.875rem; }
.hero a {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--night-accent);
  overflow-wrap: anywhere;
}
.hero .status {
  margin-top: 0.4rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--night-ink-3);
  overflow-wrap: anywhere;
}

.phase { padding: 1.125rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.phase .sub { color: var(--ink-2); font-size: 0.875rem; }

.steps { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-bottom: 0.875rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
}
.steps li.done:not(:last-child)::after { background: var(--second); }
.steps li.cur:not(:last-child)::after { background: linear-gradient(var(--accent), var(--wash)); }
.steps .node {
  grid-row: 1 / span 3;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--paper-2);
}
.steps .done .node { border-color: var(--second); background: var(--second); }
.steps .cur .node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--wash); }
.steps .par .node { border-style: dashed; border-color: var(--accent); }
.steps .n {
  grid-column: 2;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.steps .t { grid-column: 2; font-size: 0.875rem; overflow-wrap: anywhere; }
.steps .cur .t { font-weight: 600; }
.steps .s { grid-column: 2; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--ink-3); }
.steps .done .s { color: var(--second-ink); }
.steps .par .s { color: var(--accent); }

/* Your move: the first ask lit in the accent, with its edge. */
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.asks li {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.asks li:first-child {
  border-color: var(--accent);
  background-image: linear-gradient(90deg, var(--wash), transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.asks .when { font-family: "DM Mono", ui-monospace, monospace; font-size: 0.71875rem; color: var(--ink-3); }
.asks li:first-child .when { color: var(--accent-ink); }
.asks .what { font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.asks .why { color: var(--ink-2); font-size: 0.8125rem; overflow-wrap: anywhere; }

/* The parts, as the tracker's tiles: live and finishing in a solid edge,
   building in a dashed one over stripes, not started in a faint dash. */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.625rem;
}
.tiles li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
}
.tiles .live { border: 2px solid var(--second); background: color-mix(in srgb, var(--second) 10%, var(--paper-2)); }
.tiles .fin { border: 2px solid var(--accent); }
.tiles .build {
  border: 2px dashed var(--second);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 10px, transparent 10px 20px);
}
.tiles .top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tiles .id { font-family: "DM Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--ink-3); }
.tiles .live .id { color: var(--second-ink); }
.tiles .name { font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.tiles .what { color: var(--ink-2); font-size: 0.8125rem; overflow-wrap: anywhere; }
.tiles .pill { align-self: flex-start; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.71875rem; color: var(--accent-ink); }

/* Railway: each project's services in one card, a rule between them, a
   dot for each one's health (HealthDot.swift). */
.services { list-style: none; margin: 0; padding: 0; }
.services > li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 1rem;
}
.services > li + li { border-top: 1px solid var(--line); }
.svc { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.svc .name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dot {
  flex: none;
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.dot.ok { border-color: var(--second); background: var(--second); }
.dot.down { border-color: var(--accent); }
.dot.down::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: calc(50% - 0.75px);
  height: 1.5px;
  background: var(--accent);
}
.dot.small { width: 8px; height: 8px; }
.svc-status { font-family: "DM Mono", ui-monospace, monospace; font-size: 0.78125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.svc-status.failed { color: var(--accent-ink); }
.deploys { list-style: none; margin: 0.15rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.deploys li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--ink-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---- Wide: the Mac window. ---- */

@media (min-width: 700px) {
  /* The sidebar's column is painted on the window, so its tint and its
     rule run to the foot of a long page, and the sidebar itself sticks to
     the top of the screen with Sign out at its foot while the item scrolls. */
  .window {
    --side: 260px;
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    background-image:
      linear-gradient(90deg,
        color-mix(in srgb, var(--paper-3) 80%, transparent) 0 calc(var(--side) - 1px),
        var(--line) calc(var(--side) - 1px) var(--side),
        transparent var(--side));
    background-repeat: no-repeat;
  }
  .bar, .scrim { display: none; }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: auto;
    gap: 0.5rem;
    padding:
      max(14px, env(safe-area-inset-top))
      8px
      max(10px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    transform: none;
    visibility: visible;
    transition: none;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-right: 0;
    box-shadow: none;
  }
  .window.drawer .sidebar { box-shadow: none; }
  .brand { justify-content: center; padding: 0.25rem 0 0.625rem; }
  .places { padding-bottom: 0.5rem; border-bottom-color: var(--line-soft); }
  .places .apart { border-top-color: var(--line-soft); }
  .places a, .items a { font-size: 0.8125rem; padding: 0.375rem 0.625rem; border-radius: 8px; }
  .items .title { font-size: 0.8125rem; }
  .items .sub { font-size: 0.6875rem; }
  .foot { border-top-color: var(--line-soft); }
  .signout { font-size: 0.8125rem; padding: 0.4rem 0.625rem !important; border-radius: 8px !important; }

  .detail { padding: 1.75rem max(1.75rem, env(safe-area-inset-right)) 2.5rem 1.75rem; }
  #view { max-width: 56rem; margin: 0 auto; gap: 1rem; }
  .nothing { min-height: 70vh; min-height: 70svh; }

  .panel { border-radius: 12px; }
  .rowlist li:first-child > a { border-radius: 12px 12px 0 0; }
  .rowlist li:last-child > a { border-radius: 0 0 12px 12px; }
  .rowlist li:only-child > a { border-radius: 12px; }
  .rowlist a { padding: 0.7rem 1rem; }
  .rowlist .title { font-size: 0.9375rem; }

  #view h2 { font-size: 2rem; }
  .hero { padding: 1.75rem; border-radius: 12px; }
  #view .hero h2 { font-size: 2.5rem; }
  .phase { padding: 1.25rem 1.5rem; }
  .turn.user { max-width: 75%; }
  .turn .text { font-size: 0.9375rem; }
}

@media (min-width: 1100px) {
  .window { --side: 280px; }
  .detail { padding-left: 2.5rem; padding-right: max(2.5rem, env(safe-area-inset-right)); }
}
