/*
  The app's own additions to the look.

  Colours, type and every part come from orrery.css, which is copied from the
  design folder and never edited here. This file holds two kinds of thing:

  1. What the drawn screens set inline. The app's content security policy does
     not allow inline styles, so each one has a small class.
  2. Parts the screens did not draw: text areas, notices, forms.

  Everything here is built from orrery.css tokens. The only colours of its own
  are the three signal dots and the tints of an agent's circle, each explained
  where it is set.
*/

html, body { margin: 0; background: #F7F2E8; }

/* ---- what the screens set inline ----------------------------------------- */

.k-screen { min-height: 100vh; min-height: 100dvh; }
.k-grow { flex: 1 1 420px; min-width: 0; }
.k-grow--sm { flex: 1 1 320px; min-width: 0; }
.k-nudge { margin-right: 5px; }
.k-strong { font-weight: 600; }
.k-between { justify-content: space-between; }
.k-row--tight { gap: 8px; }
.k-key--wide { flex: 1 1 260px; }
.k-label--quiet { color: var(--quiet); }
.k-levels { margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.k-now { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--quiet); }
.k-proposed { padding: 12px 14px; border: 2px solid var(--lead); border-radius: 12px; background: var(--surface); }

/* ---- the frame ----------------------------------------------------------- */

.o-root a.o-company { display: block; text-decoration: none; }
.o-root a.o-company:hover { background: var(--surface-2); color: var(--ink); }
.k-side__who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }

/* The bar at the top: the name, and three tabs: Review, History and Setup. */
.o-root .k-top {
  background-color: var(--ground);
  background-image: url("/assets/artwork/side-waves-0898526d.svg");
  background-size: 320px 640px;
  position: sticky; top: 0; z-index: 5;
}

/* The company's logo. It sits on a tile of its own, so a dark one still shows when the bar turns dark. */
.k-tab__logo, .k-titled__logo { flex: none; object-fit: contain; background: #FFFFFF; }
.k-titled { display: flex; align-items: center; gap: 14px; min-width: 0; }
.k-titled__logo { width: 56px; height: 56px; border: var(--stroke) solid var(--ink); border-radius: 14px; }
.k-file { height: auto; padding: 10px 12px; }
.k-narrow { max-width: 560px; }
.k-medium { max-width: 760px; }

/* ---- notices ------------------------------------------------------------- */

.k-notice { margin: 0; padding: 10px 14px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-field); background: var(--surface); font-size: 15px; line-height: 1.4; }
.k-notice--alert { border-style: dashed; }
.k-notice ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- forms --------------------------------------------------------------- */

.k-form { display: flex; flex-direction: column; gap: 18px; }
.k-fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
textarea.o-input { min-height: 96px; padding: 11px 14px; line-height: 1.45; resize: vertical; }
textarea.o-input.k-tall { min-height: 168px; }
select.o-input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.o-input:focus-visible { outline-offset: 1px; }
.k-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--quiet); }

/* A sentence with blanks to fill in. The words sit on the line and the blanks stretch. */
.k-fieldset { margin: 0; min-width: 0; }
.k-fieldset > legend { padding: 0 6px; }
.k-madlib { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; }
.k-madlib .o-input { flex: 1 1 200px; width: auto; min-width: min(160px, 100%); font-family: var(--font-body); font-weight: 400; font-size: 15px; }
.k-madlib .o-input.k-short { flex: 0 0 92px; min-width: 92px; }
.k-example { margin: 0; font-size: 13px; line-height: 1.5; color: var(--quiet); }

/* A list of bets: the sentence on the left, how it stands on the right. */
.k-bets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.k-bet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.k-bet:first-child { border-top: 0; padding-top: 0; }
.k-bet p { margin: 0; }
.k-close { padding-top: 16px; border-top: 1px solid var(--line); }
.k-close p { margin: 0; }
.k-own > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.k-own[open] > summary { margin-bottom: 8px; }
.k-own .k-hint { margin-top: 6px; }
.k-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; }
.k-check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* A button that reads as a link, for small actions beside text. */
.k-linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--lead); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.k-linkish:hover { color: var(--label); }
form.k-inline { display: inline; }
.o-btn[disabled] { opacity: 0.5; cursor: default; }

