/* The one stylesheet for every page the hub serves: the owner's pages, sign-in, desk cards, the screen.
   The look is taiku's (b1941; its DESIGN.md, the tokens in its src/app.css and tailwind.config.cjs, and its sign-in
   pages as they draw): grouping by a tonal surface a step lighter than the canvas, with no border and no shadow; one
   rationed blue that only signals state or the one action; hierarchy from weight and colour rather than size; Helvetica
   for every proportional face; section labels at 13 bold in the muted ink; rows that lead with a tile. Dark is taiku's
   own palette, value for value. taiku draws no light chrome, so light is the same structure on its neutral (zinc)
   family and the same blue ramp. Colour follows the system's light or dark setting.
   Spacing keeps to 4/8/12/16/24/32/48; type to 12/13/15/16/22 (28 for a sign-in page's title, 29 for a desk page's). */

:root {
  color-scheme: light dark;
  --canvas: #f4f4f5;   /* the page */
  --cell: #ffffff;     /* a group's surface */
  --well: #ececee;     /* a surface inside a group: a field, a tile, a chip */
  --well-2: #e4e4e7;   /* a pressed or selected surface */
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #666670;    /* 5.7:1 on the cell, 5.2 on the canvas, 4.8 on the well */
  --line: rgba(0, 0, 0, 0.08);
  --edge: rgba(0, 0, 0, 0.14);  /* the hairline round a control: a field, a quiet button */
  --field: #ffffff;    /* a field, a choice to tap: white with the hairline on light, taiku's raised surface on dark */
  --track: #ececee;    /* a segmented control's track, and --raised the chosen one in it */
  --raised: #ffffff;
  /* taiku's blue ramp (tailwind.config.cjs): 700 where it is words on a light ground (6.1:1 on white), and 700 again as
     the fill that carries white words (taiku's --tk-accent-fill, 6.1:1), in light and dark alike */
  --blue: #1a5fbf;
  --blue-fill: #1a5fbf;
  --on-blue: #ffffff;
  --blue-wash: #e6f0ff;
  --green: #1d8a3e;
  --on-green: #ffffff;
  --amber: #a35a00;
  --red: #c4261d;
  --bubble: #e9e9ec;
  --shadow: 0 0 0 0 transparent;  /* depth is the surface's lightness, as taiku's is: no drop shadow */
  --ring: 0 0 0 0 transparent;
  --radius: 12px;      /* a group, a card (taiku's rounded-xl) */
  --radius-c: 8px;     /* a control: a field, a button (its rounded-lg) */
  --radius-l: 12px;
  --font: Helvetica, "Helvetica Neue", "Nimbus Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: 0.15s ease-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* taiku's --tk-* tokens (src/app.css), one for one */
    --canvas: #0a0a0c;   /* --tk-bg */
    --cell: #161619;     /* --tk-surface-1 */
    --well: #202025;     /* --tk-surface-2 */
    --well-2: #2c2c32;   /* --tk-surface-3 */
    --ink: #f4f4f5;      /* --tk-ink */
    --ink-2: #cdd0d6;    /* --tk-ink-secondary */
    --ink-3: #8b8b96;    /* --tk-ink-muted: 5.9:1 on the canvas, 5.4 on a group, 4.8 on a field */
    --line: rgba(255, 255, 255, 0.08);  /* on a group this draws #28282b, taiku's --tk-line (#26262b) */
    --edge: rgba(255, 255, 255, 0.08);
    --field: #202025;    /* --tk-surface-2, as taiku's .tk-input */
    --track: #161619;    /* taiku's .tk-seg: surface-1 with the hairline, the chosen one on surface-3 */
    --raised: #2c2c32;
    --blue: #2e8fff;     /* --tk-accent: as words, a ring, a dot (6.1:1 on the canvas) */
    --blue-fill: #1a5fbf;  /* --tk-accent-fill: under white words (6.1:1) */
    --on-blue: #ffffff;
    --blue-wash: rgba(46, 143, 255, 0.12);  /* accent-soft */
    --green: #4ade80;    /* --tk-ok */
    --on-green: #07170c;   /* a tick on the bright dark-mode green reads dark, not white */
    --amber: #fcd34d;    /* --tk-warn */
    --red: #f87171;      /* --tk-danger */
    --bubble: #202025;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; overflow-wrap: anywhere; text-wrap: balance; }
/* a section label, as taiku's .tk-label: 13 bold in the muted ink, as written, sitting on the left edge of the group
   it heads, with its count after it */
h2 { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0;
  color: var(--ink-3); margin: 24px 0 8px; }
h2 .count { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
h3 { font-size: 16px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .note { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
code, .mono { font-family: var(--mono); font-size: 0.86em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- the frame: the list of sections in a pane on the left, as /work's list sits beside its thread; on a phone
   the chat is home (b1562) and every page starts with the app's bar (bar.css); Home lists the sections ---------- */

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 12px 32px; border-right: 1px solid var(--line); }
.page { min-width: 0; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px 32px 96px; overflow-wrap: anywhere; }
.page :where(span, div, p, a, label, li, summary, form) { min-width: 0; }

/* On a computer the pages there is a lot to scan on (Desk, Workstreams, Home) use the window: their sections sit in two
   columns, in the order a phone reads them down, and the page is as wide as that takes. A page says so with .cols.two
   around two .col, only when it has something for each (.cols.wide: one column that still wants the width). Under
   1180 px (a phone, a narrow window) .cols is nothing and the page is the one column it was. Settings pages never say
   it. (b2869) */
@media (min-width: 1180px) {
  .page:has(.cols.two), .page:has(.cols.wide) { max-width: 1280px; }
  .cols.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-items: start; }
  /* a section's label brings 24 px above it, which a column doesn't let through to what is over the columns: the
     columns bring it themselves and each takes its first label's back, so the two start level */
  .cols.two { margin-top: 24px; }
  .cols.two > .col { margin-top: -24px; }
  .cols.two > .col > h2:first-child { margin-top: 24px; }
}

.who { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 8px; margin: 0 0 16px; color: var(--ink);
  font-size: 16px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; border-radius: var(--radius); }
.who:hover { text-decoration: none; background: var(--well); }

.side nav { display: flex; flex-direction: column; gap: 0; }
/* the sections in their groups (admin NAV_GROUPS, b2685): space between the groups, and a label over each that has one,
   as the workstreams' is */
.side .navgroup { display: flex; flex-direction: column; }
.side .navgroup + .navgroup { margin-top: 12px; }
.side .navlabel { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-3); padding: 0 12px; }
.side nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: 15px;
  transition: background var(--ease), color var(--ease); }
.side nav a:hover { background: var(--well); color: var(--ink); text-decoration: none; }
.side nav a[aria-current="page"] { background: var(--well-2); color: var(--ink); }
/* under a mouse the rows are a desktop list's height, so the whole list fits a laptop's window (19 rows at 44 ran 110 px
   past the foot of a 1280 x 800 one; 30 and not 32 since the Screen made them 20, b2852); under a finger (an iPad)
   they stay 44 */
@media (hover: hover) and (pointer: fine) {
  .side nav a, .side .streams a { min-height: 30px; padding: 0 12px; }
}

/* the operator's pages' way back (ops/templates/base.html), a link on a phone; the owner's pages have the app's bar */
.back { display: none; }

@media (max-width: 760px) {
  .shell { display: flex; flex-direction: column; min-height: 0; }
  .page { order: 1; max-width: none; padding: 0 16px calc(env(safe-area-inset-bottom) + 48px); }
  /* the app's bar runs the page's whole width; the page's name is in it, so the heading is read out, not drawn */
  .page > .appbar { margin: 0 -16px 8px; }
  .page-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0; }
  .side { order: 2; position: static; height: auto; display: none; border-right: 0; padding: 0; }
  .page > a.back:not(.barbtn) { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; color: var(--blue); margin: 0 0 0 -4px; padding: 0 4px; }
  .page > a.back:not(.barbtn)::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 0 4px; }
  .page > a.back:not(.barbtn):hover { text-decoration: none; }
}

/* Home on a phone has the sections itself (home.html, b2685; the sidebar is a computer's): the places they go day to
   day as six tiles under the agent's name, three across (two on a narrower phone), and the rest folded into the rows at the foot, a row to a
   group. Before, the sidebar's whole list stood under the page as 18 rows. */
.home-tiles, .home-folds, .home-folds-label { display: none; }
@media (max-width: 760px) {
  .home-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
  .home-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 72px; padding: 12px 8px 12px 16px;
    background: var(--cell); border-radius: var(--radius); color: var(--ink); font-size: 15px; line-height: 20px;
    transition: background var(--ease); touch-action: manipulation; }
  .home-tile:hover { text-decoration: none; }
  .home-tile:active { background: var(--well); }
  .home-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-tile svg, .place-ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .home-tile svg { width: 20px; height: 20px; color: var(--ink-2); }
  /* a seventh place (the Mac's screen, there only while a Mac of theirs can show one: b2852) is a row of its own
     under the six, so no tile stands alone in a row of three: its drawing and name on the tiles' left edge, as
     tall as a list's row, and what it does at the far end */
  .home-tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 48px; padding-right: 16px; }
  .home-tile.wide span { flex: none; }
  .home-tile.wide small { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--ink-2); font-size: 15px; }
  /* a narrower phone (375, 360): two across, so the longest name ("Workstreams") is never cut */
  @media (max-width: 379px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .group.home-folds { display: block; }
  h2.home-folds-label { display: flex; }
  .home-folds .place-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px;
    background: var(--well); color: var(--ink-2); }
  .home-folds .place-ic svg { width: 18px; height: 18px; }
  /* a group's own pages, set in under its name */
  .home-folds details > a.row { padding-left: 56px; min-height: 48px; }
  .home-folds details[open] > summary.row { background: none; }
}

.banner { background: var(--amber); color: #000; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }
a.banner { display: block; min-height: 44px; padding: 12px 16px; text-decoration: none; }
/* a staging hub's banner (core/staging.py): white on the light amber (5.2:1), dark on the dark-mode one (11.8:1) */
.banner.staging { color: #fff; }
.banner.staging .n { white-space: nowrap; }
@media (prefers-color-scheme: dark) { .banner.staging { color: #000; } }

/* ---------- groups of rows ---------- */

.group { background: var(--cell); border-radius: var(--radius); box-shadow: var(--shadow), var(--ring); overflow: hidden; margin: 0 0 12px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; color: var(--ink); }
.row + .row, .group > * + .row, .row + * { box-shadow: inset 0 1px 0 var(--line); }
.row .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.row > .state, .row > .value { flex: 0 0 auto; max-width: 62%; }
.row .value { color: var(--ink-2); text-align: right; overflow-wrap: anywhere; }
/* a value that opens its page (setup's Model and Study rows) is a 44pt target the row's height, without making the row
   taller: the row's own padding is its margin */
.row > a.value { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; margin: -12px 0; }
.row .sub { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; }
/* a row's title reads as one: 16 at 500, as /work's rows */
.row .grow, a.row { font-size: 16px; }
.row .grow .sub { font-weight: 400; }
a.row { position: relative; padding-right: 36px; }
a.row:hover { text-decoration: none; background: var(--well); }
a.row { transition: background var(--ease); }
a.row::after { content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: translateY(-50%) rotate(45deg); }
.pad { padding: 16px; }
.empty { color: var(--ink-2); }

/* ---------- state, shown as a dot and one word ---------- */

.state { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; transform: translateY(-1px); }
.state.ok::before { background: var(--green); }
.state.need::before { background: var(--amber); }
.state.bad::before { background: var(--red); }
.state.live::before { background: var(--amber); animation: waiting 1.6s ease-in-out infinite; }
.state.ok { color: var(--ink); }
@keyframes waiting { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .state.live::before { animation: none; } }

/* ---------- fields and buttons ---------- */

label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 8px; }
/* 16px in a field, or Safari on a phone zooms in when it gets focus */
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--edge);
  border-radius: var(--radius-c); padding: 12px; min-height: 44px; margin: 0; transition: border-color var(--ease);
}
/* a picker draws as the field it sits beside, in every browser. Left to the system's look, Safari on a Mac draws its
   own pop-up button, 23px tall beside 48px fields, and drops this padding and height (b2147); so it is ours, with
   the chevron a disclosure row has. The longest choice ends in an ellipsis before it runs under the chevron. */
select { -webkit-appearance: none; appearance: none; padding-right: 36px; text-overflow: ellipsis; cursor: pointer;
  background-image: var(--pick); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; }
:root { --pick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23666670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.25l4 4 4-4'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root { --pick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238b8b96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.25l4 4 4-4'/%3E%3C/svg%3E"); }
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 132px; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-radius: var(--radius-c); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--blue); flex: none; }
.field { margin: 0 0 16px; }
.field:last-child { margin-bottom: 0; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--on-blue); background: var(--blue-fill); border: 0; border-radius: var(--radius-c);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: filter var(--ease), transform var(--ease);
}
button:hover, .button:hover { filter: brightness(1.07); text-decoration: none; }
button:active, .button:active { filter: brightness(0.93); transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { button:active, .button:active { transform: none; } }
button.quiet, .button.quiet { color: var(--blue); background: transparent; padding-left: 8px; padding-right: 8px; font-weight: 500; }
button.soft, .button.soft { color: var(--ink); background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); }
button.danger, .button.danger { color: var(--red); background: transparent; font-weight: 500; }
button.wide, .button.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.error { color: var(--red); font-size: 15px; margin: 0 0 12px; }
.hint { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin: 8px 0 0; }

/* ---------- a switch: on or off, saved the moment it is flipped ---------- */

.row label.grow { font-size: 16px; color: var(--ink); margin: 0; cursor: pointer; }
input[type="checkbox"].toggle {
  appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--ink-3);
  position: relative; cursor: pointer; transition: background 0.18s; border: 0;
}
input[type="checkbox"].toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.18s;
}
/* the switch is drawn 51x31 as iOS's is; its hit box reaches 7px above and below (and 4px to the sides), so a tap
   just off it still flips it, without making it or its row any bigger */
