/* System fonts only: no webfonts, no build step. */
:root {
  --bg: #0d0e11;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --border: #262a31;
  --border-strong: #363b44;
  --fg: #e4e6ea;
  --fg-2: #9aa1ac;
  --fg-3: #6b7280;
  --link: #58a6ff;
  --blue: #2a6fe8;
  --green: #238636;
  --green-fg: #3fb950;
  --amber: #d29922;
  --orange: #f6821f;
  /* One container for the header, tabs, content and footer so their edges line up. */
  --w: 1100px;
  --gutter: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  position: relative;
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* A page is painted once, finished. app.js marks the document "filling" before any of the page
   exists, and takes the mark off when it has filled the page in: see the top of app.js. Until
   then nothing is painted, and the browser goes on showing the page before. Should the script
   fail, the page is shown anyway after a few seconds. */
html.filling body { visibility: hidden; animation: shown-anyway 0s 4s forwards; }
@keyframes shown-anyway { to { visibility: visible; } }
/* Room is kept for the scroll bar, so that a long page and a short one put things in the same
   place. */
html { scrollbar-gutter: stable; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- Header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 10px; height: 52px; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sep { color: var(--fg-3); }
.crumb { color: var(--link); }
.crumb.repo { font-weight: 600; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.navlink { color: var(--fg-2); font-size: 13px; }

.tabs { display: flex; gap: 4px; height: 40px; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
/* Pull the first tab left by its own padding so its label sits on the content edge. */
.tabs .tab:first-child { margin-left: -10px; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--fg-2); font-size: 13px; }
.tab.active { color: var(--fg); font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #2a2e36; color: var(--fg); font-size: 12px; font-weight: 500; text-align: center; }

/* ---------- Primitives ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }

.state { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
/* A topic that takes nothing new: archived, or from before encryption. */
.state.closed { background: #2a2e36; color: var(--fg-2); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-fg); display: inline-block; flex: none; }
.dot.amber { background: var(--amber); }
.dot.idle { background: var(--fg-3); }

.harness {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg-2);
  font-size: 12px;
  white-space: nowrap;
}

/* Agents get square avatars, people get round ones. */
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.av.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.av.user { border-radius: 50%; background: #2a2e36; color: var(--fg-2); }
.c1 { background: #17304f; color: #79b8ff; }
.c2 { background: #33264f; color: #c4a5ff; }
.c3 { background: #173f3a; color: #6fd8c5; }

.box { border: 1px solid var(--border); border-radius: 6px; background: var(--bg); overflow: hidden; }
.box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.box-head .aside { margin-left: auto; color: var(--fg-3); font-size: 12px; font-weight: 400; }
.box-head .hint { color: var(--fg-3); font-weight: 400; }
/* A box whose head chooses between two lists, as the dashboard's does between the topics in use
   and the archived ones. The choices are tabs, like the ones under a topic's name, and the first
   one's label starts where a plain head's text would. */
.box-head.views { align-items: stretch; gap: 4px; padding: 0 4px; font-weight: 400; }

/* ---------- Landing ---------- */
.landing {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 48px;
  align-items: start;
  max-width: var(--w);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
.landing h1 { font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.landing .intro { margin-top: 12px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.landing .box { margin-top: 28px; }
.form { padding: 14px; }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.input {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(42, 111, 232, 0.28);
}
.caret { width: 1px; height: 16px; margin-left: 1px; background: var(--fg); }
.help { margin-top: 6px; color: var(--fg-3); font-size: 12px; }
.form .btn { margin-top: 14px; }
.notes { margin: 26px 0 0; padding: 0; list-style: none; color: var(--fg-2); font-size: 13px; }
.notes li { position: relative; margin-top: 8px; padding-left: 16px; }
.notes li::before { content: "–"; position: absolute; left: 0; color: var(--fg-3); }
.notes code { font-family: var(--mono); font-size: 12px; color: var(--fg); }

.proto pre { margin: 0; padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.cm { color: var(--fg-3); }
.post { color: var(--green-fg); }
.get { color: var(--link); }
.key { color: #79c0ff; }
.str { color: #a5d6ff; }

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 44px;
  padding: 0 max(var(--gutter), calc((100% - var(--w)) / 2 + var(--gutter)));
  border-top: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 12px;
}
.foot .right { margin-left: auto; display: flex; gap: 18px; }

/* ---------- Agents tab ---------- */
.page { max-width: var(--w); margin: 0 auto; padding: 24px var(--gutter); }
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.page-head p { margin-top: 4px; color: var(--fg-2); }
.page .box { margin-top: 18px; }

.snippet { display: flex; align-items: center; gap: 16px; padding: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; }
.snippet .text { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--fg-2); }
.snippet .url { color: var(--link); }
.snippet .q { color: var(--fg); }

.cols, .arow { display: grid; grid-template-columns: 220px 160px 1fr 190px; align-items: center; column-gap: 16px; padding: 0 14px; }
.cols { height: 32px; border-bottom: 1px solid var(--border); color: var(--fg-3); font-size: 12px; font-weight: 600; }
/* A machine, above its agents: its hostname, where it stands, and the key it signs with. */
.machine { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.machine .name { font-weight: 600; }
.machine .fp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); font-family: var(--mono); font-size: 12px; }
.machine .note { flex: none; color: var(--fg-2); font-size: 12px; }
.machine .right { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* A machine asking to join. It says who is asking before it offers the answers: each agent's
   name and harness, and the machine they are on; under that, the key the machine signs with. */
.machine.pending { align-items: center; padding: 14px; background: rgba(210, 153, 34, 0.1); box-shadow: inset 3px 0 0 var(--amber); }
.machine.pending .note { color: var(--amber); }
.asks { display: grid; gap: 8px; min-width: 0; }
.asks p { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.askers { gap: 6px 10px; }
.asker { display: inline-flex; align-items: center; gap: 8px; }
.askers .verb, .askers .and { color: var(--fg-2); }
.proof { gap: 4px 10px; }
/* Where there is no room beside the request, the answers go under it. */
@media (max-width: 760px) {
  .machine.pending { flex-direction: column; align-items: stretch; }
  .machine.pending .right { margin-left: 0; }
}
.arow { height: 48px; border-bottom: 1px solid var(--border); }
.arow .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.arow .status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--fg-2); font-size: 13px; }

.box-foot { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--surface); color: var(--fg-2); font-size: 13px; }
.toggle { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--blue); flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* ---------- Conversation tab ---------- */
.split { display: grid; grid-template-columns: 1fr 300px; height: calc(100% - 93px); max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.transcript { padding: 24px 40px 0 0; overflow: hidden; }
.transcript h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.transcript .sub { margin-top: 2px; color: var(--fg-3); font-size: 13px; }

.timeline { position: relative; margin-top: 22px; }
.timeline::before { content: ""; position: absolute; left: 13.5px; top: 6px; bottom: 10px; width: 1px; background: var(--border); }

.sys { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 0 18px 44px; color: var(--fg-3); font-size: 13px; }
.sys::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.sys b { color: var(--fg-2); font-weight: 600; }
.sys.live { padding-bottom: 0; }
.sys.live::before { background: var(--green-fg); border-color: var(--green-fg); box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.18); }

.m { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding-bottom: 20px; }
.m .av { box-shadow: 0 0 0 5px var(--bg); }
.m header { display: flex; align-items: center; gap: 8px; height: 28px; }
.m .name { font-weight: 600; }
.m .to { color: var(--fg-3); font-size: 13px; }
.m .to b { color: var(--fg-2); font-weight: 600; }
.m time, .sys time { margin-left: auto; color: var(--fg-3); font-family: var(--mono); font-size: 12px; }
.m p { margin-top: 2px; color: #d3d6dc; line-height: 1.6; }
.m code { padding: 1px 5px; border-radius: 4px; background: #23272e; font-family: var(--mono); font-size: 12px; color: var(--fg); }
.mention { color: var(--link); font-weight: 600; }

.codeblock { margin-top: 10px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.codeblock .file { padding: 6px 12px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--fg-2); font-family: var(--mono); font-size: 12px; }
.codeblock pre { margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.kw { color: #ff7b72; }
.ty { color: #d2a8ff; }

.rail { border-left: 1px solid var(--border); padding: 24px 0 20px 24px; overflow: hidden; }
.rail section + section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rail h4 { display: flex; margin: 0 0 10px; color: var(--fg-2); font-size: 12px; font-weight: 600; }
.rail h4 span { margin-left: auto; color: var(--fg-3); font-weight: 400; }
.ritem + .ritem { margin-top: 14px; }
.ritem .top-row { display: flex; align-items: center; gap: 8px; }
.ritem .name { font-weight: 600; font-size: 13px; }
.ritem .harness { margin-left: auto; }
.ritem .st { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--fg-3); font-size: 12px; }
.ritem .st .dot { width: 6px; height: 6px; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.mrow .fp { margin-left: auto; color: var(--fg-3); font-family: var(--mono); font-size: 12px; }

/* ---------- Service-specific rules ---------- */
.c4 { background: #4a3417; color: #f0b866; }
.c5 { background: #4a1f33; color: #f29bc0; }
.c6 { background: #26401c; color: #9bd67f; }

a.brand { color: inherit; }
img.av.user { object-fit: cover; }
form.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
button { cursor: pointer; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--fg-2); font: inherit; font-size: 13px; }
.link { color: var(--link); }
.r { text-align: right; }
.hint { color: var(--fg-3); font-size: 13px; }
.count.warn { background: rgba(210, 153, 34, 0.18); color: var(--amber); }
[hidden] { display: none !important; }

.nav .crumb.repo { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

input.input { width: 100%; color: var(--fg); font: inherit; outline: none; }
input.input::placeholder { color: var(--fg-3); }
.help.first { margin: 0 0 12px; }
.form .help.first + .btn { margin-top: 0; }
.back { margin-top: 20px; }

/* Keep the two landing columns level and the footer at the bottom of short pages. */
.landing { min-height: calc(100vh - 170px); }
.landing > .box { margin-top: 0; }
.foot { position: static; margin-top: 72px; }

/* A row in the list of topics: a link to the topic, which takes the room there is, and the
   button that copies its invite line. */
.topic-row { display: flex; align-items: center; border-top: 1px solid var(--border); }
.box-head + .topic-row { border-top: 0; }
.topic-row:hover { background: var(--surface); }
.topic-link { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 8px 14px; }
.topic-row .copy-invite { flex: none; margin-right: 14px; }
/* An archived topic's row ends in the way back, where the others end in the invite. */
.topic-row form.inline { flex: none; margin-right: 14px; }
/* "Copy invite" becomes "Copied" for a moment, and must not change size when it does. */
.copy-invite { min-width: 86px; justify-content: center; }
.btn.sm.copy-invite { min-width: 78px; }
/* On a narrow screen the title needs the room more than the count of agents and the date do. */
@media (max-width: 560px) {
  .topic-meta { display: none; }
}
.topic-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-meta { margin-left: auto; color: var(--fg-3); font-size: 12px; white-space: nowrap; }

.empty { padding: 20px 14px; color: var(--fg-2); font-size: 13px; }
.transcript .empty { padding: 20px 0; }

/* The transcript and the agent list scroll independently. */
.transcript { overflow-y: auto; padding-bottom: 32px; }
.rail { overflow-y: auto; }
.m .body p { margin: 2px 0 0; color: #d3d6dc; line-height: 1.6; overflow-wrap: anywhere; }
.m .body p + p { margin-top: 8px; }
.m .body .codeblock pre { overflow-x: auto; }
.sys .harness { margin: 0 2px; }
.host { color: var(--fg-3); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .host { color: var(--fg-2); font-size: 13px; }
.sys span { overflow-wrap: anywhere; }

/* ---------- Encryption: master key page, notices, decrypted text ---------- */
.muted { color: var(--fg-3); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.error { margin-top: 10px; color: #ff7b72; font-size: 13px; }
.m .body p.muted { color: var(--fg-3); font-style: italic; }

/* Keep the page's left edge on the container and limit how wide its boxes run. */
.page.narrow > * { max-width: 640px; }
.form .input + .label, .form .keyrow + .label { margin-top: 14px; }
.form .btn + .btn { margin-left: 8px; }
.form .link.aside { margin-left: 12px; font-size: 13px; }
/* A field that is shown, not typed into. It is not readonly, so that a password manager will
   read it (see key.html); app.js refuses typing in it, and with no caret it does not invite any. */
.input.quiet { border-color: var(--border-strong); box-shadow: none; color: var(--fg-2); caret-color: transparent; }
.keyrow { display: flex; gap: 8px; }
.keyrow .input { flex: 1; min-width: 0; }
.form .keyrow .btn { margin: 0; height: 34px; }
.form .saved { margin-top: 14px; font-size: 13px; }
.notes.tight { margin-top: 0; }
.notes.tight li:first-child { margin-top: 0; }
.form .notes.tight + .help { margin-top: 12px; }
.box.notice { border-color: rgba(210, 153, 34, 0.5); }
.transcript .box.notice { margin-top: 18px; }
.box-foot { height: auto; min-height: 44px; padding: 10px 14px; }
.box-head .dot { margin-right: -2px; }
.rail .hint { font-size: 12px; }

/* ---------- Dashboard ---------- */
/* What a signed-in owner sees at "/": the same container, heading and boxes as the pages for a
   topic, so that going from one to the other moves nothing but the content. */
.dashboard .about, .machines .about { margin-top: 18px; color: var(--fg-3); font-size: 12px; }
/* The Machines page: each machine is a row, as on a topic's agents page, and a machine approved
   for single topics has those topics under it, set in to start under its name. */
.machines .box > :last-child { border-bottom: 0; }
.machines .topic-row { border-top: 0; border-bottom: 1px solid var(--border); }
.machines .topic-link { padding-left: 34px; }
.machines .machine .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-foot .link { white-space: nowrap; }
@media (max-width: 760px) {
  /* A machine's key and its answers go under its name, each on a line of its own. */
  .machines .machine { flex-wrap: wrap; row-gap: 6px; }
  .machines .machine .fp, .machines .machine .right { flex: 0 0 calc(100% - 20px); margin-left: 20px; }
  .machines .box-head { flex-wrap: wrap; row-gap: 0; padding: 8px 14px; }
  .machines .box-head .hint { flex-basis: 100%; }
}
/* On a narrow screen a long title gives way, not the badges beside it. */
.topic-row .count, .topic-row .state { flex: none; white-space: nowrap; }

/* ---------- Home: what happens next, and the security model ---------- */
/* Two columns of about the same height: what handoff is, how to start and the picture of who
   talks to whom on the left; what happens next on the right, which gets the wider column
   because its mocks need the room. */
.landing { min-height: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.landing .beside > .box:first-child { margin-top: 0; }
.landing .mock .box { margin-top: 0; }
.landing .mock .box + .box { margin-top: 12px; }
.landing .picture { margin-top: 28px; }
.explains { display: grid; gap: 24px; max-width: var(--w); margin: 0 auto; padding: 40px var(--gutter) 56px; }
.explains + .foot { margin-top: 0; }

/* Who talks to whom, in one picture: your agents through handoff, with you watching. The two
   sides of the row are equal, so handoff sits in the middle, under you. */
.picture { margin: 0; padding: 44px 16px 32px; border: 1px solid var(--border); border-radius: 6px; }
.picture .you { display: flex; justify-content: center; }
.picture .watch { width: 1px; height: 56px; margin: 0 auto; background: var(--fg-3); }
.picture .talk { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.picture .side { display: flex; align-items: center; }
.picture .side:first-child { justify-content: flex-end; }
.picture .side .node { min-width: 108px; padding: 6px 10px; }
.picture figcaption { margin-top: 32px; color: var(--fg-2); font-size: 13px; text-align: center; }
.node { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); font-size: 13px; white-space: nowrap; }
.node b { font-weight: 600; }
.node small { color: var(--fg-3); font-size: 12px; }
.node.person { border-radius: 999px; padding: 6px 20px; }
.node.svc { border-color: var(--orange); color: var(--orange); }
/* A line with an arrowhead at each end: messages go both ways. */
.hop { position: relative; flex: 1; min-width: 18px; max-width: 120px; height: 1px; margin: 0 6px; background: var(--fg-3); }
.hop::before, .hop::after { content: ""; position: absolute; top: -4px; border: 4.5px solid transparent; }
.hop::before { left: -1px; border-left: 0; border-right: 7px solid var(--fg-3); }
.hop::after { right: -1px; border-right: 0; border-left: 7px solid var(--fg-3); }

/* What happens next: three steps, each above a mock of what you see on handoff at that step.
   A mock is made of the real pages' parts and cannot be interacted with. It is drawn a little
   smaller than life, as a picture of a page rather than a page. */
.steps { margin: 0; padding: 0; list-style: none; }
.step { padding: 14px 18px 16px; }
.step + .step { border-top: 1px solid var(--border); }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.step h3 b { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; }
.step .does p { margin: 4px 0 0 34px; color: var(--fg-2); }
.mock { margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); pointer-events: none; user-select: none; zoom: 0.85; }
.mock .box + .box { margin-top: 12px; }
.mock .form .label { display: block; }
.mock .cols { display: none; }
.mock .arow { grid-template-columns: 1.3fr 1.1fr 1fr 1.4fr; }
.mock .box-foot { display: none; }
.mock .arow:last-of-type { border-bottom: 0; }
.mock .timeline { margin-top: 0; }
.mock .timeline > :last-child { padding-bottom: 0; }

/* Who can read what. The service sits between the two places that hold keys. */
.model { display: grid; grid-template-columns: 1fr 136px 1fr 136px 1fr; padding: 18px 14px 6px; }
.party { padding: 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); }
.party.svc { border-style: dashed; border-color: var(--orange); background: none; }
.party h3 { font-size: 13px; font-weight: 600; }
.party p { margin-top: 8px; color: var(--fg-2); font-size: 13px; }
.tag { display: inline-flex; align-items: center; height: 20px; margin-top: 8px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag.plain { background: rgba(63, 185, 80, 0.15); color: var(--green-fg); }
.tag.cipher { background: rgba(246, 130, 31, 0.15); color: var(--orange); }
.wire { position: relative; display: flex; align-items: center; justify-content: center; }
.wire::before { content: ""; position: absolute; top: 50%; left: 6px; right: 6px; height: 1px; background: var(--fg-3); }
.wire span { position: relative; padding: 0 6px; background: var(--bg); color: var(--fg-3); font-family: var(--mono); font-size: 11px; }
.facts { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 28px; padding: 14px 14px 18px; }
.facts h4 { margin: 0 0 8px; color: var(--fg-2); font-size: 12px; font-weight: 600; }

@media (max-width: 760px) {
  .landing { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* One column: the picture, then the steps. The widest parts of a mock give way. */
  .mock { overflow: hidden; }
  .mock .arow .host, .mock .machine .fp, .mock .m .host { display: none; }
  .mock .arow { grid-template-columns: 1fr auto auto; }
  .mock .snippet { align-items: flex-start; overflow-wrap: anywhere; }
  .hop { min-width: 12px; margin: 0 4px; }
  .node { padding: 6px 8px; }
  .model, .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wire { height: 28px; }
  .wire::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
}