/* ---- small parts --------------------------------------------------------- */

.k-ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.k-wrap { overflow-wrap: anywhere; }
.k-nowrap { white-space: nowrap; }

/*
  Signals: whether something is connected. Green, yellow, red, as on a traffic
  light, because an orange dot read as "off". These three are the only colours
  outside the look's palette, used only on these dots, and always beside a word.
*/
.o-root { --signal-go: #35A35F; --signal-wait: #F2B705; --signal-stop: #C8321F; }
.k-signal { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.k-signal::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-stop); box-shadow: inset 0 0 0 1.5px var(--ink); }
.k-signal--go::before { background: var(--signal-go); }
.k-signal--wait::before { background: var(--signal-wait); }
.k-signal--stop::before { background: var(--signal-stop); }
.o-btn .k-signal, a.k-signal { font: inherit; color: inherit; }
a.k-signal { font-family: var(--font-mono); font-size: 12px; }

/* One way to connect, folded away until it is the one wanted. */
.k-way { border: var(--stroke) solid var(--line); border-radius: var(--radius-field); padding: 12px 14px; }
.k-way[open] { border-color: var(--ink); }
.k-way > summary { cursor: pointer; }
.k-way--shown { border-color: var(--ink); }
/* A model maker's mark, in the page's own ink, beside its name. */
.k-mark { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; fill: currentColor; }

/* With no menu, the page is one column in the middle. */
.o-root .k-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.k-main { width: 100%; max-width: 1040px; margin: 0 auto; }
/*
  The bar's two tabs: the review queue and Setup, the one you are in filled. The
  count of what is waiting rides on Review. Setup is the company's logo, when it
  has one, on a white tile of its own so a dark mark still shows on the filled tab.
*/
.k-tabs { display: inline-flex; flex: none; padding: 3px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); }
.o-root a.k-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1; text-decoration: none; white-space: nowrap; }
.o-root a.k-tab:hover { background: var(--surface-2); color: var(--ink); }
.o-root a.k-tab[aria-current="page"] { background: var(--ink); color: var(--ground); }
.o-root a.k-tab--logo { padding-left: 6px; }
.k-tab__logo { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }

/*
  ---- who it is from, and how far they are trusted ------------------------------

  An agent's colour. The second exception to "one orange", made by the founder on
  2026-11-29 so that Support, Returns and Content are told apart at a glance in the
  queue. Used only on an agent's circle and on the swatches that pick it, always
  with the chocolate stroke, and always beside the agent's name.
*/
.o-root { --agent-amber: #FFC857; --agent-sky: #9CC9E8; --agent-rose: #F5A8C4; --agent-teal: #80D4C1; --agent-lilac: #C6B5F2; --agent-sage: #A3D9A5; --agent-peach: #FFB59B; --agent-sand: #EFE8DA; }
.k-face { flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: 0; text-transform: none; }
.k-face--lg { width: 36px; height: 36px; font-size: 13.5px; }
.k-face--xl { width: 56px; height: 56px; font-size: 20px; }
.k-face--amber { background: var(--agent-amber); }
.k-face--sky { background: var(--agent-sky); }
.k-face--rose { background: var(--agent-rose); }
.k-face--teal { background: var(--agent-teal); }
.k-face--lilac { background: var(--agent-lilac); }
.k-face--sage { background: var(--agent-sage); }
.k-face--peach { background: var(--agent-peach); }
.k-face--sand { background: var(--agent-sand); }
/* A human: two letters on sand, with a quiet stroke. */
.k-face--human { background: var(--surface-2); border-color: var(--quiet); }
.k-face--sm { width: 22px; height: 22px; font-size: 9.5px; }
/* An agent's ring: how far it is towards its next level. A sand track round the
   circle, filling in orange clockwise from the top. Full, it thickens and says UP. */
.k-ring { position: relative; flex: none; display: inline-grid; place-items: center; padding: 5px; }
.k-ring--sm { padding: 4px; }
.k-ring--lg { padding: 6px; }
.k-ring--xl { padding: 8px; }
.k-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.k-ring__back, .k-ring__fill { fill: none; stroke-width: 3; }
.k-ring__back { stroke: var(--surface-2); }
.k-ring__fill { stroke: var(--lead); stroke-linecap: round; }
.k-ring--full .k-ring__fill { stroke-width: 4; }
.k-ring--full::after { content: "UP"; position: absolute; top: -5px; right: -9px; padding: 3px 5px; border-radius: var(--radius-pill); background: var(--ink); color: var(--ground); font-family: var(--font-mono); font-weight: 500; font-size: 9px; line-height: 1; letter-spacing: 0.06em; }
.k-ring-count { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); }
.k-ring-count__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); }
/* "+1" beside the ring, after a thumbs up. */
.k-plus { display: inline-grid; place-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--lead); color: var(--on-lead); font-weight: 700; font-size: 12px; line-height: 1; box-shadow: 0 2px 0 var(--ink); animation: k-rise 300ms ease-out; }
.k-said__ring { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .k-plus { animation: none; } }
/* A name with its circle before it. */
.k-named { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-named--lg { gap: 16px; }

/* Picking the colour, on the agent's form. The one chosen stands up on the hard shadow. */
.k-fieldset--bare { padding: 0; border: 0; }
.k-fieldset--bare > legend { padding: 0; }
.k-swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0 6px; }
.k-swatch { position: relative; display: inline-flex; cursor: pointer; }
.k-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.k-swatch .k-face { width: 40px; height: 40px; font-size: 14px; transition: transform 80ms ease, box-shadow 80ms ease; }
.k-swatch input:checked + .k-face { transform: translateY(-3px); box-shadow: var(--shadow-hard-sm); }
.k-swatch input:focus-visible + .k-face { outline: 2px solid var(--ink); outline-offset: 3px; }

/* A level, as a chip that fills up the more the agent may do alone. The word is always in it. */
.k-level { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; line-height: 1; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.k-level--watch { border-style: dashed; border-color: var(--quiet); color: var(--quiet); }
.k-level--act { background: var(--ink); color: var(--ground); }
.k-level--own { background: var(--lead); color: var(--on-lead); }

/* A key, as a small cap. Hidden where there is no keyboard to press. */
kbd.k-key { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; line-height: 1; }
kbd.k-key + kbd.k-key { margin-left: -4px; }
.o-btn kbd.k-key { margin-left: 2px; }
.o-btn--primary kbd.k-key { background: rgba(255, 255, 255, 0.5); border-color: rgba(52, 30, 19, 0.25); }
@media (hover: none) { .o-btn kbd.k-key, .k-said kbd.k-key, .k-place__keys { display: none; } }

/* Every key, on one card. */
dialog.k-keys { width: min(460px, calc(100vw - 32px)); padding: 22px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-hard); }
dialog.k-keys::backdrop { background: rgba(52, 30, 19, 0.4); }
.k-keylist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.k-keylist li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.3; }
.k-keylist li > span:first-child { flex: none; display: inline-flex; gap: 9px; width: 78px; }

/*
  ---- the review queue: a pile of cards ----------------------------------------

  The open card sits on top. While more are waiting, up to two blank cards lie
  under it, turned a little either way, like paper on a desk. A swipe right or a
  key sends the top card off the pile, and the next is underneath. Under the
  pile: where this card is in it, with Back and Skip.
*/
.o-root [hidden] { display: none !important; }
.k-queue { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 720px; min-width: 0; margin: 0 auto; }

.k-pile { display: grid; padding: 4px 2px 10px; }
.k-pile > * { grid-area: 1 / 1; min-width: 0; }
.k-pile__under { border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--surface); }
.k-pile__under--1 { transform: rotate(-2.6deg) translate(-3px, 8px); }
.k-pile__under--2 { transform: rotate(2.2deg) translate(4px, 11px); }
.k-pile .k-open { position: relative; z-index: 1; }