input[type="checkbox"].toggle::before { content: ""; position: absolute; inset: -7px -4px; border-radius: 22px; }
input[type="checkbox"].toggle:checked { background: var(--blue); }
input[type="checkbox"].toggle:checked::after { transform: translateX(20px); }
input[type="checkbox"].toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 16px; }
/* a switch that can't be turned on here (its row says why) */
input[type="checkbox"].toggle:disabled { opacity: 0.4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"].toggle, input[type="checkbox"].toggle::after { transition: none; } }

/* ---------- a row that opens to what is behind it ---------- */

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary.row { position: relative; padding-right: 40px; cursor: pointer; font-weight: 400; }
details > summary.row::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
details[open] > summary.row::after { transform: translateY(-30%) rotate(-135deg); }
details + details, .group > * + details { box-shadow: inset 0 1px 0 var(--line); }
summary.row.add { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { details > summary.row::after { transition: none; } }
/* A row that opens (b2453): what it holds eases open under it and eases shut, on every <details> of the hub's pages.
   Its height is the one layout property that moves anywhere here (an accordion has no transform form), 200 ms, clipped
   while it moves and let out again once it's open, so a focus ring or a popover inside an open row is drawn whole.
   What it holds is there from the moment it opens (content-visibility is held only on the way shut, for the fade):
   a script or a test that opens a row and reads or measures inside it at once finds it. Under Reduce Motion the
   height is taken at once and only the fade runs, as it does where the browser can't size to `auto` (no
   interpolate-size) and in a chat's thread (.thread: the thread is kept at its end, or brought to what was opened,
   by the height it has when it opens); where the browser has no ::details-content the row opens at once, as before. */
details::details-content { opacity: 0; transition: opacity 0.2s ease-out, content-visibility 0.2s allow-discrete; }
details[open]::details-content { opacity: 1; transition: opacity 0.2s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  details { interpolate-size: allow-keywords; }
  details:not(.thread *)::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size 0.2s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.2s ease-out, content-visibility 0.2s allow-discrete;
  }
  details[open]:not(.thread *)::details-content {
    block-size: auto; overflow-y: visible;
    transition: block-size 0.2s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.2s ease-out, overflow 0s 0.2s allow-discrete;
  }
}
/* a row the page opens or folds as it loads (admin.js, .at-once for that moment): at once, so the page shows laid out
   as it stays and a scroll to its #part lands on it (the 12-01 sweep, channels-5) */
html details.at-once::details-content, html details.at-once[open]::details-content { transition: none; }

/* ---------- small things in a row ---------- */

.fields { display: grid; gap: 0 12px; margin: 0 0 16px; }
.fields .field { margin: 0 0 16px; }
.fields:last-child, .fields .field:last-child { margin-bottom: 0; }
@media (min-width: 520px) {
  .fields.two { grid-template-columns: 1fr 1fr; }
  .fields.two.wide-first { grid-template-columns: 2fr 1fr; }
  .fields.three { grid-template-columns: 1fr 1fr 1fr; }
  .fields.two .field, .fields.three .field { margin-bottom: 0; }
}
textarea.short { min-height: 76px; }
textarea.tall { min-height: 220px; }
textarea.mono, input.mono { font-family: var(--mono); font-size: 14px; }
/* ... but 16 on a phone or a touch screen, as every field is (above): at 14 Safari zoomed the page in when a skill's
   Name, a model's endpoint or a client id got focus (knows-12, the 12-01 sweep) */
@media (max-width: 760px), (pointer: coarse) { textarea.mono, input.mono { font-size: 16px; } }

/* a title with its quiet actions under it */
.row.stack { flex-direction: column; align-items: stretch; gap: 4px; }
.row.stack > a.grow { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.links form { display: contents; }
.links a, .links button { min-height: 44px; min-width: 44px; padding: 2px 0; font-size: 15px; font-weight: 500; background: none; color: var(--blue); border-radius: 6px; }
.links .danger { color: var(--red); }
.row.links { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
/* a button in a row sits on the row's line, and a quiet one starts where the row's words start */
.page form.row > button, .page .links form > button, .page .row form > button { margin-top: 0; }
/* a quiet button in a row keeps a 44pt target without making the row taller */
.row button.quiet, .row button.danger { min-height: 44px; margin: -8px 0; padding-top: 0; padding-bottom: 0; }
.row > button.quiet:first-child, .row > button.danger:first-child,
.row > .grow > button.quiet:first-child, .row > .grow > button.danger:first-child { padding-left: 0; }
/* in a row of links a quiet or red one keeps both halves of that, so it sits on the line with the plain ones beside it
   (a form's button lost the top half to the rule above, and Models' Remove key sat 4px under Replace key and Test) */
.row.links button.quiet, .row.links button.danger { margin: -8px 0; }
.row > button, .row > form:not(.links), .row > a.button { flex: none; white-space: nowrap; }
.row:not(.links) > form:not(.links) { display: flex; align-items: center; margin: 0; }

/* what a turn did, step by step */
.steps .said { color: var(--ink-2); }
.steps .mono { color: var(--ink-2); overflow-wrap: anywhere; }
.steps pre { margin: 0; max-height: 320px; overflow-y: auto; }
.note.foot { margin: 0; }
h2.role { font-size: 16px; font-weight: 600; letter-spacing: 0; font-variant-caps: normal; color: var(--ink); margin: 32px 0 4px; }
.cap { font-size: 13px; color: var(--ink-2); margin: 16px 0 8px; }
.bar { flex: 0 0 112px; height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; -webkit-appearance: none; appearance: none; border: 0; }
.bar > span { display: block; height: 100%; background: var(--blue); }
.bar::-webkit-meter-bar { background: var(--well); border: 0; border-radius: 4px; height: 8px; }
.bar::-webkit-meter-optimum-value { background: var(--blue); border-radius: 4px; }
.bar::-moz-meter-bar { background: var(--blue); border-radius: 4px; }
/* a segmented control, as /work's: a well with the chosen one raised in it */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--track); box-shadow: inset 0 0 0 1px var(--edge); border-radius: var(--radius); }
.seg a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0 12px; border-radius: var(--radius-c); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { color: var(--ink); background: var(--raised); }
.row.warn { color: var(--warn-ink, #8a4b00); background: var(--warn-bg, #fff4e5); }
a.row.warn { font-weight: 500; }
@media (prefers-color-scheme: dark) { :root { --warn-ink: #ffd9a3; --warn-bg: #3a2a12; } }
.row .error { margin: 0; }

/* ---------- a command to copy ---------- */

/* A short command has its button beside it; one too long for the line takes the line and the button drops below. */
.command { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; background: var(--well); border-radius: var(--radius-c); padding: 12px 8px 12px 16px; }
.command code { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.command button { min-height: 44px; padding: 8px 12px; font-size: 14px; flex: none; }
.command .prompt { flex: 1 1 100%; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow: auto; }
.assistant { margin-top: 12px; }
.assistant > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--blue); cursor: pointer; padding: 0; list-style: none; }
.assistant > summary::-webkit-details-marker { display: none; }
.assistant[open] > summary { color: var(--ink-2); }

/* ---------- the agent, as a contact ---------- */

/* the agent's tile: its initial on a tonal square, the way /work leads a workstream with its emoji; whether its Mac is
   on is a dot on the tile's corner, as presence sits on an avatar */
.avatar { position: relative; width: 32px; height: 32px; border-radius: 8px; background: var(--well); color: var(--ink); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: none; text-transform: uppercase; }
/* an agent whose picture is an animal wears it here (b2060): the picture is the whole face, cut round as it was drawn */
.avatar.pic, .agentbar .avatar.pic, .appbar .bar-avatar.pic, .appbar .bar-contact .bar-avatar.pic { border-radius: 50%; background: none; }
.avatar.pic img, .bar-avatar.pic img { display: block; width: 100%; height: 100%; border-radius: 50%; outline: 1px solid var(--edge); outline-offset: -1px; }
.avatar .dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 6px; background: var(--ink-3);
  box-shadow: 0 0 0 2px var(--canvas); }
.avatar .dot.ok { background: var(--green); }
.avatar .dot.need { background: var(--amber); }
/* Home's bar: the agent's tile, its name as the page's title, and one line of where it runs */
.agentbar { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; }
.agentbar .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.agentbar h1 { margin: 0; }
.agentbar .sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- steps of setup ---------- */

.step { background: var(--cell); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
.step > .row { min-height: 56px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--well); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.step.done .n { background: var(--green); color: var(--on-green); font-size: 0; }
.step.done .n::before { content: ""; width: 10px; height: 5px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.step .body { padding: 16px; }
.step.later > .row { color: var(--ink-3); }
.pad.attached { padding-top: 0; box-shadow: none; }
.step.done .body:empty { display: none; }

/* One step open at a time (b1766, after HeyClicky's setup): the step in hand is open and its number takes the accent;
   a done one folds to its line (the tick, its name, what was picked) and opens again from it; the ones after it are
   grey lines. The open step's body comes in under its line as it arrives, and a step that just folded ticks. */
details.step > summary { list-style: none; cursor: pointer; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius); }
.step.now .n { background: var(--blue-fill); color: var(--on-blue); }
.step.later .n { background: none; box-shadow: inset 0 0 0 1.5px var(--well-2); color: var(--ink-3); }
/* a step is a disclosure (its line keeps the shared chevron), not one of the page's padded sections or a list row */
.page > details.step, .steps > details.step { padding: 0; box-shadow: none; }
/* a line under a folded step's own, under its name (the Mac's permissions still to allow) */
.step > summary:has(.foldnote) { flex-wrap: wrap; row-gap: 0; }
.step > summary .foldnote { flex: 1 0 100%; margin: -4px 0 0 38px; font-size: 13px; line-height: 1.4; color: var(--amber); }
@media (max-width: 560px) { .step.extra > summary > .value { display: none; } }
.step.done > summary > .value, .step.done > summary > .state { color: var(--ink-2); }
.step.done > summary > .state.ok { color: var(--ink); }
.step .note.for { margin: 0 0 16px; color: var(--ink-2); }
.steplink { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0 -12px; font-size: 15px; }
button.choice.picked { border-color: var(--blue); background: var(--blue-wash); }
/* offered under the last step, nothing waits on it: a tile where a number would be */
.step.extra { margin-top: 24px; }
.step .n.glyph-n { background: var(--well); }
.step .n.glyph-n .glyph { width: 14px; height: 14px; background: var(--ink-2);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.step.extra.done .n.glyph-n { background: var(--green); }
.step.extra.done .n.glyph-n .glyph { background: var(--on-green); }
.step.extra.done .n::before { content: none; }
.step .steptitle { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.step { scroll-margin-top: 16px; }
@keyframes step-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes step-tick { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.step.arrived.now > .body { animation: step-in 0.28s cubic-bezier(0.2, 0, 0, 1) both; }
.step.arrived.done .n { animation: step-tick 0.32s cubic-bezier(0.2, 0, 0, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .step.arrived.now > .body, .step.arrived.done .n { animation: none; }
}

/* ---------- setup: the download, the code, the choice of how to text it ----------
   One thing wins in each step: the download on a Mac (opening the page on the Mac, elsewhere), the code once it's
   downloaded, the choice between an Apple ID and none. Everything else is a quiet line or tucked behind a summary.
   Spacing here keeps to 4/8/12/16/24. */

.step .lead { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.step .lead.then { margin: 24px 0 8px; }
.step .note.fine { margin: 8px 0 0; }
/* the download is the app: its icon leads, the words, then the arrow at the far end (Nathan 11-28: "rlly plain") */
.button.download { min-height: 56px; padding: 12px 16px 12px 12px; gap: 12px; justify-content: flex-start; font-size: 17px; }
.button.download .appicon { flex: none; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
.button.download::after { content: ""; width: 16px; height: 16px; flex: none; margin-left: auto;
  background: currentColor; -webkit-mask: var(--arrow-down) center / contain no-repeat; mask: var(--arrow-down) center / contain no-repeat; }
:root { --arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a1 1 0 0 1 1 1v7.1l2.3-2.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L7 9.6V2.5a1 1 0 0 1 1-1zM2.5 13h11a1 1 0 1 1 0 2h-11a1 1 0 1 1 0-2z'/%3E%3C/svg%3E"); }

/* the code: big enough to read across a desk and type on another machine */
.paircode { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--well);
  border-radius: var(--radius-c); padding: 12px 12px 12px 16px; }
.paircode .code { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.paircode button { flex: none; min-height: 44px; padding: 8px 16px; font-size: 15px; }
/* the pairing code a letter to a cell (admin _pair_new.html), three groups with a quiet dash between, sized off the
   window so nine fit a small phone; the cells are inline, so the code's text has no breaks or spaces in it. On a
   phone the way to copy it is a whole row under the cells */
/* The tiles sit on the step itself, grey on the white group like a verification code's fields, with no box round them
   (a box of boxes inside the group read as clutter, Nathan 11-29); Copy code is a quiet line under them, its icon first. */
.paircode.cells { flex-direction: column; justify-content: center; gap: 4px; background: none; padding: 4px 0 0; }
.paircode.cells .code { font-size: clamp(16px, 5.2vw, 24px); letter-spacing: 0; white-space: nowrap; text-align: center; overflow-wrap: normal; }
.paircode.cells .code i { display: inline-block; width: 1.3em; height: 1.85em; margin: 0 2px; border-radius: 10px; background: var(--well);
  font-style: normal; line-height: 1.85em; text-align: center; }
.paircode.cells .code b { display: inline-block; width: 0.6em; color: var(--ink-3); font-weight: 400; text-align: center; }
.paircode.cells button.copy { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.paircode.cells + .note.codefine { margin: 4px 0 0; text-align: center; }
/* copy, as an icon: before a quiet button's words, or the whole of an icon button (.iconbtn), a tick once it's copied */
:root {
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='6.5' y='6.5' width='10' height='10' rx='2.2'/%3E%3Cpath d='M13.5 4.2V4.5A1 1 0 0 0 12.5 3.5h-7a2 2 0 0 0-2 2v7a1 1 0 0 0 1 1h.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}
button.copy::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon-copy) center / contain no-repeat; mask: var(--icon-copy) center / contain no-repeat; }
button.copy.copied::before { -webkit-mask-image: var(--icon-tick); mask-image: var(--icon-tick); }
button.iconbtn { flex: none; width: 44px; min-height: 44px; padding: 0; color: var(--blue); background: transparent; }
button.iconbtn::before { width: 20px; height: 20px; }
/* the address to open on the Mac: one line in a well, the host in ink and the path quieter, cut at the end if it must */
.linkrow { display: flex; align-items: center; gap: 0; min-height: 52px; padding: 4px 0 4px 14px; background: var(--well);
  border-radius: var(--radius-c); }
.linkrow .addr { flex: 1 1 auto; min-width: 0; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; user-select: all; -webkit-user-select: all; }
.linkrow .addr .path { color: var(--ink-3); }
/* a claim window's two words (admin _claim_words.html): they wrap between the words, never inside one */
.paircode .code.words { font-family: inherit; letter-spacing: 0; overflow-wrap: normal; }
/* more than one message said them (admin _claim_warn.html) */
.claimwarn { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); color: var(--warn-ink, #8a4b00);
  background: var(--warn-bg, #fff4e5); font-size: 15px; line-height: 1.4; }
.pad > .claimwarn:only-child { margin: 0; }
.paircode + .note.fine { margin: 8px 0 0; }

/* other ways in, each a line that opens */
.ways { margin-top: 24px; border-top: 1px solid var(--line); }
.way > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 0;
  font-size: 15px; color: var(--blue); cursor: pointer; list-style: none; }
.way > summary::-webkit-details-marker { display: none; }
.way > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.way[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.way + .way { border-top: 1px solid var(--line); }
.way > .command { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .way > summary::after { transition: none; } }

/* not on a Mac (a phone, an iPad): the page says to open it on the Mac instead of offering a download here */
.elsewhere { display: none; margin: 0; }
.not-mac .elsewhere { display: block; }
/* ...and nothing to download: a Mac app is no use on a phone, and the page opened on the Mac has it (Nathan 11-28,
   of this step on a phone with both: "Stuff on right a lil cluttered"). The address and its copy are one row. */
.not-mac .button.download, .not-mac .button.download + .note.fine { display: none; }
.lead .off-mac, .not-mac .lead .on-mac { display: none; }
.not-mac .lead .off-mac { display: inline; }
/* the other way under the lead, one with it: the app brings the code itself on the Mac (admin mac_hand), or it's typed */
.step .note.or { margin: -4px 0 12px; }
.not-mac .note.on-mac { display: none; }

/* two ways to text it, side by side where there's room */
.choices { display: grid; gap: 12px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices form { display: flex; margin: 0; }
button.choice { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 4px; text-align: left; padding: 16px; min-height: 0; color: var(--ink); background: var(--field);
  border: 1px solid var(--edge); border-radius: var(--radius); font-weight: 400; transition: border-color var(--ease), background var(--ease); }
button.choice:hover { filter: none; border-color: var(--blue); background: var(--blue-wash); }
button.choice .glyph { width: 28px; height: 28px; margin: 0 0 8px; background: var(--blue);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.glyph-messages { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.9 2 11.6c0 2.6 1.4 4.9 3.6 6.5-.2 1.4-.9 2.7-1.9 3.6 2 0 3.8-.7 5.1-1.8 1 .3 2.1.4 3.2.4 5.5 0 10-3.9 10-8.7S17.5 3 12 3z'/%3E%3C/svg%3E"); }
.glyph-chat { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-6.5l-4.8 3.6c-.5.4-1.2 0-1.2-.6V17H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm3 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E"); }
/* setup's quieter way (an API key instead of a plan): a link, with a full-size target */
.step details.more { margin: 8px 0 0; }
.step details.more > summary { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 15px;
  cursor: pointer; }
/* the two plans: a spark (Claude) and a hexagon ring (ChatGPT), drawn plainly rather than as either brand's mark; a
   Claude Code or Codex session's row falls back to them when core/marks.py has no mark for its app (b1673) */
.glyph-spark { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.3 7.7L22 12l-7.7 2.3L12 22l-2.3-7.7L2 12l7.7-2.3z'/%3E%3C/svg%3E"); }
.glyph-knot { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2l8.7 5v10L12 22l-8.7-5V7zm0 4.6L7.3 9.3v5.4L12 17.4l4.7-2.7V9.3z'/%3E%3C/svg%3E"); }
/* a plain terminal (tmux, iTerm, Ghostty...): a prompt's chevron and cursor */
.glyph-eye { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 5C6.6 5 2.8 8.6 1.2 12c1.6 3.4 5.4 7 10.8 7s9.2-3.6 10.8-7C21.2 8.6 17.4 5 12 5zm0 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 2.2a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6z'/%3E%3C/svg%3E"); }
.glyph-term { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.3 5.3a1 1 0 0 1 1.4 0l5.7 5.7a1.4 1.4 0 0 1 0 2l-5.7 5.7a1 1 0 0 1-1.4-1.4L9.6 12 4.3 6.7a1 1 0 0 1 0-1.4zM12 17h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2z'/%3E%3C/svg%3E"); }
button.choice .title { font-size: 17px; font-weight: 600; }
button.choice .said { font-size: 15px; line-height: 1.35; color: var(--ink-2); }

/* the Apple ID walk-through: numbered, each step one line of what and a line of how */
.checklist { list-style: none; counter-reset: item; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { counter-increment: item; position: relative; padding-left: 40px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px; }
.checklist li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--blue-wash); color: var(--blue); font-size: 15px; font-weight: 600;
  display: grid; place-items: center; }
.checklist .what { font-weight: 600; }
.checklist .said { font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.checklist form { margin: 4px 0 0; }
.checklist .command { align-self: stretch; margin-top: 4px; }
.checklist .button, .checklist button { margin-top: 4px; }
button.small, .button.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.step form.skip { margin: 16px 0 0; }
.step form.skip button.quiet { padding-left: 0; font-size: 15px; min-height: 44px; }
.page .step form > button { margin-top: 0; }
/* a missing permission's row: on a phone the Turn on button says it, so the word "Needed" makes way for the name */
@media (max-width: 560px) { .row > .state.need:has(+ form) { display: none; } }
.actions.centered { flex-direction: column; align-items: center; gap: 0; margin-top: 8px; }
.actions.centered form { margin: 0; }
.page .actions.centered form > button { margin-top: 0; }

/* ---------- messages ---------- */

.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: var(--radius-l); border-bottom-left-radius: 4px; background: var(--bubble); align-self: flex-start;
  overflow-wrap: anywhere; white-space: pre-wrap; font-size: 15px; line-height: 1.4; }
.bubble.out { background: var(--blue-fill); color: var(--on-blue); align-self: flex-end; border-bottom-left-radius: var(--radius-l); border-bottom-right-radius: 4px; }
/* an address in a bubble (core/links.py, admin.js linkify): underlined in the bubble's own ink, as Messages draws one,
   so it reads on the blue bubble and the grey alike; it wraps before its slashes (<wbr>), overflow-wrap is the fallback */
.bubble a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.bubble a:hover { text-decoration-thickness: 2px; }
.from { font-size: 12px; color: var(--ink-3); margin: 4px 12px 0; }
.to { color: var(--ink-2); margin: 0 0 16px; }
.to a, .to b { color: var(--ink); font-weight: 600; }

/* ---------- pages for people who aren't signed in: sign in, create an account ---------- */

/* as taiku's sign-in page draws (taiku.live/login): the form straight on the canvas with no card round it, set left; the
   mark, then a 28px title at medium weight, one line under it, 13px labels, fields on the raised surface with a
   hairline, and one full-width button on the blue fill. No glow, no gradient. */
.doorbody { min-height: 100svh; display: grid; place-items: center; overflow-wrap: anywhere; background: var(--canvas);
  /* door.html covers the whole screen (viewport-fit=cover, b2682): the page keeps clear of the notch, the status bar
     and the home bar, which are 0 in a browser's own tab */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.door { width: 100%; max-width: 392px; margin: 0; padding: 32px 16px 48px; text-align: left; }
.doorcard { padding: 0; }
@media (max-width: 599px) { .doorbody { place-items: start center; } .door { padding-top: 32px; } }
.door .brandmark { width: 44px; height: 44px; margin: 0 0 32px; border-radius: var(--radius); display: grid; place-items: center;
  color: var(--ink); background: var(--well); font-size: 22px; font-weight: 500; text-transform: uppercase; }
/* Piku's own pages (the sign-in, the front door) wear its mark, the tile the Mac app's icon is (box/scripts/icon) */
.door .brandmark.is-mark { background: none; overflow: hidden; }
.door .brandmark.is-mark img { display: block; width: 100%; height: 100%; }
.door h1 { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.door .sub { color: var(--ink-2); font-size: 15px; line-height: 1.4; margin: 0 0 32px; }
/* a site's address as a page's heading (the vault's page for a login an agent asked for, b2853): a long one wraps */
.door h1.asked-site { overflow-wrap: anywhere; }
.door form { text-align: left; }
.door .field { margin: 0 0 16px; }
.door label { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.door input { min-height: 48px; }
.door input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.door .hint { font-size: 12px; color: var(--ink-2); margin: 4px 0 0; }
.door .error { text-align: left; color: var(--red); font-weight: 500; font-size: 15px; margin: 0 0 16px; }
.door button.wide, .door .button.wide { margin-top: 8px; min-height: 48px; font-size: 15px; }
/* sign-up's second way in (taiku's secondary: the raised surface with a hairline), its hint and the word that it's in
   test mode */
.door .button.wide.doorsecond { margin-top: 8px; color: var(--ink); background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); }
.door .hint.center { text-align: left; margin-top: 12px; }
/* the code a new browser shows while one already signed in lets it in (admin/doors.py): read across a room and typed
   by hand, so large, spaced, and in figures that tell 8 from B */
.door .signincode { margin: -8px 0 24px; font: 600 32px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em; color: var(--ink); user-select: all; }
.door .testmode { margin: -20px 0 24px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.door .testmode::before { content: "TEST"; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #000;
  background: var(--amber); border-radius: 6px; padding: 2px 4px; margin-right: 8px; }
.doorfoot { margin: 24px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
/* The mark a door page opens with (_mark.html, b2868): the account's agent where the page is about one account (its
   animal in a round, as every page draws a face; else its initial on the quiet tile), the hub's own mark where it
   names none (.brandmark.is-mark, as the sign-in wears it). The tile's own size and room on a page with a form, so a
   form's title sits where the sign-in's does; a step up on the pages that are only a few words. */
.door .doormark { width: 44px; height: 44px; margin: 0 0 32px; }
.door img.doormark.face { display: block; border-radius: 50%; background: var(--well); outline: 1px solid var(--edge); outline-offset: -1px; }
/* A page that says something ended, was used, is closed or has to wait (message.html, b2868): a short column and
   nothing typed on it, so it stands in the middle of the screen on a phone too, as the front page does, where a
   form stays against the top for the keyboard. The mark, what happened, one line, the one way on: the line sits
   24px over the button, and ends the column when there is none. */
@media (max-width: 599px) { .doorbody:has(.notice) { place-items: center; } }
.door.notice .doormark { width: 64px; height: 64px; margin-bottom: 24px; }
.door.notice .brandmark.doormark { font-size: 28px; }
.door.notice h1 { text-wrap: balance; }
.door.notice .sub { margin-bottom: 24px; }
.door.notice .sub:last-child { margin-bottom: 0; }
.door.notice .button.wide { margin-top: 0; }
/* the ways back in from a forgotten password (forgot.html, b2683): each a line in the ink over a line in the muted ink,
   numbered by the list itself */
.door .doorways { margin: 0 0 24px; padding: 0 0 0 24px; display: grid; gap: 16px; font-size: 15px; line-height: 1.4; }
.door .doorways li { padding: 0; }
.door .doorways li::marker { color: var(--ink-3); font-size: 13px; }
.door .doorways strong { display: block; font-weight: 500; margin: 0 0 4px; }
.door .doorways span { display: block; color: var(--ink-2); }
/* The invite's clip (b1766): above the form on a phone, beside it where there's room, as taiku's sign-in sets its
   picture beside its form: the form on the left, the clip in a hairlined panel on the right. Its box is the video's
   own shape, so the box never jumps when it starts. Its captions are in the clip, so the words under it go to screen
   readers only; on a phone the mark makes way too, so the form's first field still shows on the first screen. */
.door .clip { margin: 0 0 24px; }
.door .clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: #161619; box-shadow: inset 0 0 0 1px var(--edge); object-fit: cover; }
.door .clip figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* an iPad upright: the clip over the form, both on the same two edges */
@media (min-width: 600px) and (max-width: 959px) {
  .door.with-clip { max-width: 552px; }
}
@media (max-width: 959px) {
  .door.with-clip { padding-top: 16px; }
  .door.with-clip .brandmark { display: none; }
}
@media (min-width: 960px) {
  .door.with-clip { max-width: 1152px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px;
    align-items: center; padding: 48px 32px; }
  .door.with-clip .clip { margin: 0; order: 2; }
}
.doorfoot a { color: var(--ink-2); white-space: nowrap; display: inline-block; padding: 12px 8px; margin: -12px -8px; min-height: 44px; }

/* Light, dark or auto (admin/templates/_appearance.html, b2678): three small pictures of a page, each drawn in its own
   look whatever the page's is (a thread on its ground: the light one, the dark one, half of each for the device's own),
   with its word under it. A choice is 48 by 44, the picked one's picture ringed in the one blue and its word in the ink.
   The pictures' colours are the two palettes' own values (--cell, --bubble, --blue-fill), written out since each
   picture keeps its look on a page of the other. */
.appearance { display: flex; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.appearance legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.appearance .appear { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 48px; min-height: 44px; margin: 0; cursor: pointer; }
.appear input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.appear-pic { position: relative; display: block; width: 36px; height: 24px; border-radius: 6px; background: #ffffff;
  outline: 1px solid var(--edge); outline-offset: -1px; }
.appear-pic i { position: absolute; height: 5px; border-radius: 3px; }
.appear-pic i:first-child { top: 5px; right: 4px; width: 15px; background: #1a5fbf; }
.appear-pic i:last-child { bottom: 5px; left: 4px; width: 18px; background: #e9e9ec; }
.appear-pic.dark { background: #161619; }
.appear-pic.dark i:last-child { background: #2c2c32; }
.appear-pic.auto { background: linear-gradient(90deg, #ffffff 50%, #161619 50%); }
.appear-pic.auto i:last-child { width: 12px; }
.appear-word { font-size: 12px; line-height: 12px; color: var(--ink-3); }
.appear input:checked ~ .appear-pic { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--blue); }
.appear input:checked ~ .appear-word { color: var(--ink); font-weight: 500; }
.appear input:focus-visible ~ .appear-pic { outline: 2px solid var(--blue); outline-offset: 4px; }
/* on a group's row (Account) the ring's gap is the group's surface, and the choices end at the row's edge */
.row .appearance { flex: none; margin: -4px -4px -4px 0; }
.row .appear input:checked ~ .appear-pic { box-shadow: 0 0 0 2px var(--cell), 0 0 0 4px var(--blue); }
/* The invite's own screen for it (join.html, b2894; Nathan, 11-29: "Auto light dark should be separate thing"): the
   same three radios with the screen to themselves, so each picture is a phone's worth of the thread from the screen
   before (the face, what was asked, the two answers) in its look, a third of the form wide and 200 tall, its word
   under it at the body's size. Auto's is half of each, its bubbles kept to their own half. */
.joinstep > .appearance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.joinstep > .appearance .appear { width: auto; gap: 8px; }
.joinstep > .appearance .appear-pic { width: 100%; height: 200px; border-radius: 12px; }
.joinstep > .appearance .appear-pic::before, .joinstep > .appearance .appear-pic::after { content: ""; position: absolute; }
.joinstep > .appearance .appear-pic::before { top: 24px; left: calc(50% - 16px); width: 32px; height: 32px;
  border-radius: 16px; background: #d1d1d6; }
.joinstep > .appearance .appear-pic i, .joinstep > .appearance .appear-pic::after { height: 16px; border-radius: 8px; }
.joinstep > .appearance .appear-pic i:first-child { top: 80px; right: 12px; width: 52%; }
.joinstep > .appearance .appear-pic i:last-child { top: 108px; bottom: auto; left: 12px; width: 60%; }
.joinstep > .appearance .appear-pic::after { top: 128px; left: 12px; width: 44%; background: #e9e9ec; }
.joinstep > .appearance .appear-pic.dark::before { background: #3a3a3f; }
.joinstep > .appearance .appear-pic.dark::after { background: #2c2c32; }
.joinstep > .appearance .appear-pic.auto::before { background: linear-gradient(90deg, #d1d1d6 50%, #3a3a3f 50%); }
.joinstep > .appearance .appear-pic.auto i:first-child, .joinstep > .appearance .appear-pic.auto i:last-child { width: 32%; }
.joinstep > .appearance .appear-pic.auto::after { width: 24%; }
.joinstep > .appearance .appear-word { font-size: 15px; line-height: 20px; }

/* The invite, a screen at a time (join.html, b2025; Nathan, 11-24: "make stuff match how imsg look a lot more", "things
   should feel less complex"): what to call it under a short thread drawn as Messages draws one, light or dark
   (b2894), then the sign-in. One form; door.js says which part shows (.door[data-at]) and draws the dots and Back.
   With no script there is no data-at: the parts show one under the other, with no dots. The thread is the picture
   on a phone and the clip from 600px, never both; a tree without the clip has the thread at every width. */
.join .joinstep { min-width: 0; margin: 0; padding: 0; border: 0; }
.join .joinstep + .joinstep { margin-top: 32px; }
.join .steptop { display: none; }
.join[data-at] .steptop { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; min-height: 44px; margin: 0 0 16px; }
/* the screens after the first keep the agent's face (b2672): the face and the name picked on the first screen, over
   the sign-in as Messages sets a contact over a conversation, between the dots and Back, which stay where the name
   screen has them (the row's first 44px); the name hangs under the face, so only those screens are the taller for
   it. With no script the row isn't drawn (above), and the face is the thread's. */
.join[data-at] .steptop .dots, .join[data-at] .steptop .quiet { min-height: 44px; }
.join .stepwho { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 160px; }
.join .stepwho .face { width: 44px; height: 44px; }
/* a computer's column has the agent's mark over the row already (.brandmark, shown from 960px): one mark a screen */
@media (min-width: 960px) { .door.join.with-clip .stepwho { display: none; } }
.join .steptop .quiet { grid-column: 3; justify-self: end; }
.join[data-at] .joinstep + .joinstep { margin-top: 0; }
.join[data-at="name"] .joinstep:not([data-step="name"]), .join[data-at="appearance"] .joinstep:not([data-step="appearance"]),
.join[data-at="signin"] .joinstep:not([data-step="signin"]) { display: none; }
.join[data-at="name"] .doorfoot, .join[data-at="appearance"] .doorfoot { display: none; }
.join .dots { display: flex; align-items: center; gap: 8px; }
.join .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--ink-3); opacity: 0.4; }
.join .dots i.at { width: 24px; background: var(--ink); opacity: 1; }
.join .steptop .quiet { min-width: 44px; margin-right: -8px; font-size: 15px; }
/* How the invite moves (b2672; Nathan 11-28, of the first screens a new person sees: "Animations are nice too
   right?"): the screen that comes in eases in from the side it's headed, 16px and a fade over 0.2 s as the Mac app's
   window changes stage, and Back from the other; the dots' long one slides to its place, changing places with the
   one dot it passes (.pre going on, the one after it coming back); the row over them holds still. The face and its name travel from the thread to the top of the sign-in and back (door.js: one transform
   each), so the thread's card and its bubbles fade round them and not over them, and a face picked lands with a small
   scale, timed as setup's tick is (step-tick). Transform and opacity only, and none of it under Reduce Motion. */
@media (prefers-reduced-motion: no-preference) {
  .join[data-at] .joinstep.arrived > :not(.steptop, .preview), .join[data-at] .joinstep.arrived .preview::before,
  .join[data-at] .joinstep.arrived .preview .thread { animation: join-in 0.2s cubic-bezier(0.2, 0, 0, 1); }
  .join[data-at] .joinstep.arrived.returns > :not(.steptop, .preview), .join[data-at] .joinstep.arrived.returns .preview::before,
  .join[data-at] .joinstep.arrived.returns .preview .thread { animation-name: join-back; }
  .join[data-at] .joinstep.arrived .dots i.at { animation: dot-on 0.2s cubic-bezier(0.2, 0, 0, 1); }
  .join[data-at] .joinstep.arrived:not(.returns) .dots i.pre { animation: dot-off 0.2s cubic-bezier(0.2, 0, 0, 1); }
  .join[data-at] .joinstep.arrived.returns .dots i.at { animation-name: dot-on-back; }
  .join[data-at] .joinstep.arrived.returns .dots i.at + i { animation: dot-off-back 0.2s cubic-bezier(0.2, 0, 0, 1); }
  .join .face.picked { animation: face-pick 0.28s cubic-bezier(0.2, 0, 0, 1); }
}
@keyframes face-pick { 0% { transform: scale(0.8); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes join-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes join-back { from { opacity: 0; transform: translateX(-16px); } }
@keyframes dot-on { from { transform: translateX(-16px); } }
@keyframes dot-off { from { transform: translateX(32px); } }
@keyframes dot-on-back { from { transform: translateX(16px); } }
@keyframes dot-off-back { from { transform: translateX(-32px); } }
.door .doortitle { display: block; font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  margin: 0 0 8px; text-wrap: balance; }
.door .doortitle:focus { outline: none; }
.join .sub { margin-bottom: 24px; }
.join .brandmark { margin-bottom: 16px; }
/* (the card's ground is a layer of its own, so it can fade while the face on it stays whole: b2672) */
.join .preview { position: relative; isolation: isolate; margin: 0 0 24px; padding: 16px; }
.join .preview::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: var(--radius); background: var(--cell); }
.join .threadwho { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 12px; }
.join .face { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--well);
  color: var(--ink-2); font-size: 22px; font-weight: 500; text-transform: uppercase; }
.join .whoname { max-width: 100%; min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px;
  line-height: 16px; color: var(--ink-2); }
.join img.face { display: block; background: var(--well); outline: 1px solid var(--edge); outline-offset: -1px; }
/* the agent's picture, picked on the same screen as its name (b2060): one row of the animals, whole 44pt each, running
   off both edges of the screen so the one cut at the edge says there are more; the picked one ringed in the one blue.
   The row's own padding is the ring's room, which a scroller would clip. The row is as wide as all 75, and a box that
   scrolls still counts its whole width as the least its page can be: the page (a grid's one cell) is told it may be
   narrower, or a phone's screen is 2px short of it and the page slides sideways. */
.door { min-width: 0; }
.door .looks { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.door .looks legend { padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.door .looks-strip { display: flex; gap: 8px; margin: -4px -16px; padding: 4px 16px; overflow-x: auto;
  overscroll-behavior-x: contain; scrollbar-width: none; }
.door .looks-strip::-webkit-scrollbar { display: none; }
/* past a phone the page has no edge near: the row stays inside the form's two edges */
@media (min-width: 600px) { .door .looks-strip { margin: -4px; padding: 4px; } }
.door .look { position: relative; flex: none; display: block; width: 44px; height: 44px; margin: 0; border-radius: 50%; cursor: pointer; }
.door .look input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.door .look img { display: block; width: 100%; height: 100%; border-radius: 50%; outline: 1px solid var(--edge); outline-offset: -1px; }
.door .look input:focus-visible + img { outline: 2px solid var(--blue); outline-offset: 4px; }
.door .look input:checked + img { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--blue); }
/* with the script the ring is one drawing that slides to the face picked (b2672, door.js): it lies in the row, so it
   goes with the row as it's pushed sideways, and it moves by a transform alone */
.door .looks-strip.ringed { position: relative; }
.door .looks-strip.ringed .look input:checked + img { box-shadow: none; }
.door .look-ring { position: absolute; top: 4px; left: 0; width: 44px; height: 44px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--blue); }
@media (prefers-reduced-motion: no-preference) { .door .look-ring.live { transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1); } }
.join .preview .thread { gap: 4px; }
.join .preview .bubble { position: relative; z-index: 0; max-width: 78%; margin: 0; border-radius: 18px; font-size: 15px;
  line-height: 20px; white-space: normal; }
.join .preview .bubble.turn { margin-top: 4px; }
/* the tail on the last bubble of a run: the chat's own (admin.css, b2000), one clipped box in the bubble's colour */
.join .preview .bubble.tail::before { content: ""; position: absolute; z-index: -1; bottom: 0; left: -7px; width: 20px; height: 18px;
  background: inherit; clip-path: path("M7 0H20V4A16 14 0 0 1 4 18H0V17.54A10 10 0 0 0 7 8Z"); }
.join .preview .bubble.out.tail::before { left: auto; right: -7px; transform: scaleX(-1); }
.join .said-by { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 599px) { .door.join .clip { display: none; } }
/* beside or under the clip the page is centred, so the two screens are given one height: the dots, Back and the title
   stay where they were when one screen follows the other */
@media (min-width: 600px) { .door.join[data-at] .doorcol { min-height: 576px; } }
/* (the clip's first frame under it is admin/static/join.css's: this sheet goes whole into a write-up saved as one
   file, which asks the hub for nothing) */
@media (min-width: 600px) { .door.join.with-clip .preview { display: none; } }
/* The front page (landing.html, b2672): the invite's thread under an example's face, then a row of the faces an
   agent can have under one line saying so, then the way in. The row is pictures, not a choice: whole 44px faces
   running off a phone's edge, as the invite's own row does, the cut one saying there are more; past a phone it's
   cut at the column's edge. */
.landing .faces { margin: 0 0 24px; }
.landing .faces-says { margin: 0 0 8px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.landing .faces-row { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px; overflow: hidden; }
.landing .faces-row img { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; outline: 1px solid var(--edge); outline-offset: -1px; }
@media (min-width: 600px) { .landing .faces-row { margin: 0; padding: 0; } }
/* a phone's front page is one short column and nothing is typed on it: it stands in the middle of the screen, the
   room left over split above and below it, where a form stays against the top for the keyboard */
@media (max-width: 599px) { .doorbody:has(.landing) { place-items: center; } .door.landing { padding-top: 32px; padding-bottom: 32px; } }
.door.landing .button.wide { margin-top: 0; }
.door.landing .button.wide.doorsecond { margin-top: 8px; }

/* ---------- the Terms and the Privacy Policy (legal/, core/legal.py): a page to read, as a desk page reads ---------- */

.legalbody { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); }
.legalbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: var(--canvas); }
.legalbar a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; }
.legalhome { font-weight: 600; color: var(--ink); margin-right: auto; }
.legalbar nav { display: flex; gap: 16px; }
.legalbar nav a { color: var(--ink-2); }
.legalbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere;
  padding: 16px max(24px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.legal h1 { font-size: 29px; line-height: 1.16; letter-spacing: -0.021em; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.legal h1 + p { color: var(--ink-3); font-size: 15px; margin: 0 0 24px; }
.legal h2 { display: block; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: 0; font-variant-caps: normal;
  text-transform: none; color: var(--ink); margin: 32px 0 8px; }
.legal p { margin: 12px 0; }
.legal :where(strong, b) { color: var(--ink); font-weight: 600; }
.legal a { color: var(--blue); }
.legal :where(ul, ol) { padding-left: 24px; margin: 12px 0; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--ink-3); }
.legal code { background: var(--well); border-radius: 5px; padding: 2px 4px; font: 14px var(--mono); color: var(--ink); }
.legal table { font-size: 15px; line-height: 1.5; margin: 16px 0 24px; background: var(--cell); border-radius: var(--radius); box-shadow: var(--shadow), var(--ring); border-collapse: collapse; }
.legal :where(th, td) { padding: 12px; border-top: 0; border-bottom: 1px solid var(--line); }
.legal td:first-child { color: var(--ink); width: 55%; }
.legal th { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .legalbar { padding: env(safe-area-inset-top) 16px 0; }
  .legal { padding: 8px 16px calc(96px + env(safe-area-inset-bottom)); }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: auto; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal tr:last-child { border-bottom: 0; }
  .legal :where(td) { padding: 0 16px; border: 0; }
  .legal td:first-child { width: auto; margin-bottom: 4px; }
  .legal td + td { color: var(--ink-3); font-size: 14px; }
}

/* the line under a sign-up or create-account button that says what continuing agrees to */
.door .agree, .door .have { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.door .agree a, .door .have a { color: var(--ink-2); }
/* sign-up's "Have an account? Sign in" under Continue: a 44 pt target, as .doorfoot's links (12-02) */
.door .have a { white-space: nowrap; display: inline-block; padding: 12px 8px; margin: -12px -8px; min-height: 44px; }
.doorlegal { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; }
.doorlegal a { color: var(--ink-3); display: inline-block; padding: 12px 8px; min-height: 44px; }

/* ---------- plain elements, for pages not yet rebuilt from the parts above ---------- */

.page > section, .page > form, .page > article, .page > details { background: var(--cell); border-radius: var(--radius); box-shadow: var(--shadow), var(--ring); padding: 16px; margin: 0 0 12px; }
.page > section > h2, .page > form > h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: 0; font-variant-caps: normal; color: var(--ink); }
.page form label { margin-top: 12px; }
.page form label:first-child { margin-top: 0; }
.page form > button { margin-top: 16px; }
summary { cursor: pointer; font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 12px; border-top: 0; }
pre { background: var(--well); border-radius: var(--radius); padding: 12px 16px; overflow-x: auto; font: 13px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* A job's trace, as /work's thread: its place and age under the title, the text that started it as a bubble, what it
   said as plain lines, and its steps as rows in a group (a dot for how each landed, the verb, what it acted on, how long) */
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: -8px 0 24px; }
.tmeta .state { margin-left: 8px; }
.trace { gap: 12px; }
.wsmade.trace-made { margin: 0 0 24px; }
.tmeta + h2 { margin-top: 0; }
/* why it ended (the server restarted under it, it failed) and the way on (Run again, the run that started it over):
   lines of the meta they explain, just under it, not the first of the trace */
.tmeta-more { margin: -16px 0 24px; }
.tmeta-more > p { margin: 0; }
.tmeta-more > p + p { margin-top: 4px; }
.tmeta-more .error { font-size: 13px; line-height: 1.4; }
.tmeta-more .wsagain { margin-top: 12px; }
.tmeta-more + h2 { margin-top: 0; }
/* its links (the run that started it over, the first run) are a full 44pt to tap without moving the line */
.tmeta-more a { display: inline-block; padding: 14px 0; margin: -14px 0; }
/* the texts that started it stand a little apart from the work under them; a run of them sits close (4px), as a
   chat groups one person's texts */
.trace .bubble { margin-bottom: 4px; }
.trace .bubble:has(+ .bubble) { margin-bottom: 0; }
.trace .bubble + .bubble { margin-top: -8px; }
/* someone else's words that started it: their name just over their bubble, as a group chat names a sender */
.trace .from { margin: 0 0 -8px; }
.say { margin: 4px 0; font-size: 15px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tsteps { margin: 0; }
.tstep { display: flex; gap: 12px; padding: 12px 16px; }
.tstep + .tstep { box-shadow: inset 0 1px 0 var(--line); }
.tdot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 4px; margin-top: 8px; background: var(--blue); }
.tstep.ok .tdot { background: var(--green); }
.tstep.bad .tdot { background: var(--red); }
.tstep.read .tdot { background: var(--ink-3); }
.tstep.warn .tdot { background: var(--amber); }
.tbody { flex: 1 1 auto; min-width: 0; }
.tstep .hd { display: flex; align-items: baseline; gap: 8px; }
.tstep .verb { font-weight: 500; font-size: 15px; color: var(--ink); flex: none; white-space: nowrap; }
.tstep .obj { font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.tstep .took { margin-left: auto; color: var(--ink-3); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.tstep .res { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.tstep .res.text { color: var(--ink-2); }
.tstep .res.plain { color: var(--ink-2); }
.tstep .res.ok { color: var(--ink-2); }
.tstep .res.ok::before { content: "✓ "; color: var(--green); font-weight: 700; }
.tstep .res.bad { color: var(--red); }
.tstep .res.bad::before { content: "✕ "; font-weight: 700; }
.tstep .res.warn { color: var(--amber); }
.tstep details.raw { margin-top: 4px; }
.tstep details.raw > summary { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; color: var(--blue); font-size: 13px; font-weight: 500; }
.tstep details.raw > pre { margin: 8px 0 0; font-size: 12px; max-height: 320px; overflow: auto; }

/* A change to a file (core/diffview.py draws it through core/templates/diff.html; b2949), the same wherever one shows:
   under the step that made it, in a page's Changes block, on an edit waiting for an OK, a .diff on the desk. One column,
   for a phone: a line's number, its mark, the line; a long line wraps under itself and nothing scrolls sideways or
   inside a box. A line put in or taken out has its ground and its + or −, so it never rests on colour alone; the words
   that changed inside a rewritten line are a step stronger. Numbers and marks aren't selected with the code.
   Contrast, computed from these values (WCAG 2): the code's ink 15.6:1 on the green ground and 15.5 on the red in
   light, 14.1 and 14.9 in dark, and 12.3 / 11.5 (light), 7.4 / 9.6 (dark) on the marked words; the numbers (--ink-3)
   5.0 and 5.0 in light, 4.6 and 4.8 in dark; the + and − on their own grounds 5.0 and 5.0 in light, 6.9 and 7.4 in
   dark; the counts on the page's canvas, the least of their grounds, 5.2 (+) and 5.3 (−) in light, 8.8 and 9.0 in
   dark. */
:root { --add-bg: #e6f4ea; --add-mark: #b4e2c0; --add-ink: #177632; --del-bg: #fdecea; --del-mark: #f8c4bf; --del-ink: #c4261d; }
@media (prefers-color-scheme: dark) {
  :root { --add-bg: #11291a; --add-mark: #1f5a33; --add-ink: #56c271; --del-bg: #33181a; --del-mark: #6b2a2c; --del-ink: #ff8f85; }
}
.dv { margin: 0; font: 12px/1.5 var(--mono); color: var(--ink); }
.dv .dv-head { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 12px 16px 8px; }
.dv-file { display: flex; min-width: 0; flex: 0 1 auto; white-space: nowrap; font: 12px/1.5 var(--mono); }
.dv-dir { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.dv-file b { flex: none; font-weight: 600; color: var(--ink); }
.dv-tag { flex: none; font: 12px/1.5 var(--font); color: var(--ink-3); }
.dv-stat { flex: none; margin-left: auto; display: inline-flex; gap: 8px; font: 12px/1.5 var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; }
.dv-a { color: var(--add-ink); }
.dv-r { color: var(--del-ink); }
/* the number column is as wide as the widest number in it (dv-w2 .. dv-w6); with no numbers it is the left inset alone */
.dv-rows { --dv-no: 16px; }
.dv-w2 { --dv-no: calc(2ch + 24px); }
.dv-w3 { --dv-no: calc(3ch + 24px); }
.dv-w4 { --dv-no: calc(4ch + 24px); }
.dv-w5 { --dv-no: calc(5ch + 24px); }
.dv-w6 { --dv-no: calc(6ch + 24px); }
.dv-row { display: grid; grid-template-columns: var(--dv-no) 16px minmax(0, 1fr); min-height: 18px; padding-right: 16px; }
.dv-no { grid-column: 1; text-align: right; padding: 0 8px 0 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.dv-mk { grid-column: 2; color: var(--ink-3); user-select: none; -webkit-user-select: none; }
/* a line too long for the column wraps under itself, two columns past its own indent (dv-h4: an indent of four), so
   what wrapped never reads as another line of code; the indent is a run that can't wrap (.dv-in), so a long first word
   stays on the line's first row. The characters are the file's own: a copy takes the line whole */
.dv .dv-code { grid-column: 3; min-width: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
  padding: 0 0 0 calc((var(--dv-h, 0) + 2) * 1ch); text-indent: calc((var(--dv-h, 0) + 2) * -1ch);
  /* a desk page gives its words' own `code` a tonal chip (desk.css); a line of a diff isn't one */
  background: none; border-radius: 0; color: inherit; }
.dv-in { white-space: pre; }
.dv-h1 { --dv-h: 1; } .dv-h2 { --dv-h: 2; } .dv-h3 { --dv-h: 3; } .dv-h4 { --dv-h: 4; } .dv-h5 { --dv-h: 5; } .dv-h6 { --dv-h: 6; } .dv-h7 { --dv-h: 7; } .dv-h8 { --dv-h: 8; }
.dv-h9 { --dv-h: 9; } .dv-h10 { --dv-h: 10; } .dv-h11 { --dv-h: 11; } .dv-h12 { --dv-h: 12; } .dv-h13 { --dv-h: 13; } .dv-h14 { --dv-h: 14; } .dv-h15 { --dv-h: 15; } .dv-h16 { --dv-h: 16; }
.dv-add { background: var(--add-bg); }
.dv-del { background: var(--del-bg); }
.dv-add .dv-mk { color: var(--add-ink); font-weight: 600; }
.dv-del .dv-mk { color: var(--del-ink); font-weight: 600; }
.dv-code mark { color: inherit; border-radius: 2px; }
.dv-add mark { background: var(--add-mark); }
.dv-del mark { background: var(--del-mark); }
/* the lines folded between two changes, counted: a quiet band, the code's own indent */
.dv-gap { padding: 4px 16px 4px calc(var(--dv-no) + 16px); background: var(--well); color: var(--ink-3); font: 12px/1.5 var(--font); }
/* under the step that made it, the width of the group (not indented with the step's words: a phone has no width to
   give away), closing the step it belongs to */
.tdiff { padding: 0 0 12px; }
.tdiff + .tstep { box-shadow: inset 0 1px 0 var(--line); }
.tdiff + .tdiff { margin-top: -4px; }
/* an edit's counts on its row: + and −, and a tap to that file in Changes (44pt tall without moving the row) */
.tstep .hd > .dv-stat, .tstat { flex: none; margin-left: auto; }
.tstat { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; padding: 14px 8px; margin: -14px -8px -14px auto;
  border-radius: var(--radius-c); }
.tstat .dv-stat { margin: 0; }
.tstep .hd:has(.dv-stat) .took { margin-left: 0; }
.tstep .hd:has(.dv-stat) .obj { flex: 0 1 auto; }
/* on an edit waiting for an OK (desk/decide.py edit_html), and a .diff file's page on the desk, where it is a group
   of its own */
.askdiff { margin: 0 0 16px; background: var(--cell); border-radius: var(--radius); overflow: hidden; }
.askdiff .dv-rows { padding-bottom: 12px; }
/* in a question it runs the width of what holds it, between two hairlines: the chat's stop, the question's own page
   (.desk-askcard pads 16) and Decide's card (.deck-scroll pads 16, 24 from 761 px: admin.css), so a line of code gets
   the whole phone and it isn't a box inside a card */
.stop > .askdiff, .desk-askcard > .askdiff, .deck-scroll > .askdiff { margin: 8px -16px 16px; border-radius: 0;
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
/* the last thing in the question's card (its answers are under the card): the card's own foot closes it */
.desk-askcard > .askdiff:last-child { margin-bottom: -12px; box-shadow: inset 0 1px 0 var(--line); }
@media (min-width: 761px) { .deck-scroll > .askdiff { margin: 8px -24px 16px; } }

/* Changes, at the top of a job's or a session's page (core/diffview.py changes): a file a row with its counts, opening
   on its change; under them how the last test run went. As any section: its label, then one group. */
.chg > h2 { margin-top: 0; }
/* opened from a row's counts or a link to it, a file's name row lands under the phone's sticky app bar (bar.css 44pt,
   the Desk look's top pages 52pt), not behind it (b3014) */
.chg, .chgfile { scroll-margin-top: 8px; }
@media (max-width: 760px) { .chg, .chgfile { scroll-margin-top: 56px; } }
.chg > h2 .dv-stat { font-size: 12px; }
.chgfile > summary { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 12px 40px 12px 16px; position: relative; font-weight: 400; }
.chgfile > summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform var(--ease); }
.chgfile[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.chgfile > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius); }
.chgfile > summary .dv-file { font-size: 13px; }
.chg-n { flex: none; font-size: 12px; color: var(--ink-3); }
.chgfile > .dv { padding-bottom: 12px; }
.chg-tests, .chg-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.4; }
.group > * + .chg-tests, .group > * + .chg-note { box-shadow: inset 0 1px 0 var(--line); }
.chg-note { color: var(--ink-3); }
/* the span the block covers (a session's: its turn now, b3017), a quiet line between its label and its group */
.chg > .chg-since { margin: -4px 0 8px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.chg-k { color: var(--ink-3); }
.chg-cmd { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.chg-said { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.chg-tests.ok .chg-said::before { content: "✓ "; color: var(--green); font-weight: 700; }
.chg-tests.bad .chg-said { color: var(--red); }
.chg-tests.bad .chg-said::before { content: "✕ "; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .chgfile > summary::after { transition: none; } }
.aside { color: var(--ink-2); font-size: 15px; line-height: 1.45; background: var(--well); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; }
.feddiv { align-self: center; color: var(--ink-3); font-size: 12px; text-align: center; margin: 4px 0; }

/* Workstreams, as /work lists them: a section label with its count, then one group of rows; each row leads with a tile
   (the agent's initial, or Claude Code's or Codex's mark) carrying its state as a dot on the corner, then the title,
   the one line that matters now, and where it runs. */
/* a session's tile with its app's own mark (core/marks.py tile(), b1673): the vendor's file as given, its art 18 in
   the 36 tile as the plain glyph's box; the Blossom's file holds its clear space (art in the middle half), so it fills
   the tile and the space ends at the tile's edge. The tile is the group's own surface with a hairline, not the well:
   the Clay Spark reads 3.1:1 on white where the light well gives it 2.6 (WCAG's 3:1 for a graphic), 5.7 on dark. */
.lead { color: var(--ink-2); font-size: 15px; line-height: 1.4; margin: 0 0 8px; max-width: 40em; }
.wsgroup { margin: 0 0 8px; }
.ws { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; transition: background var(--ease); }
.ws + .ws { box-shadow: inset 0 1px 0 var(--line); }
a.ws:hover { background: var(--well); text-decoration: none; }
.wsic { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--well); display: grid; place-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
a.ws:hover .wsic { background: var(--well-2); }
.wsic.wsic-mark, a.ws:hover .wsic.wsic-mark { background: var(--cell); box-shadow: inset 0 0 0 1px var(--line); }
.wsmark { display: grid; place-items: center; width: 18px; height: 18px; }
.wsmark img { display: block; width: 18px; height: 18px; }
.wsmark.padded img { width: 36px; height: 36px; margin: -9px; }
.wsic.glyph-spark::before, .wsic.glyph-knot::before, .wsic.glyph-term::before, .wsic.glyph-eye::before { content: ""; width: 18px; height: 18px; background: var(--ink-2);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.wsdot2 { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 6px; box-shadow: 0 0 0 2px var(--cell); display: none; }
/* admin.css's .working is the chat's working line (min-height 28px, padding), and the name also lands here: without
   these two the running dot drew 24x28 over its icon (b2869) */
.wsdot2.working { display: block; min-height: 0; padding: 0; background: var(--green); }
.wsdot2.waiting { display: block; background: var(--amber); }
.wsdot2.blocked { display: block; background: var(--red); }
/* a coding session's state in words where its line doesn't say it (admin/codingsessions.py, b1743) */
.wsstate { font-weight: 600; color: var(--ink-2); }
.wsstate.is-waiting { color: var(--amber); }
.wsstate.is-working { color: var(--ink); }
.wsbody { flex: 1 1 auto; min-width: 0; }
.wstop { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.wstitle { font-weight: 500; font-size: 16px; line-height: 1.3; flex: 1 1 auto; min-width: 0; color: var(--ink); }
a.wstitle:hover { text-decoration: none; color: var(--blue); }
a.wstitle { display: block; padding: 12px 0; margin: -12px 0; }
.wsline { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.wsline.ask { color: var(--amber); font-weight: 500; }
.wsline.ask.blocked { color: var(--red); }   /* stuck reads red, as its dot does; waiting stays amber */
.wssection { margin-top: 48px; }
/* Other terminals: what's on screen reads as screen text, one line, cut where the row ends */
.wsterm .wsline { font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsterm .wstitle { font-family: var(--mono); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }  /* a long command keeps its end in view */
.wsidle { margin: 0 0 8px; }
.wssub { color: var(--ink-2); font-size: 13px; margin: -4px 0 0; }
/* On your Mac (b1524): the owner's sessions in groups, each workstream's under its emoji and name (a link to its page,
   a full-height tap target with a chevron), the ones not filed yet under their folder's repo as the folder reads, in
   mono and as written (small caps would turn api into API), and one-offs last under Other sessions */
.wsh-link { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; line-height: 20px; padding: 12px 0;
  margin: -12px 0; }
.wsh-link::after { content: "›"; color: var(--ink-3); font-variant-caps: normal; font-weight: 400; }
.wsh-link:hover { text-decoration: none; }
.wsh-link:hover .wsh-name { color: var(--blue); }
.wsh-mark { font-variant-caps: normal; letter-spacing: 0; font-size: 15px; line-height: 1; }
.wsh.is-repo .wsh-name { font-family: var(--mono); font-variant-caps: normal; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.wsrepo { margin: 8px 0 0; }
/* a Mac that can't list its sessions (no Apple command line tools): one quiet line, the command kept whole */
.wsnotools { max-width: 40em; }
.wsnotools code { font-size: 12px; white-space: nowrap; }
.emptystate .wsnotools { margin-top: 12px; max-width: 32em; }
/* a Mac whose rows aren't what it shows just now (b1840): looked at, as it was a while ago, or not answering; quiet,
   with the not-answering one in amber */
.wslook { max-width: 40em; }
.wslook.is-missed { color: var(--amber); }
/* a row's foot: its facts, each a whole item (.wsfi) that wraps as one, with a dot between two on a line. The dot is
   drawn by the item after it, in that item's own left 20px (8.5, the dot's 3, 8.5), and the foot starts 20px left of
   its column with that strip cut off: so the item a line starts with shows no dot, at any width, and no line ends
   with one, since a dot never stands alone */
.wsfoot { margin: 4px 0 0 -20px; display: flex; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--ink-3);
  clip-path: inset(0 0 0 20px); }
.wsfi { position: relative; min-width: 0; padding-left: 20px; overflow-wrap: anywhere; }
.wsfi::before { content: ""; position: absolute; left: 8.5px; top: 6.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.wssrc { font-weight: 600; color: var(--ink-2); }
/* the same dot standing between two facts on a page's own line under its title (.tmeta) */
.wsdot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); flex: none; }
/* what can be done from a job's row, on one line where there's room: Answer when it waits on a choice of theirs, then
   its reply box, which goes under Answer where the two don't fit side by side (a phone) */
.wsdo { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* a job waiting on a choice of theirs: Answer is the row's one filled button, a pill as Send is */
.wsanswer { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px;
  background: var(--blue-fill); color: var(--on-blue); font-size: 15px; font-weight: 600; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: filter var(--ease), transform var(--ease); }
.wsanswer:hover { filter: brightness(1.07); text-decoration: none; }
.wsanswer:active { filter: brightness(0.93); transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .wsanswer:active { transform: none; } }
/* a running job's reply box: one pill with Send inside it, as /work's composer; Stop beside it, quiet and red */
.wsreply { flex: 1 1 240px; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
/* beside Answer its Send is words until there's something to send: one filled button in the row at a time */
.ws.has-go .wsreplybtn { background: none; color: var(--blue); }
.ws.has-go .wscomp:has(.wsreplyin:not(:placeholder-shown)) .wsreplybtn { background: var(--blue-fill); color: var(--on-blue); }
.wscomp { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 0 0 16px; background: var(--well); border-radius: 22px; }
.wscomp:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.wsreplyin { flex: 1; min-width: 0; min-height: 44px; background: none; border: 0; border-radius: 0; padding: 0; font: inherit; font-size: 16px; color: var(--ink); }
.wsreplyin::placeholder { color: var(--ink-3); }
.wsreplyin:focus, .wsreplyin:focus-visible { outline: none; }
/* what the job was last told from its box, just above it: said in the second ink, the words in the first */
.wstold { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.wstold-k { font-weight: 600; color: var(--ink); }
.wstold-t { color: var(--ink); }
.wstold-s { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.wstold.miss { color: var(--red); font-weight: 500; }
.wsreplybtn { flex: none; min-height: 44px; background: var(--blue-fill); color: var(--on-blue); border: 0; border-radius: 22px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* a job that didn't finish (the server restarted under it, or it failed): start it over, as the reply box's pill but
   in the well, since it's the card's one way on rather than a send */
.wsagain { margin: 12px 0 0; }
.wsagainbtn { min-height: 44px; background: var(--well); color: var(--blue); border-radius: 22px; padding: 0 16px; font-size: 15px; font-weight: 600; }
.page .wsagain > button { margin-top: 0; }
/* a workstream (core/projects.py), as /work leads one: its emoji in the tile, its state as the tile's dot; on a job's
   row, the workstream it's in after its source */
.wsic.wsemoji { font-size: 20px; font-weight: 400; text-transform: none; line-height: 1; }
.ws.stream { align-items: center; }
/* a job you just told or stopped is where the page lands (#ws-ID), with its group's heading still above it */
.ws[id] { scroll-margin-top: 24vh; }
.ws.stream .wsline { margin-top: 2px; }
.wsin { color: var(--ink-2); }
/* a backlog item (core/backlog.py): its number in the tile, as written (b12, not B12); its row's actions under it as
   words, not pills (a queue of pills outshouts what's running above it), each a 44pt target, the first one's words on
   the column's edge; the way on in blue, the rest quiet, Drop red as Stop is */
.wsic.wsbl { font-size: 13px; text-transform: none; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wsblgroup { margin-top: 12px; }
.wsbldo { margin: 4px 0 -8px -12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wsbldo > button { min-height: 44px; border: 0; border-radius: 22px; padding: 0 12px; background: none; font: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; }
.wsbldo > button:hover { background: var(--well); }
.wsbl-go { color: var(--blue); }
.wsbl-quiet { color: var(--ink-2); }
.wsbl-drop { color: var(--red); }
/* a row's words-as-buttons sit right under its foot: not the 16px a page form's own button gets above it */
.page .wsbldo > button { margin-top: 0; }
/* on the narrowest phones (320, an iPhone SE's width) a queued item's three words keep one line with less air around
   each, still 44pt targets: at 12px a side Drop wrapped under the other two to a line of its own (b3219) */
@media (max-width: 359px) { .wsbldo { margin-left: -8px; } .wsbldo > button { padding: 0 8px; } }
/* something it's watching for (brain/watches.py): the check under its line as the Mac runs it, up to two lines (a long
   one cut at the end of the second, the whole of it on hover); a connection's in the row's own type */
.wthow { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wthow.mono { font-family: var(--mono); }
.streamh { display: flex; align-items: center; gap: 12px; }
.streamh-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--well); font-size: 22px; }

/* the desk's pages by workstream, as the desk's rail lists its projects: a header to fold it (a chevron, its emoji, its
   name, how many), the way into its page at the other end */
.pgrp { margin: 0 0 16px; }
.pgrp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.pgrp-fold { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; margin: 0 0 0 -8px; padding: 0 8px;
  border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.pgrp-fold:hover { background: var(--well); }
.pgrp-car { flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--ease); }
.pgrp.shut .pgrp-car { transform: rotate(-45deg); }
.pgrp-mark { flex: none; font-size: 18px; line-height: 1; }
.pgrp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgrp-n { flex: none; color: var(--ink-3); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.pgrp-go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; }
.pgrp.shut .pgrp-body { display: none; }

/* the sidebar's workstreams, under the sections, as the desk's rail lists projects under Today and Work */
.side .streams { display: flex; flex-direction: column; margin: 24px 0 0; }
.side .streams-label { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 12px 4px; }
.side .streams a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.side .streams a:hover { background: var(--well); color: var(--ink); text-decoration: none; }
.side .streams a[aria-current="page"] { background: var(--well-2); color: var(--ink); }
.side .streams .sname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .streams .sdot { flex: none; width: 8px; height: 8px; border-radius: 4px; background: transparent; }
.side .streams .sdot.run { background: var(--green); }
.side .streams .sdot.wait { background: var(--amber); }

/* an empty page says what goes here and why it's empty, in the middle of the space it has */
.emptystate { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; }
.emptystate .what { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.emptystate .why { font-size: 15px; color: var(--ink-2); max-width: 32em; margin: 0; }
.emptystate .button { margin-top: 16px; }
/* an empty note with more of the page under it (Memory, b2461): as tall as its words, so what follows starts close */
.emptystate.brief { min-height: 0; padding: 32px 16px 8px; }

/* a page the agent keeps current in place (desk_publish live, b1461): the word, in green, after a dot. Its own green in
   light: --green is 4.05:1 on the canvas, under 4.5 for 12 px words; this one is 4.98 there, 4.6 on a well */
:root { --live-ink: #177a37; }
@media (prefers-color-scheme: dark) { :root { --live-ink: var(--green); } }
.live-mark { color: var(--live-ink); font-weight: 600; white-space: nowrap; }
.live-mark::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 4px 1px 0; border-radius: 50%;
  background: currentColor; vertical-align: middle; }

/* ---------- the mark beside a link in words (core/linkmarks.py) ---------- */

/* linkmarks:start (gregg_hub/core/linkmarks.py writes this block: change it there, then --write) */
:where(:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a[href])::before{content:var(--lm-on) "\2060";padding-left:var(--lm-on) var(--lm-w);margin-right:var(--lm-on) .3em;background-color:var(--lm-on) var(--lm-ink, var(--ink-3));opacity:var(--lm-on) var(--lm-o, 1);-webkit-mask:var(--lm-on) var(--lm) 0 0/var(--lm-w) 100% no-repeat;mask:var(--lm-on) var(--lm) 0 0/var(--lm-w) 100% no-repeat;text-decoration:var(--lm-on) none}
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a[href]{--lm-w:clamp(12px, .9em, 16px)}
.bubble a[href]{--lm-ink:currentColor;--lm-o:.6}
/* web page */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="http://" i], [href^="https://" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");--lm-n:"Web page";--lm-on: }
/* a live app */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="app"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3Cpath d='M13 13l6 6'/%3E%3C/svg%3E");--lm-n:"Live app";--lm-on: }
/* docs */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://docs." i], [href^="https://developer." i], [href^="https://developers." i], [href^="https://help." i], [href^="https://support." i], [href^="https://knowledge." i], [href^="https://wiki." i], [href^="https://learn.microsoft.com/" i], [href="https://learn.microsoft.com" i], [href^="https://www.learn.microsoft.com/" i], [href="https://www.learn.microsoft.com" i], [href^="https://code.claude.com/docs" i], [href^="https://www.code.claude.com/docs" i], [data-opens="docs"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");--lm-n:"Docs";--lm-on: }
/* paper */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://arxiv.org/" i], [href="https://arxiv.org" i], [href^="https://www.arxiv.org/" i], [href="https://www.arxiv.org" i], [href^="https://doi.org/" i], [href="https://doi.org" i], [href^="https://www.doi.org/" i], [href="https://www.doi.org" i], [href^="https://pubmed.ncbi.nlm.nih.gov/" i], [href="https://pubmed.ncbi.nlm.nih.gov" i], [href^="https://www.pubmed.ncbi.nlm.nih.gov/" i], [href="https://www.pubmed.ncbi.nlm.nih.gov" i], [href^="https://pmc.ncbi.nlm.nih.gov/" i], [href="https://pmc.ncbi.nlm.nih.gov" i], [href^="https://www.pmc.ncbi.nlm.nih.gov/" i], [href="https://www.pmc.ncbi.nlm.nih.gov" i], [href^="https://europepmc.org/" i], [href="https://europepmc.org" i], [href^="https://www.europepmc.org/" i], [href="https://www.europepmc.org" i], [href^="https://openreview.net/" i], [href="https://openreview.net" i], [href^="https://www.openreview.net/" i], [href="https://www.openreview.net" i], [href^="https://aclanthology.org/" i], [href="https://aclanthology.org" i], [href^="https://www.aclanthology.org/" i], [href="https://www.aclanthology.org" i], [href^="https://biorxiv.org/" i], [href="https://biorxiv.org" i], [href^="https://www.biorxiv.org/" i], [href="https://www.biorxiv.org" i], [href^="https://medrxiv.org/" i], [href="https://medrxiv.org" i], [href^="https://www.medrxiv.org/" i], [href="https://www.medrxiv.org" i], [href^="https://semanticscholar.org/" i], [href="https://semanticscholar.org" i], [href^="https://www.semanticscholar.org/" i], [href="https://www.semanticscholar.org" i], [href^="https://scholar.google.com/" i], [href="https://scholar.google.com" i], [href^="https://www.scholar.google.com/" i], [href="https://www.scholar.google.com" i], [href^="https://nature.com/" i], [href="https://nature.com" i], [href^="https://www.nature.com/" i], [href="https://www.nature.com" i], [href^="https://science.org/" i], [href="https://science.org" i], [href^="https://www.science.org/" i], [href="https://www.science.org" i], [href^="https://sciencedirect.com/" i], [href="https://sciencedirect.com" i], [href^="https://www.sciencedirect.com/" i], [href="https://www.sciencedirect.com" i], [href^="https://ieeexplore.ieee.org/" i], [href="https://ieeexplore.ieee.org" i], [href^="https://www.ieeexplore.ieee.org/" i], [href="https://www.ieeexplore.ieee.org" i], [href^="https://dl.acm.org/" i], [href="https://dl.acm.org" i], [href^="https://www.dl.acm.org/" i], [href="https://www.dl.acm.org" i], [href^="https://jstor.org/" i], [href="https://jstor.org" i], [href^="https://www.jstor.org/" i], [href="https://www.jstor.org" i], [href^="https://papers.ssrn.com/" i], [href="https://papers.ssrn.com" i], [href^="https://www.papers.ssrn.com/" i], [href="https://www.papers.ssrn.com" i], [href^="https://proceedings.mlr.press/" i], [href="https://proceedings.mlr.press" i], [href^="https://www.proceedings.mlr.press/" i], [href="https://www.proceedings.mlr.press" i], [href^="https://proceedings.neurips.cc/" i], [href="https://proceedings.neurips.cc" i], [href^="https://www.proceedings.neurips.cc/" i], [href="https://www.proceedings.neurips.cc" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");--lm-n:"Paper";--lm-on: }
/* store */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://amazon.com/" i], [href="https://amazon.com" i], [href^="https://www.amazon.com/" i], [href="https://www.amazon.com" i], [href^="https://ebay.com/" i], [href="https://ebay.com" i], [href^="https://www.ebay.com/" i], [href="https://www.ebay.com" i], [href^="https://etsy.com/" i], [href="https://etsy.com" i], [href^="https://www.etsy.com/" i], [href="https://www.etsy.com" i], [href^="https://walmart.com/" i], [href="https://walmart.com" i], [href^="https://www.walmart.com/" i], [href="https://www.walmart.com" i], [href^="https://target.com/" i], [href="https://target.com" i], [href^="https://www.target.com/" i], [href="https://www.target.com" i], [href^="https://bestbuy.com/" i], [href="https://bestbuy.com" i], [href^="https://www.bestbuy.com/" i], [href="https://www.bestbuy.com" i], [href^="https://homedepot.com/" i], [href="https://homedepot.com" i], [href^="https://www.homedepot.com/" i], [href="https://www.homedepot.com" i], [href^="https://ikea.com/" i], [href="https://ikea.com" i], [href^="https://www.ikea.com/" i], [href="https://www.ikea.com" i], [href^="https://aliexpress.com/" i], [href="https://aliexpress.com" i], [href^="https://www.aliexpress.com/" i], [href="https://www.aliexpress.com" i], [href^="https://aliexpress.us/" i], [href="https://aliexpress.us" i], [href^="https://www.aliexpress.us/" i], [href="https://www.aliexpress.us" i], [href^="https://bhphotovideo.com/" i], [href="https://bhphotovideo.com" i], [href^="https://www.bhphotovideo.com/" i], [href="https://www.bhphotovideo.com" i], [href^="https://newegg.com/" i], [href="https://newegg.com" i], [href^="https://www.newegg.com/" i], [href="https://www.newegg.com" i], [href^="https://digikey.com/" i], [href="https://digikey.com" i], [href^="https://www.digikey.com/" i], [href="https://www.digikey.com" i], [href^="https://digikey.ca/" i], [href="https://digikey.ca" i], [href^="https://www.digikey.ca/" i], [href="https://www.digikey.ca" i], [href^="https://mouser.com/" i], [href="https://mouser.com" i], [href^="https://www.mouser.com/" i], [href="https://www.mouser.com" i], [href^="https://lcsc.com/" i], [href="https://lcsc.com" i], [href^="https://www.lcsc.com/" i], [href="https://www.lcsc.com" i], [href^="https://adafruit.com/" i], [href="https://adafruit.com" i], [href^="https://www.adafruit.com/" i], [href="https://www.adafruit.com" i], [href^="https://pololu.com/" i], [href="https://pololu.com" i], [href^="https://www.pololu.com/" i], [href="https://www.pololu.com" i], [href^="https://sparkfun.com/" i], [href="https://sparkfun.com" i], [href^="https://www.sparkfun.com/" i], [href="https://www.sparkfun.com" i], [href^="https://mcmaster.com/" i], [href="https://mcmaster.com" i], [href^="https://www.mcmaster.com/" i], [href="https://www.mcmaster.com" i], [href^="https://jlcpcb.com/" i], [href="https://jlcpcb.com" i], [href^="https://www.jlcpcb.com/" i], [href="https://www.jlcpcb.com" i], [href^="https://seeedstudio.com/" i], [href="https://seeedstudio.com" i], [href^="https://www.seeedstudio.com/" i], [href="https://www.seeedstudio.com" i], [href^="https://findchips.com/" i], [href="https://findchips.com" i], [href^="https://www.findchips.com/" i], [href="https://www.findchips.com" i], [href^="https://octopart.com/" i], [href="https://octopart.com" i], [href^="https://www.octopart.com/" i], [href="https://www.octopart.com" i], [href^="https://a.co/" i], [href="https://a.co" i], [href^="https://www.a.co/" i], [href="https://www.a.co" i], [href^="https://amzn.to/" i], [href="https://amzn.to" i], [href^="https://www.amzn.to/" i], [href="https://www.amzn.to" i], [href^="https://store." i], [href^="https://shop." i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");--lm-n:"Store";--lm-on: }
/* LinkedIn */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://linkedin.com/" i], [href="https://linkedin.com" i], [href^="https://www.linkedin.com/" i], [href="https://www.linkedin.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");--lm-n:"LinkedIn";--lm-on: }
/* job posting */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://jobs.ashbyhq.com/" i], [href="https://jobs.ashbyhq.com" i], [href^="https://www.jobs.ashbyhq.com/" i], [href="https://www.jobs.ashbyhq.com" i], [href^="https://job-boards.greenhouse.io/" i], [href="https://job-boards.greenhouse.io" i], [href^="https://www.job-boards.greenhouse.io/" i], [href="https://www.job-boards.greenhouse.io" i], [href^="https://boards.greenhouse.io/" i], [href="https://boards.greenhouse.io" i], [href^="https://www.boards.greenhouse.io/" i], [href="https://www.boards.greenhouse.io" i], [href^="https://jobs.lever.co/" i], [href="https://jobs.lever.co" i], [href^="https://www.jobs.lever.co/" i], [href="https://www.jobs.lever.co" i], [href^="https://linkedin.com/jobs" i], [href^="https://www.linkedin.com/jobs" i], [href^="https://wellfound.com/" i], [href="https://wellfound.com" i], [href^="https://www.wellfound.com/" i], [href="https://www.wellfound.com" i], [href^="https://workatastartup.com/" i], [href="https://workatastartup.com" i], [href^="https://www.workatastartup.com/" i], [href="https://www.workatastartup.com" i], [href^="https://ycombinator.com/companies" i], [href^="https://www.ycombinator.com/companies" i], [href^="https://ycombinator.com/jobs" i], [href^="https://www.ycombinator.com/jobs" i], [data-opens="posting"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");--lm-n:"Job posting";--lm-on: }
/* video */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://vimeo.com/" i], [href="https://vimeo.com" i], [href^="https://www.vimeo.com/" i], [href="https://www.vimeo.com" i], [href^="https://loom.com/" i], [href="https://loom.com" i], [href^="https://www.loom.com/" i], [href="https://www.loom.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18' ry='2.18'/%3E%3Cline x1='7' y1='2' x2='7' y2='22'/%3E%3Cline x1='17' y1='2' x2='17' y2='22'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cline x1='2' y1='7' x2='7' y2='7'/%3E%3Cline x1='2' y1='17' x2='7' y2='17'/%3E%3Cline x1='17' y1='17' x2='22' y2='17'/%3E%3Cline x1='17' y1='7' x2='22' y2='7'/%3E%3C/svg%3E");--lm-n:"Video";--lm-on: }
/* map */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://maps.apple.com/" i], [href="https://maps.apple.com" i], [href^="https://www.maps.apple.com/" i], [href="https://www.maps.apple.com" i], [href^="https://maps.app.goo.gl/" i], [href="https://maps.app.goo.gl" i], [href^="https://www.maps.app.goo.gl/" i], [href="https://www.maps.app.goo.gl" i], [href^="https://google.com/maps" i], [href^="https://www.google.com/maps" i], [href^="https://goo.gl/maps" i], [href^="https://www.goo.gl/maps" i], [href^="https://openstreetmap.org/" i], [href="https://openstreetmap.org" i], [href^="https://www.openstreetmap.org/" i], [href="https://www.openstreetmap.org" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");--lm-n:"Map";--lm-on: }
/* calendar */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://calendar.google.com/" i], [href="https://calendar.google.com" i], [href^="https://www.calendar.google.com/" i], [href="https://www.calendar.google.com" i], [href^="https://calendar.app.google/" i], [href="https://calendar.app.google" i], [href^="https://www.calendar.app.google/" i], [href="https://www.calendar.app.google" i], [href^="https://calendly.com/" i], [href="https://calendly.com" i], [href^="https://www.calendly.com/" i], [href="https://www.calendly.com" i], [href^="https://cal.com/" i], [href="https://cal.com" i], [href^="https://www.cal.com/" i], [href="https://www.cal.com" i], [href$=".ics" i], [href*=".ics?" i], [href*=".ics#" i], [href^="webcal:" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");--lm-n:"Calendar";--lm-on: }
/* mail */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://mail.google.com/" i], [href="https://mail.google.com" i], [href^="https://www.mail.google.com/" i], [href="https://www.mail.google.com" i], [href^="https://outlook.office.com/" i], [href="https://outlook.office.com" i], [href^="https://www.outlook.office.com/" i], [href="https://www.outlook.office.com" i], [href^="https://outlook.live.com/" i], [href="https://outlook.live.com" i], [href^="https://www.outlook.live.com/" i], [href="https://www.outlook.live.com" i], [href^="mailto:" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");--lm-n:"Mail";--lm-on: }
/* document */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://docs.google.com/document" i], [href^="https://www.docs.google.com/document" i], [href^="https://docs.google.com/presentation" i], [href^="https://www.docs.google.com/presentation" i], [href^="https://notion.so/" i], [href="https://notion.so" i], [href^="https://www.notion.so/" i], [href="https://www.notion.so" i], [href^="https://overleaf.com/" i], [href="https://overleaf.com" i], [href^="https://www.overleaf.com/" i], [href="https://www.overleaf.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");--lm-n:"Document";--lm-on: }
/* spreadsheet */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://docs.google.com/spreadsheets" i], [href^="https://www.docs.google.com/spreadsheets" i], [href^="https://airtable.com/" i], [href="https://airtable.com" i], [href^="https://www.airtable.com/" i], [href="https://www.airtable.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");--lm-n:"Spreadsheet";--lm-on: }
/* an older copy of a page */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://web.archive.org/" i], [href="https://web.archive.org" i], [href^="https://www.web.archive.org/" i], [href="https://www.web.archive.org" i], [href^="https://archive.org/" i], [href="https://archive.org" i], [href^="https://www.archive.org/" i], [href="https://www.archive.org" i], [href^="https://archive.ph/" i], [href="https://archive.ph" i], [href^="https://www.archive.ph/" i], [href="https://www.archive.ph" i], [href^="https://archive.is/" i], [href="https://archive.is" i], [href^="https://www.archive.is/" i], [href="https://www.archive.is" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='21 8 21 21 3 21 3 8'/%3E%3Crect x='1' y='3' width='22' height='5'/%3E%3Cline x1='10' y1='12' x2='14' y2='12'/%3E%3C/svg%3E");--lm-n:"Older copy of a page";--lm-on: }
/* GitHub */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://github.com/" i], [href="https://github.com" i], [href^="https://www.github.com/" i], [href="https://www.github.com" i], [href^="https://gist.github.com/" i], [href="https://gist.github.com" i], [href^="https://www.gist.github.com/" i], [href="https://www.gist.github.com" i], [href^="https://docs.github.com/" i], [href="https://docs.github.com" i], [href^="https://www.docs.github.com/" i], [href="https://www.docs.github.com" i], [href^="https://raw.githubusercontent.com/" i], [href="https://raw.githubusercontent.com" i], [href^="https://www.raw.githubusercontent.com/" i], [href="https://www.raw.githubusercontent.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22'/%3E%3C/svg%3E");--lm-n:"GitHub";--lm-on: }
/* GitLab */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://gitlab.com/" i], [href="https://gitlab.com" i], [href^="https://www.gitlab.com/" i], [href="https://www.gitlab.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z'/%3E%3C/svg%3E");--lm-n:"GitLab";--lm-on: }
/* YouTube */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://youtube.com/" i], [href="https://youtube.com" i], [href^="https://www.youtube.com/" i], [href="https://www.youtube.com" i], [href^="https://m.youtube.com/" i], [href="https://m.youtube.com" i], [href^="https://www.m.youtube.com/" i], [href="https://www.m.youtube.com" i], [href^="https://youtu.be/" i], [href="https://youtu.be" i], [href^="https://www.youtu.be/" i], [href="https://www.youtu.be" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z'/%3E%3Cpolygon points='9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02'/%3E%3C/svg%3E");--lm-n:"YouTube";--lm-on: }
/* Slack */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://slack.com/" i], [href="https://slack.com" i], [href^="https://www.slack.com/" i], [href="https://www.slack.com" i], [href^="https://app.slack.com/" i], [href="https://app.slack.com" i], [href^="https://www.app.slack.com/" i], [href="https://www.app.slack.com" i], [href^="https://api.slack.com/" i], [href="https://api.slack.com" i], [href^="https://www.api.slack.com/" i], [href="https://www.api.slack.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z'/%3E%3Cpath d='M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3Cpath d='M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z'/%3E%3Cpath d='M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z'/%3E%3Cpath d='M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z'/%3E%3Cpath d='M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z'/%3E%3Cpath d='M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z'/%3E%3Cpath d='M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z'/%3E%3C/svg%3E");--lm-n:"Slack";--lm-on: }
/* Figma */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="https://figma.com/" i], [href="https://figma.com" i], [href^="https://www.figma.com/" i], [href="https://www.figma.com" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z'/%3E%3Cpath d='M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z'/%3E%3Cpath d='M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z'/%3E%3Cpath d='M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z'/%3E%3Cpath d='M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z'/%3E%3C/svg%3E");--lm-n:"Figma";--lm-on: }
/* phone number */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="tel:" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");--lm-n:"Phone number";--lm-on: }
/* message */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href^="sms:" i], [href^="imessage:" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");--lm-n:"Message";--lm-on: }
/* a page on the desk */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="page"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E");--lm-n:"Page on the desk";--lm-on: }
/* a question */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="question"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");--lm-n:"Question";--lm-on: }
/* a screen */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="screen"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");--lm-n:"Screen";--lm-on: }
/* a vault page */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="vault"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");--lm-n:"Vault page";--lm-on: }
/* a task on the desk */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="item"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E");--lm-n:"Task on the desk";--lm-on: }
/* the jobs running */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="jobs"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");--lm-n:"Jobs running";--lm-on: }
/* a job's page */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([data-opens="job"]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");--lm-n:"Job's page";--lm-on: }
/* PDF */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".pdf" i], [href*=".pdf?" i], [href*=".pdf#" i], [href$=".docx" i], [href*=".docx?" i], [href*=".docx#" i], [href$=".doc" i], [href*=".doc?" i], [href*=".doc#" i], [href$=".pptx" i], [href*=".pptx?" i], [href*=".pptx#" i], [href$=".key" i], [href*=".key?" i], [href*=".key#" i], [href$=".tex" i], [href*=".tex?" i], [href*=".tex#" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");--lm-n:"PDF";--lm-on: }
/* spreadsheet */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".csv" i], [href*=".csv?" i], [href*=".csv#" i], [href$=".tsv" i], [href*=".tsv?" i], [href*=".tsv#" i], [href$=".xlsx" i], [href*=".xlsx?" i], [href*=".xlsx#" i], [href$=".xls" i], [href*=".xls?" i], [href*=".xls#" i], [href$=".numbers" i], [href*=".numbers?" i], [href*=".numbers#" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");--lm-n:"Spreadsheet";--lm-on: }
/* video */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".mp4" i], [href*=".mp4?" i], [href*=".mp4#" i], [href$=".mov" i], [href*=".mov?" i], [href*=".mov#" i], [href$=".webm" i], [href*=".webm?" i], [href*=".webm#" i], [href$=".m4v" i], [href*=".m4v?" i], [href*=".m4v#" i], [href$=".gif" i], [href*=".gif?" i], [href*=".gif#" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.18' ry='2.18'/%3E%3Cline x1='7' y1='2' x2='7' y2='22'/%3E%3Cline x1='17' y1='2' x2='17' y2='22'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cline x1='2' y1='7' x2='7' y2='7'/%3E%3Cline x1='2' y1='17' x2='7' y2='17'/%3E%3Cline x1='17' y1='17' x2='22' y2='17'/%3E%3Cline x1='17' y1='7' x2='22' y2='7'/%3E%3C/svg%3E");--lm-n:"Video";--lm-on: }
/* download */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".zip" i], [href*=".zip?" i], [href*=".zip#" i], [href$=".tgz" i], [href*=".tgz?" i], [href*=".tgz#" i], [href$=".gz" i], [href*=".gz?" i], [href*=".gz#" i], [href$=".tar" i], [href*=".tar?" i], [href*=".tar#" i], [href$=".dmg" i], [href*=".dmg?" i], [href*=".dmg#" i], [href$=".pkg" i], [href*=".pkg?" i], [href*=".pkg#" i], [href$=".ipa" i], [href*=".ipa?" i], [href*=".ipa#" i], [href$=".apk" i], [href*=".apk?" i], [href*=".apk#" i], [href$=".whl" i], [href*=".whl?" i], [href*=".whl#" i]){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");--lm-n:"Download";--lm-on: }
/* picture */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".png" i]:not([href^="http" i]), [href*=".png?" i]:not([href^="http" i]), [href*=".png#" i]:not([href^="http" i]), [href$=".jpg" i]:not([href^="http" i]), [href*=".jpg?" i]:not([href^="http" i]), [href*=".jpg#" i]:not([href^="http" i]), [href$=".jpeg" i]:not([href^="http" i]), [href*=".jpeg?" i]:not([href^="http" i]), [href*=".jpeg#" i]:not([href^="http" i]), [href$=".webp" i]:not([href^="http" i]), [href*=".webp?" i]:not([href^="http" i]), [href*=".webp#" i]:not([href^="http" i]), [href$=".svg" i]:not([href^="http" i]), [href*=".svg?" i]:not([href^="http" i]), [href*=".svg#" i]:not([href^="http" i]), [href$=".heic" i]:not([href^="http" i]), [href*=".heic?" i]:not([href^="http" i]), [href*=".heic#" i]:not([href^="http" i]), [href$=".avif" i]:not([href^="http" i]), [href*=".avif?" i]:not([href^="http" i]), [href*=".avif#" i]:not([href^="http" i])){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");--lm-n:"Picture";--lm-on: }
/* code */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".py" i]:not([href^="http" i]), [href*=".py?" i]:not([href^="http" i]), [href*=".py#" i]:not([href^="http" i]), [href$=".js" i]:not([href^="http" i]), [href*=".js?" i]:not([href^="http" i]), [href*=".js#" i]:not([href^="http" i]), [href$=".mjs" i]:not([href^="http" i]), [href*=".mjs?" i]:not([href^="http" i]), [href*=".mjs#" i]:not([href^="http" i]), [href$=".ts" i]:not([href^="http" i]), [href*=".ts?" i]:not([href^="http" i]), [href*=".ts#" i]:not([href^="http" i]), [href$=".tsx" i]:not([href^="http" i]), [href*=".tsx?" i]:not([href^="http" i]), [href*=".tsx#" i]:not([href^="http" i]), [href$=".jsx" i]:not([href^="http" i]), [href*=".jsx?" i]:not([href^="http" i]), [href*=".jsx#" i]:not([href^="http" i]), [href$=".rs" i]:not([href^="http" i]), [href*=".rs?" i]:not([href^="http" i]), [href*=".rs#" i]:not([href^="http" i]), [href$=".go" i]:not([href^="http" i]), [href*=".go?" i]:not([href^="http" i]), [href*=".go#" i]:not([href^="http" i]), [href$=".swift" i]:not([href^="http" i]), [href*=".swift?" i]:not([href^="http" i]), [href*=".swift#" i]:not([href^="http" i]), [href$=".c" i]:not([href^="http" i]), [href*=".c?" i]:not([href^="http" i]), [href*=".c#" i]:not([href^="http" i]), [href$=".h" i]:not([href^="http" i]), [href*=".h?" i]:not([href^="http" i]), [href*=".h#" i]:not([href^="http" i]), [href$=".cpp" i]:not([href^="http" i]), [href*=".cpp?" i]:not([href^="http" i]), [href*=".cpp#" i]:not([href^="http" i]), [href$=".sh" i]:not([href^="http" i]), [href*=".sh?" i]:not([href^="http" i]), [href*=".sh#" i]:not([href^="http" i]), [href$=".rb" i]:not([href^="http" i]), [href*=".rb?" i]:not([href^="http" i]), [href*=".rb#" i]:not([href^="http" i]), [href$=".java" i]:not([href^="http" i]), [href*=".java?" i]:not([href^="http" i]), [href*=".java#" i]:not([href^="http" i]), [href$=".kt" i]:not([href^="http" i]), [href*=".kt?" i]:not([href^="http" i]), [href*=".kt#" i]:not([href^="http" i]), [href$=".css" i]:not([href^="http" i]), [href*=".css?" i]:not([href^="http" i]), [href*=".css#" i]:not([href^="http" i]), [href$=".sql" i]:not([href^="http" i]), [href*=".sql?" i]:not([href^="http" i]), [href*=".sql#" i]:not([href^="http" i]), [href$=".patch" i]:not([href^="http" i]), [href*=".patch?" i]:not([href^="http" i]), [href*=".patch#" i]:not([href^="http" i]), [href$=".diff" i]:not([href^="http" i]), [href*=".diff?" i]:not([href^="http" i]), [href*=".diff#" i]:not([href^="http" i]), [href$=".asm" i]:not([href^="http" i]), [href*=".asm?" i]:not([href^="http" i]), [href*=".asm#" i]:not([href^="http" i]), [href$=".ipynb" i]:not([href^="http" i]), [href*=".ipynb?" i]:not([href^="http" i]), [href*=".ipynb#" i]:not([href^="http" i])){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");--lm-n:"Code";--lm-on: }
/* file */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a:where([href$=".json" i]:not([href^="http" i]), [href*=".json?" i]:not([href^="http" i]), [href*=".json#" i]:not([href^="http" i]), [href$=".jsonl" i]:not([href^="http" i]), [href*=".jsonl?" i]:not([href^="http" i]), [href*=".jsonl#" i]:not([href^="http" i]), [href$=".log" i]:not([href^="http" i]), [href*=".log?" i]:not([href^="http" i]), [href*=".log#" i]:not([href^="http" i]), [href$=".txt" i]:not([href^="http" i]), [href*=".txt?" i]:not([href^="http" i]), [href*=".txt#" i]:not([href^="http" i]), [href$=".md" i]:not([href^="http" i]), [href*=".md?" i]:not([href^="http" i]), [href*=".md#" i]:not([href^="http" i]), [href$=".yaml" i]:not([href^="http" i]), [href*=".yaml?" i]:not([href^="http" i]), [href*=".yaml#" i]:not([href^="http" i]), [href$=".yml" i]:not([href^="http" i]), [href*=".yml?" i]:not([href^="http" i]), [href*=".yml#" i]:not([href^="http" i]), [href$=".toml" i]:not([href^="http" i]), [href*=".toml?" i]:not([href^="http" i]), [href*=".toml#" i]:not([href^="http" i]), [href$=".xml" i]:not([href^="http" i]), [href*=".xml?" i]:not([href^="http" i]), [href*=".xml#" i]:not([href^="http" i]), [href$=".plist" i]:not([href^="http" i]), [href*=".plist?" i]:not([href^="http" i]), [href*=".plist#" i]:not([href^="http" i]), [href$=".tsv.gz" i]:not([href^="http" i]), [href*=".tsv.gz?" i]:not([href^="http" i]), [href*=".tsv.gz#" i]:not([href^="http" i]), [href$=".out" i]:not([href^="http" i]), [href*=".out?" i]:not([href^="http" i]), [href*=".out#" i]:not([href^="http" i]), [href$=".err" i]:not([href^="http" i]), [href*=".err?" i]:not([href^="http" i]), [href*=".err#" i]:not([href^="http" i]), [href$=".trace" i]:not([href^="http" i]), [href*=".trace?" i]:not([href^="http" i]), [href*=".trace#" i]:not([href^="http" i]), [href$=".har" i]:not([href^="http" i]), [href*=".har?" i]:not([href^="http" i]), [href*=".har#" i]:not([href^="http" i])){--lm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E");--lm-n:"File";--lm-on: }
/* no mark: see BARE_LINK and BARE_IN */
:is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) a[href]:is([class], [role="button"], [data-nomark], :has(img, svg, picture, video, button)), :is(.desk-content, .bubble, .say, .item-note, .item-spec, .deck-body, .desk-decision-body, .note) :is(pre, code, nav, sup, summary, button, .desk-others) a[href]{--lm-on:initial}
/* linkmarks:end */

/* What a marked link opens, in words: the panel linkpeek.js shows under a link while a mouse rests on it or Tab is on
   it (b2636). The kind, and under it the site for a link that leaves the hub. A raised surface with the hairline and
   the one soft shadow the app's toast has; it takes no clicks. */
.lm-peek { position: fixed; z-index: 60; top: 0; left: 0; width: max-content; max-width: min(288px, calc(100vw - 24px)); margin: 0;
  padding: 8px 12px; border: 1px solid var(--edge); border-radius: var(--radius-c); background: var(--raised);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); font-size: 13px; line-height: 1.4; color: var(--ink-2); text-align: left;
  overflow-wrap: anywhere; pointer-events: none; }
.lm-peek b { display: block; font-weight: 600; color: var(--ink); }
.lm-peek span { display: block; }
.lm-peek span:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lm-peek { animation: lm-peek-in 0.15s ease-out; }
  @keyframes lm-peek-in { from { opacity: 0; transform: translateY(-4px); } }
}