.k-from { display: flex; align-items: center; gap: 9px; min-width: 0; }
.k-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; line-height: 1.2; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.k-tag { flex: none; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.2; letter-spacing: 0.07em; text-transform: uppercase; color: var(--quiet); white-space: nowrap; }
.k-age { flex: none; margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.2; color: var(--quiet); white-space: nowrap; }

/* The open card. */
.k-open { display: flex; flex-direction: column; gap: 16px; padding: 20px; touch-action: pan-y; transition: transform 200ms ease, opacity 200ms ease; animation: k-rise 140ms ease-out; }
.k-open--yes { transform: translateX(70%) rotate(7deg); opacity: 0; }
.k-swiping { transition: none !important; }
@keyframes k-rise { from { opacity: 0.3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-open { animation: none; transition: none; } }
.k-open__what { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.6cqw, 28px); line-height: 1.12; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.k-open__change { padding: 14px 16px; border: var(--stroke) solid var(--line); border-radius: var(--radius-field); }
/* The thing itself, when the agent handed it over: the reply it would send. */
.k-draft { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: var(--stroke) solid var(--line); border-radius: var(--radius-field); background: var(--ground); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.k-draft p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.k-open__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.k-open__foot > p { flex: 1 1 120px; margin: 0; }
.k-pair { display: flex; gap: 10px; margin-left: auto; padding-bottom: 4px; }
.k-pair form { display: flex; }
.k-thumb { gap: 9px; min-height: 48px; padding: 0 18px; font-size: 16px; }
.k-thumb__mark { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The box a thumbs down opens. */
.k-words { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
textarea.o-input.k-words__box { min-height: 0; height: auto; padding: 10px 14px; line-height: 1.4; resize: vertical; background: var(--surface-2); }
.k-words__box:focus-visible { outline: 2px solid var(--lead); outline-offset: 1px; }
.k-check { display: flex; align-items: center; gap: 8px; }
/* What just happened, with a way to take it back. */
.k-said { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.k-said__undo { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }

/* Where this card is in the pile, with Back and Skip. */
.k-place { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.k-place__at { font-family: var(--font-mono); font-size: 12.5px; line-height: 1; color: var(--quiet); white-space: nowrap; }
.o-root a.k-place__go { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: var(--stroke) solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; }
.o-root a.k-place__go:hover { border-color: var(--ink); color: var(--ink); }
.o-root .k-place > :last-child { justify-self: end; }
.k-place__keys { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 0 0; }

/*
  ---- History: who answered what, newest first ---------------------------------

  A human's circle and name, the thumb and word they answered with, and under it
  the card it was. The words that went with a thumbs down follow an orange rule.
*/
.k-history-page { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 720px; min-width: 0; margin: 0 auto; }
.k-history { margin: 0; padding: 0; list-style: none; border: var(--stroke) solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.k-event { display: flex; flex-direction: column; gap: 7px; padding: 14px 18px; border-top: 1px solid var(--line); min-width: 0; }
.k-event:first-child { border-top: 0; }
.k-event__top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.k-event__name { font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.k-event__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.k-event__end .k-age { margin-left: 0; }
.k-answered { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; line-height: 1; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.k-answered--up { background: var(--lead); color: var(--on-lead); }
.k-answered--plain { border-color: var(--line); color: var(--ink-2); }
.k-answered .k-thumb__mark { width: 13px; height: 13px; stroke-width: 2.2; }
.k-event__item { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.k-event__item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-event__said { margin: 0 0 0 30px; padding-left: 10px; border-left: 2px solid var(--lead); font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.k-event__since { margin: 0 0 0 30px; font-size: 13px; line-height: 1.35; color: var(--quiet); }

@container (max-width: 560px) {
  /* On a phone the name and the tabs are tighter, so all three tabs fit beside it, and
     Setup is the logo alone when there is one. */
  .o-root .k-top { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .k-top .o-wordmark--sm { font-size: 19px; gap: 6px; }
  .k-top .o-wordmark--sm svg { width: 20px; height: 20px; }
  .o-root a.k-tab { gap: 6px; padding: 0 10px; font-size: 14px; }
  .o-root a.k-tab--logo { padding: 0 5px; }
  .k-tab--logo .k-tab__word { display: none; }
  .k-open { padding: 16px; }
  .k-event { padding: 12px 14px; }
  .k-pair { width: 100%; }
  .k-pair > * { flex: 1 1 0; min-width: 0; }
  .k-pair .o-btn { width: 100%; padding: 0 12px; }
  .k-pair kbd.k-key { display: none; }
}

/* Nothing waiting: a small orrery, and one line. */
.k-clear { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.k-clear:first-of-type { padding-top: min(8vh, 64px); }
.k-clear__art { width: 150px; height: 150px; }
/* The planets go round, each at its own pace, from where the still drawing has them.
   The sun and its glow beat from heartbeat_controller.js; the glow is not there between beats. */
.k-clear__orbit, .k-clear__sun, .k-clear__glow { transform-box: view-box; transform-origin: 80px 80px; }
.k-clear__orbit { animation: k-orbit 64s linear infinite; }
.k-clear__orbit--middle { animation-duration: 38s; }
.k-clear__orbit--inner { animation-duration: 22s; }
.k-clear__glow { opacity: 0; }
@keyframes k-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .k-clear__orbit { animation: none; } }
.k-clear .o-lead { max-width: 44ch; }
.k-clear .k-said { justify-content: center; }
.k-clear__more { width: 100%; max-width: 760px; margin: 0 auto; }
.k-clear__more > summary { text-align: center; }
/* A human's answer to an agent: a line to type and a button, under what was asked. */
.k-full { flex: 1 1 100%; }
.k-answer { margin-top: 4px; }
/* A wrapper that takes no part in the layout: its children sit where it does. */
.k-contents { display: contents; }
/* Something a reader can open, kept out of the way of what they came to do. */
.k-more > summary { cursor: pointer; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.k-more[open] > summary { margin-bottom: 12px; }
.k-way[open] > summary { margin-bottom: 12px; }

/* The steps of connecting an agent: done, next, or still to come. */
.k-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.k-step { display: flex; align-items: flex-start; gap: 12px; }
.k-step__mark { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: var(--stroke) solid var(--line); border-radius: 50%; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--quiet); }
.k-step--done .k-step__mark { border-color: var(--ink); background: var(--ink); color: var(--ground); }
/* The steps said large, for the one moment a page has a single thing to ask. */
.k-steps--large { gap: 20px; }
.k-steps--large .k-step { gap: 16px; }
.k-steps--large .k-step__mark { width: 36px; height: 36px; font-size: 15px; border-color: var(--ink); color: var(--ink); background: var(--surface); }
.k-steps--large .k-step--done .k-step__mark { background: var(--surface); color: var(--ink); }
.k-steps--large strong { font-size: 19px; }
/* Something to say to an assistant, shown as it would be typed, with a way to copy it. */
.k-say { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; padding: 18px 20px; border-radius: var(--radius-card); background: #341E13; }
.k-say__words { font-family: var(--font-mono); font-size: 22px; line-height: 1.3; color: #FFF1DC; }
.k-step--next .k-step__mark { border-color: var(--ink); background: var(--lead); color: var(--ink); }
.k-prose { white-space: pre-wrap; }
.o-table td.k-actions { text-align: right; white-space: nowrap; }
.k-once { display: block; padding: 12px 14px; border: 2px solid var(--lead); border-radius: 12px; background: var(--surface); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

/* A select that takes the width of its words, beside a button: an agent's timer, its machine. */
.o-root select.o-input.k-select--short { width: auto; min-width: 0; }

/* A link to part of a page (#runs, after Run now) lands below the bar at the top,
   which stays in place as the page scrolls, instead of under it. */
.k-screen [id] { scroll-margin-top: 120px; }
