/* The kernel's own pages (pages.ts `shell`): the centred column a sign-in,
   a notice or a drop is drawn in, and the dashboard's frame. Everything a
   page holds is a part of @yaks/ui's kit, drawn by its pencil skin (_ui.css,
   shown at /style-guide); this is only what no other page draws. */
@layer tokens, base, components, sections;
@layer tokens {
/* Linen: yaks.app's colours. Light is a warm sheet of linen under cream
   cards, written in coffee, never black, with meadow green for what is lit
   and red for a fault. Dark is the same room at night: a night-brown
   ground, cocoa cards, oat ink, moss for what is lit and coral for a fault.
   linen.ts holds the dark colours for a terminal.

   The neutrals and the greens are named for what they look like (linen,
   cream, coffee, clay, taupe, shell, bark, cocoa, night, meadow, moss,
   forest, oat). The other paints are clear, saturated hues, deep enough on
   linen and bright enough at night to read as text at WCAG AA: red, orange,
   blue and raspberry; and a yellow and a grey for dots, which are never
   text: yellow a pip at work and someone away, grey someone gone. A theme
   has more roles than a palette has hues, so roles share them: meadow is
   what is lit, what went well and who; red a fault and the language's
   words; orange what is under way, said in words, and a number; blue
   something to know and a moment; raspberry what is set apart. yaks.app's
   own pages wear this theme (workers/yak/public). */
:root {
  color-scheme: light dark;
  --gap: 1rem;
  --radius: 4px;
  --measure: 38rem;
  --shadow: 0 12px 32px -16px light-dark(#5238283d, #1d1714b3);

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --size: 1.0625rem;
  --small: 0.9375rem;

  --bg: light-dark(#fdf7ee, #2b231f); /* linen; night */
  --surface: light-dark(#f7efe3, #392d27); /* a sheet behind the one in front */
  --card: light-dark(#fffbf5, #372c26); /* cream; cocoa */
  --border: light-dark(#efe3d2, #4d3d34); /* shell; bark */
  --border2: light-dark(#c9b7a6, #756255); /* the hairline, gone toward clay */

  --text: light-dark(#523828, #f1e6d8); /* coffee; oat */
  --muted: light-dark(#785b47, #c9b19c); /* clay; taupe */
  --dim: light-dark(#c9b19c, #785b47); /* taupe; clay */

  --accent: light-dark(#4c773e, #a7c080); /* meadow; moss */
  --link: light-dark(#4c773e, #a7c080);
  --heading: light-dark(#523828, #f1e6d8); /* the text's own ink */

  --info: light-dark(#1f5fbf, #8cc0ff); /* blue */
  --active: light-dark(#b84a00, #ffa057); /* orange */
  --positive: light-dark(#4c773e, #a7c080); /* meadow; moss */
  --negative: light-dark(#c4231c, #ff6b5e); /* red */
  --caution: light-dark(#c4231c, #ff6b5e); /* red */
  --dot-active: light-dark(#f5b800, #ffcc33); /* yellow: a pip at work */
  --presence-away: light-dark(#f5b800, #ffcc33); /* yellow */
  --presence-offline: light-dark(#747170, #a4a09e); /* grey */
  --special: light-dark(#b52a6a, #ff8cc0); /* raspberry */

  --number: light-dark(#b84a00, #ffa057); /* orange */
  --literal: light-dark(#c4231c, #ff6b5e); /* red */
  --time: light-dark(#1f5fbf, #8cc0ff); /* blue */
  --who: light-dark(#4c773e, #a7c080); /* meadow; moss */

  --keyword: light-dark(#c4231c, #ff6b5e); /* red */
  --string: light-dark(#4c773e, #a7c080); /* meadow; moss */
  --fn: light-dark(#1f5fbf, #fffbf5); /* blue; cream */
  --type: light-dark(#b84a00, #ffa057); /* orange */
  --attr: light-dark(#b52a6a, #ff8cc0); /* raspberry */

  --hue-0: light-dark(#4c773e, #a7c080); /* meadow; moss */
  --hue-1: light-dark(#b84a00, #ffa057); /* orange */
  --hue-2: light-dark(#1f5fbf, #8cc0ff); /* blue */
  --hue-3: light-dark(#c4231c, #ff6b5e); /* red */
  --hue-4: light-dark(#b52a6a, #ff8cc0); /* raspberry */
  --hue-5: light-dark(#33493c, #f1e6d8); /* forest; oat */
}
@supports not (color: light-dark(#000, #fff)) {
:root {
  --shadow: 0 12px 32px -16px #5238283d;
  --bg: #fdf7ee;
  --surface: #f7efe3;
  --card: #fffbf5;
  --border: #efe3d2;
  --border2: #c9b7a6;
  --text: #523828;
  --muted: #785b47;
  --dim: #c9b19c;
  --accent: #4c773e;
  --link: #4c773e;
  --heading: #523828;
  --info: #1f5fbf;
  --active: #b84a00;
  --positive: #4c773e;
  --negative: #c4231c;
  --caution: #c4231c;
  --dot-active: #f5b800;
  --presence-away: #f5b800;
  --presence-offline: #747170;
  --special: #b52a6a;
  --number: #b84a00;
  --literal: #c4231c;
  --time: #1f5fbf;
  --who: #4c773e;
  --keyword: #c4231c;
  --string: #4c773e;
  --fn: #1f5fbf;
  --type: #b84a00;
  --attr: #b52a6a;
  --hue-0: #4c773e;
  --hue-1: #b84a00;
  --hue-2: #1f5fbf;
  --hue-3: #c4231c;
  --hue-4: #b52a6a;
  --hue-5: #33493c;
}
@media (prefers-color-scheme: dark) {
:root {
  --shadow: 0 12px 32px -16px #1d1714b3;
  --bg: #2b231f;
  --surface: #392d27;
  --card: #372c26;
  --border: #4d3d34;
  --border2: #756255;
  --text: #f1e6d8;
  --muted: #c9b19c;
  --dim: #785b47;
  --accent: #a7c080;
  --link: #a7c080;
  --heading: #f1e6d8;
  --info: #8cc0ff;
  --active: #ffa057;
  --positive: #a7c080;
  --negative: #ff6b5e;
  --caution: #ff6b5e;
  --dot-active: #ffcc33;
  --presence-away: #ffcc33;
  --presence-offline: #a4a09e;
  --special: #ff8cc0;
  --number: #ffa057;
  --literal: #ff6b5e;
  --time: #8cc0ff;
  --who: #a7c080;
  --keyword: #ff6b5e;
  --string: #a7c080;
  --fn: #fffbf5;
  --type: #ffa057;
  --attr: #ff8cc0;
  --hue-0: #a7c080;
  --hue-1: #ffa057;
  --hue-2: #8cc0ff;
  --hue-3: #ff6b5e;
  --hue-4: #ff8cc0;
  --hue-5: #f1e6d8;
}
}
}

/* What every theme derives the same way: half its gap, a faint wash of its
   text, and the touch-target floor, which grows under a coarse pointer (fat
   fingers get fat targets, and only there).

   And the type every part reads, which a theme may set: --size for what a
   thing says, --small for the line that describes it, and nothing smaller.
   Headings climb from --size by one ratio, --scale, a step each: --h3, --h2,
   --h1. Every heading reads them, prose or part, so a page's h1 is the same
   size wherever it is drawn.
   Text comes in three inks. --text is what a thing says; --muted is what
   describes it (a key, a heading over a column, a fact, a stamp, an id, a
   count), and reads on every floor; --dim is only for what is not there (a
   nil, a ghost, a placeholder, a disabled step). The mono face is for what a
   person would copy or type (an id, a sha, code, a raw stored value), never
   for a label, a moment said the human way, or a count. A part that steps
   back is muted, small or both; never mono to look quiet, and never dim.
   And the width of what sits beside a page (a chat, what an agent gets):
   --side, never narrower than --side-min. */
:where(:root) {
  --half-gap: calc(var(--gap) / 2);
  --soft: color-mix(in srgb, var(--text) 6%, transparent);
  --tap: 0px;
  --size: 14px;
  --small: 12px;
  --scale: 1.2;
  --h3: calc(var(--size) * var(--scale));
  --h2: calc(var(--h3) * var(--scale));
  --h1: calc(var(--h2) * var(--scale));
  --side: 26rem;
  --side-min: 18rem;
}
@media (pointer: coarse) {
  :where(:root) {
    --tap: 2.5rem;
  }
}

/* The shared surface paint; a skin supplies its own values. */
:where(:root) {
  --edge-width: 1px;
  --edge-color: var(--border2);
  --edge-filter: none;
  --well-filter: none;
  --raised-shadow: var(--shadow);
  --raised-hatch: none;
  --raised-ink: transparent;
  --raised-lift: 0px;
  --press-wash: var(--soft);
  --press-wash-weight: 100%;
  --press-shift: none;
  --press-down: none;
  --hover: var(--soft);
  --well: var(--surface);
  --hollow: none;
}

}
@layer components {
/* Shared paint. Existing class names are aliases for string-rendered pages;
   new parts compose Surface. Skins change tokens, never this list of parts. */
:where(.Surface, .Surface_Raised, .Surface_Press, .Card, .Button, .Menu, .Menu_Summary, .Empty, .Drop_Zone, a.Chip) {
  --pencil: initial;
  --pencil-style: initial;
  position: relative;
}
:where(.Surface, .Surface_Raised, .Surface_Press, .Card, .Button, .Menu, .Menu_Summary, .Empty, .Drop_Zone, a.Chip)::after {
  content: var(--surface-outline, none);
  position: absolute;
  inset: -1px;
  border: var(--edge-width) var(--pencil-style, solid) var(--pencil,
    var(--edge-color));
  border-radius: inherit;
  filter: var(--edge-filter);
  pointer-events: none;
}
:is(.Surface, .Surface_Raised, .Surface_Press, .Card, .Button, .Menu)::after {
  content: '';
}
:is(.Surface, .Surface_Raised, .Surface_Press) {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: inherit;
}
:is(.Surface_Raised, .Surface_Press, .Menu, .Menu_Summary, .Button, .Card-button) {
  --lift: var(--raised-lift);
}
:is(.Surface_Raised, .Surface_Press) {
  box-shadow: var(--raised-shadow);
}
/* What it is raised off: a copy of its own shape --lift down and right,
   seen only past its edge. That is a hard box-shadow, which a browser draws
   outside the box's own corners whatever their radius (a pill, a circle),
   inked in --raised-ink and seen through --raised-hatch's lines. The hatch
   is laid from where the shadow is, so it stays put as --lift changes. */
:is(.Surface_Raised, .Surface_Press, .Menu, .Menu_Summary, .Button, .Card-button)::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--lift) var(--lift) 0 var(--raised-ink);
  mask: var(--raised-hatch) var(--lift) var(--lift) no-clip;
  pointer-events: none;
}
:is(.Surface_Press) {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  :where(.Surface_Press, .Button, .Card-button, .Menu_Summary):hover:not(:disabled, [aria-pressed='true']) {
    --lift: var(--raised-hover-lift, var(--raised-lift));
    transform: var(--press-shift);
    background: color-mix(in srgb, var(--button-fill, var(--card)),
      var(--press-wash) var(--press-wash-weight));
  }
}
:where(.Surface_Press, .Button, .Card-button, .Menu_Summary):active:not(:disabled),
:is(.Surface_Press, .Button)[aria-pressed='true'],
:is(.Menu_Fold)[open] > :is(.Menu_Summary) {
  --lift: var(--raised-down-lift, var(--raised-lift));
  transform: var(--press-down);
}
:is(.Surface_Press, .Button):disabled {
  --lift: 0px;
  opacity: .55;
  cursor: not-allowed;
}
:where(.Surface_Well, .Field) {
  border: var(--edge-width) solid var(--edge-color);
  border-radius: var(--radius);
  background: var(--well);
  box-shadow: var(--hollow);
  color: var(--text);
  font: inherit;
  filter: var(--well-filter);
}
:where(.Surface_Well, .Field):focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--hollow);
}

/* Pencil paint for every surface, independent of the parts a page wears. */
:root {
  /* The tile carries its own opacity so it can also paint scroll backgrounds. */
  --grain: url(_ui/packages/ui/pencil/paper.debbcf4ec1.webp);
  --grain-opacity: 1;
  /* A surface's fill: its colour with the paper's texture over it, as one
     background. Every surface fills with one of these, and whatever opens
     into a surface (a sidebar's current tab, a lit tab, a gap in an edge)
     fills with that surface's, so the two cannot differ. A part never pairs
     a colour with the grain itself. --texture is none where the grain lies
     over the whole page, and the grain where each pane paints its own. */
  --texture: none;
  --bg-fill: var(--texture), var(--bg);
  --surface-fill: var(--texture), var(--surface);
  --card-fill: var(--texture), var(--card);
  --popover-background: var(--bg-fill);
  --drawn: url(_ui/packages/ui/pencil/pencil.f1dbcffd8c.svg#line);
  --surface-outline: '';
  --surface-border: transparent;
  --edge-width: var(--stroke);
  --edge-color: var(--graphite);
  --edge-filter: var(--drawn);
  --well-filter: url(_ui/packages/ui/pencil/pencil.f1dbcffd8c.svg#edge);
  --raised-shadow: none;
  --raised-hatch: var(--hatch); /* its lines, as a mask */
  --raised-ink: var(--text); /* what they are drawn in */
  --raised-lift: 4px;
  --raised-hover-lift: 5px;
  --raised-down-lift: 1.5px;
  --press-shift: translate(-1px, -1px);
  --press-down: translate(2.5px, 2.5px);
  --press-wash: white;
  --press-wash-weight: 10%;
  --hover: var(--well);

  --graphite: color-mix(in srgb, var(--text) 88%, transparent);
  --stroke: 1.5px; /* the weight of a drawn line */
  --lift: 4px; /* how far what can be pressed sits off its hatch */
  --hatch: repeating-linear-gradient(-45deg, var(--graphite) 0 1px,
    transparent 1px 3px);
  /* A drawn rule is a line through the middle of a box --room taller on
     each side, so the pencil's wander stays inside what it draws. */
  --room: 4px;
  --rule: linear-gradient(var(--graphite) 0 0) center / 100% var(--stroke)
    no-repeat;
  /* A well: a fill a little darker than the paper, pressed in. */
  --well: light-dark(
    color-mix(in srgb, var(--card), var(--border) 45%),
    color-mix(in srgb, var(--card), var(--bg) 65%)
  );
  --shade: light-dark(
    color-mix(in srgb, #523828 24%, transparent),
    color-mix(in srgb, #1d1714 70%, transparent)
  ); /* coffee; soot: what a well's hollow is */
  --hollow: inset 0 2px 4px var(--shade); /* how deep a well sits */
  /* How tall a press or a field stands; a part that holds a row of them
     smaller re-points it. */
  --control-height: 2.25rem;
}
@supports not (color: light-dark(#000, #fff)) {
:root {
  --well: color-mix(in srgb, var(--card), var(--border) 45%);
  --shade: color-mix(in srgb, #523828 24%, transparent);
}
@media (prefers-color-scheme: dark) {
:root {
  --well: color-mix(in srgb, var(--card), var(--bg) 65%);
  --shade: color-mix(in srgb, #1d1714 70%, transparent);
}
}
}

/* In an active Shell the panes scroll apart, so the grain cannot lie over the page:
   each surface paints it, scrolling with what it holds (`local`). Panes beside
   each other then meet in two tiles that do not line up, which noise hides,
   but never in two tones, which it does not: a tab opening into a pane is
   attached to itself, so it keeps the pane's fill however either scrolls.
   An inert view can warm its Shell while the page still wears the overlay. */
:root:has(.Shell:not(:where([inert], [inert] *))) {
  --texture: var(--grain) 0 0 / 256px local;
}
:root:has(.Shell:not(:where([inert], [inert] *)))::after {
  content: none;
}

}
@layer base {
/* Document defaults. Surface.css supplies the skin's shared paint. */
:where(body) {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--size) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

:where([hidden]) {
  display: none !important;
}

/* A control is pressed, not read: clicking or tapping one never selects its
   words. Links in prose, addresses, numbers and code stay selectable. */
:where(button, summary, label, select, [role='button'], [role='tab'], [role='menuitem'], .Button) {
  -webkit-user-select: none;
  user-select: none;
}

/* The grain: one tile of paper, speckled in ink and cream, over the whole
   page and scrolling with it. It is drawn above everything, faint enough to
   read through, and never takes a press. The tile is --grain, at
   --grain-opacity: each skin that lays this names its own (paper/base.css,
   pencil/base.css). */
:where(html) {
  position: relative;
  min-height: 100%;
}
:where(html)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2147483647;
  background: var(--grain) 0 0 / 256px;
  opacity: var(--grain-opacity);
  pointer-events: none;
}

}
@layer components {
/* Pencil's press, yaks.app's: a flat fill on a hatch, the hatch what an
   offset copy of it would show past its right and bottom edges, and its
   outline drawn in pencil on ::after (--pencil, --pencil-style: each part
   starts from a solid graphite line, so none takes the line of a box it sits
   in). A hover lifts the button off the hatch and a press slides it onto it;
   the hatch stays put. It stands --control-height tall, as a field does,
   padded by --control-pad-inline, which a part that holds a row of them
   re-points.

   Plain is paper; -go, the one to press, the accent; -quiet steps back
   beside another and reads as a link, with no fill, outline or hatch.
   -danger says its word in the negative, and -add, which offers what is not
   there yet, is muted and its line dashed. The fill and the ink ride
   --button-fill and --button-ink, so a part can re-point them. */
.Button {
  box-sizing: border-box;
  height: var(--control-height);
  padding: 0 var(--control-pad-inline, .75rem);
  font: inherit;
  line-height: 1.25;
  vertical-align: middle;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: .35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--button-fill, var(--card));
  color: var(--button-ink, var(--text));
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.Button-go {
  --button-fill: var(--accent);
  --button-ink: var(--bg);
}
.Button-quiet {
  --button-ink: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .Button-quiet:hover:not(:disabled, [aria-pressed='true']) {
    --lift: 0px;
    padding: 0;
    background: none;
    font-weight: inherit;
    text-decoration: underline;
    transform: none;
  }
}
.Button-quiet,
.Button-quiet:active:not(:disabled) {
  --lift: 0px;
  padding: 0;
  background: none;
  font-weight: inherit;
  text-decoration: underline;
  transform: none;
}
.Button-quiet::before,
.Button-quiet::after {
  content: none;
}
.Button-add {
  --pencil-style: dashed;
  --button-ink: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .Button-add:hover {
    --button-ink: var(--text);
  }
}
.Button-danger {
  --button-ink: var(--negative);
}
.Button-go.Button-danger {
  --button-fill: var(--negative);
  --button-ink: var(--bg);
}

}
@layer components {
/* Pencil's field is a well: darker than the paper, a little hollow, its edge
   drawn in pencil, as tall as a press beside it (--control-height). The
   pencil keeps what lies inside the edge as it is, so what is typed stays
   crisp. Focus draws the edge in the accent. */
.Field {
  box-sizing: border-box;
  height: var(--control-height);
  min-width: 0;
  max-width: 100%;
  padding: 0 var(--control-pad-inline, .75rem);
  color: var(--text);
  font: inherit;
  line-height: 1.25;
  vertical-align: middle;
}
select.Field {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  select.Field:not(:disabled):hover {
    border-color: var(--accent);
  }
}
/* A textarea fills its available width and grows from two controls' height
   to its height limit, where it starts to scroll. */
textarea.Field {
  field-sizing: content;
  width: 100%;
  height: auto;
  min-height: calc(var(--control-height) * 2);
  max-height: 60vh;
  overflow-y: auto;
  padding-block: .5rem;
  resize: none;
  vertical-align: top;
}
.Field:disabled {
  opacity: .55;
  cursor: not-allowed;
}
/* A bare field belongs inside a part already drawn: no well, no edge. */
.Field-bare,
.Field-bare:focus-visible {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
}

.Field {
  text-align: left;
}

}
@layer components {
/* A list of choices: a raised box of rows, each a word in the code face and a
   muted note after it, the picked one lit. Where it floats is its host's. */
.Choices {
  min-width: min(18rem, 80vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  box-shadow: var(--shadow);
}
.Choices_Item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  padding: 2px var(--half-gap);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .Choices_Item:hover {
    background: color-mix(in srgb, var(--soft) 50%, transparent);
  }
}
.Choices_Item-hover {
  background: color-mix(in srgb, var(--soft) 50%, transparent);
}
.Choices_Item-on {
  background: var(--soft);
}
.Choices_Text {
  font-family: var(--mono);
  font-size: var(--small);
}
.Choices_Note {
  color: var(--muted);
  font-size: var(--small);
}

}
@layer components {
/* The pending changes stay within the viewport, above its safe area. */
.Save {
  position: fixed;
  z-index: 110;
  inset-inline: var(--gap);
  bottom: calc(var(--gap) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--half-gap) var(--gap);
  width: fit-content;
  max-width: calc(100% - 2 * var(--gap));
  margin-inline: auto;
  padding: var(--half-gap) var(--gap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface, var(--card));
  color: var(--text);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--text) 15%, transparent);
}
.Save-sample {
  position: static;
}
.Save-inline {
  position: static;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.Save-inline > .Save_Actions {
  order: -1;
}
.Save-inline > .Save_Count:empty {
  display: none;
}
.Save_Count {
  flex: 1 1 auto;
}
.Save_Actions {
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.Save_Field {
  min-width: 0;
}
.Save_Field > :is(.Form_Label, .Save_Label)::after {
  content: '';
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-inline-start: .55em;
  vertical-align: .1em;
  border-radius: 50%;
  background: var(--accent);
  filter: var(--drawn, none);
  opacity: 0;
}
.Save_Field-changed > :is(.Form_Label, .Save_Label)::after {
  opacity: 1;
}
.Save_Notice {
  flex-basis: 100%;
  margin: 0;
  color: var(--negative);
  overflow-wrap: anywhere;
}
/* A save that worked says so, then fades before the bar goes. */
.Save-done {
  animation: Save-fade 2.5s ease-in forwards;
}
.Save-done .Save_Count {
  color: var(--positive, var(--text));
}
@keyframes Save-fade {
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .Save-done {
    animation: none;
  }
}
body:has(.Save:not(.Save-sample, .Save-inline)) {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
}

}
@layer components {
/* Pencil's chip, yaks.app's: a word on a card, edged in a hairline. A link
   chip is underlined in the accent and drawn in pencil (on ::after, from a
   solid graphite line, as a press is), and a hover washes it in the accent;
   pressed, not read, its words never select. -quiet is a label on the floor
   (the address in a window bar), -code words to copy, in the mono face; -accent a label in the accent, on a
   place the accent tints. A
   hue (-0 … -5) inks and washes it in its colour, a link too; a ghost is
   dim, its edge dashed. What a variant changes rides a --chip-* property. */
.Chip {
  display: inline-block;
  padding: var(--chip-pad, .3rem .75rem);
  border: var(--chip-edge, 1px solid var(--border));
  border-radius: var(--radius);
  background: var(--chip-fill, var(--card));
  color: var(--chip-ink, var(--chip-hue, var(--text)));
  font-family: var(--chip-font, inherit);
  font-size: var(--chip-size, var(--small));
  font-weight: var(--chip-weight, 600);
  line-height: 1.4;
  vertical-align: middle;
  text-decoration: none;
}
a.Chip {
  --chip-ink: var(--chip-hue, var(--accent));
  --chip-edge: 1px solid transparent;
  --chip-weight: 700;
  position: relative;
  text-decoration: underline;
  text-underline-offset: .18em;
}
:where(a.Chip) {
  -webkit-user-select: none;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  a.Chip:hover {
    --pencil: var(--accent);
    --chip-fill: color-mix(in srgb, var(--accent) 7%, var(--card));
  }
}
a.Chip:active {
  transform: translate(1px, 1px);
}
a.Chip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.Chip_Tag {
  margin-left: .5rem;
  color: var(--muted);
  font-weight: 400;
  font-size: .85em;
}
.Chip-quiet {
  --chip-fill: var(--bg);
  --chip-ink: var(--muted);
  --chip-edge: 0;
  --chip-pad: 0.2rem 0.9rem;
  --chip-size: var(--small);
  --chip-weight: 600;
}
.Chip-code {
  --chip-pad: .2rem .5rem;
  --chip-fill: var(--bg);
  --chip-edge: 0;
  --chip-font: var(--mono);
  --chip-size: var(--small);
}
.Chip-accent {
  --chip-hue: var(--accent);
  --chip-fill: color-mix(in srgb, var(--accent) 22%, var(--bg));
  --chip-edge: 1px solid var(--accent);
  --chip-weight: 700;
}
.Chip-0 {
  --chip-hue: var(--hue-0);
}
.Chip-1 {
  --chip-hue: var(--hue-1);
}
.Chip-2 {
  --chip-hue: var(--hue-2);
}
.Chip-3 {
  --chip-hue: var(--hue-3);
}
.Chip-4 {
  --chip-hue: var(--hue-4);
}
.Chip-5 {
  --chip-hue: var(--hue-5);
}
:is(.Chip-0, .Chip-1, .Chip-2, .Chip-3, .Chip-4, .Chip-5) {
  --chip-fill: color-mix(in srgb, var(--chip-hue) 12%, var(--card));
}
.Chip-ghost {
  --chip-ink: var(--dim);
  --chip-fill: none;
  --chip-edge: 1px dashed var(--border2);
}

}
@layer components {
/* Pencil's row of chips, yaks.app's: a handful of notes, wrapping. */
.Chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

}
@layer components {
/* An address: muted, the name in it the text's own ink and weighted. */
.Address {
  color: var(--muted);
  font-weight: normal;
}
.Address_Name {
  color: var(--text);
  font-weight: 600;
}

/* Pencil's address, laid over the kit's: the name in it in yaks.app's
   heaviest weight. */
.Address_Name {
  font-weight: 800;
}

}
@layer components {
/* A list of rows, close together. A nested list hangs off a rule. */
.Rows {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.Rows-nested {
  margin-left: var(--half-gap);
  padding-left: var(--half-gap);
  border-left: 1px solid var(--border2);
}
.Rows_Item {
  min-width: 0;
}
.Rows_More {
  font-size: var(--small);
  color: var(--muted);
}

/* What is kept but no longer live: every word in it muted, links too. */
.Rows-quiet {
  --text: var(--muted);
  --link: var(--muted);
}
.Rows-quiet,
.Rows-quiet :is(.Rows_Link, .Tile_Title, .Body) {
  color: var(--muted);
}

/* A feed of unlike things: each entry has its own edge and breathing room. */
.Rows-ruled > .Rows_Item {
  padding: var(--half-gap) 0;
  border-bottom: 1px solid var(--border2);
}
.Rows_Kind {
  font-size: var(--small);
  color: var(--muted);
}

/* An entry's whole surface opens it, including a renderer's secondary text. */
.Rows_Link {
  display: block;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  border-radius: var(--radius);
}
@media (hover: hover) and (pointer: fine) {
  .Rows_Link:hover {
    background: var(--soft);
  }
}
.Rows_Link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* A row that opens its page: the whole of it lit under the pointer, and
   what folds under it at the end of its second line, across the row once
   open. */
.Rows > .Rows_Item:has(> .Rows_Link) {
  display: grid;
  padding-block: 0;
}
.Rows_Item > .Rows_Link {
  grid-area: 1 / 1;
  display: grid;
  gap: 2px;
  margin-inline: -.6rem;
  padding: .5rem .6rem;
}
.Rows_Link:has(+ .More) > .Rows_Meta {
  padding-right: 4rem;
}
.Rows_Item > .Rows_Link + .More {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: end;
  padding-bottom: .5rem;
}
.Rows_Item > .Rows_Link + .More[open] {
  grid-area: 2 / 1;
  justify-self: stretch;
}

/* A list put in order by dragging its rows. A row that can be picked up says
   so under the pointer, and a line says where a dragged one would land. */
.Rows-ordered > .Rows_Item[draggable='true'] {
  cursor: grab;
}
.Rows_Item-before {
  box-shadow: 0 -2px 0 var(--accent);
}
.Rows_Item-after {
  box-shadow: 0 2px 0 var(--accent);
}

/* A row that opens in place: a glyph pressed beside what it says, and, while
   open, what it opens, beneath it, hung off a rule. */
.Rows_Line {
  display: flex;
  align-items: center;
  gap: var(--half-gap);
  min-width: 0;
}
.Rows_Line > :last-child {
  flex: 1;
  min-width: 0;
}
.Rows_Toggle {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0 4px;
  min-height: var(--tap);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .Rows_Toggle:hover {
    color: var(--text);
    background: var(--soft);
  }
}
.Rows_Toggle:focus-visible {
  outline: 2px solid var(--accent);
}
.Rows_Toggle:disabled {
  visibility: hidden;
}
/* Beneath the row, across it, even in a row of like things that lays its
   parts side by side. */
.Rows_Detail {
  display: grid;
  flex-basis: 100%;
  gap: var(--half-gap);
  margin: var(--half-gap) 0 var(--gap) var(--gap);
  padding-left: var(--gap);
  border-left: 1px solid var(--border2);
  min-width: 0;
}

/* A row of like things: a thing's name over what describes it, and what
   acts on it at the far side, under it where there is no room beside. */
.Rows_Item:where(:has(> .Rows_Main)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--half-gap) var(--gap);
}
.Rows_Main {
  display: grid;
  flex: 1 1 12rem;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.Rows_Name {
  color: var(--text);
  font-weight: 700;
}
/* A name or what describes it kept to one line, cut short where it runs
   past. */
.Rows_Name-line,
.Rows_Meta-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.Rows_Meta {
  color: var(--muted);
  font-size: var(--small);
}
.Rows_Actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--half-gap);
  margin-left: auto;
}
.Rows_Form {
  display: contents;
}

/* A row with an action at the end and an optional full-width detail. */
.Rows_Item.Rows_Item-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0;
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}
.Rows_Detail-inset {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--gap);
  border: 0;
  background: var(--card);
}
.Rows_Note {
  color: var(--muted);
  margin: 0;
  padding-block: var(--half-gap);
  font-size: inherit;
  font-weight: normal;
}

/* A row that opens its thing: its picture before its name, and its name a
   link whose target is the whole row, lit under the pointer. What acts on it
   sits above that target, so each action is pressed on its own. */
.Rows_Item:has(.Rows_Open) {
  position: relative;
  flex-wrap: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .Rows_Item:has(.Rows_Open):hover {
    background: var(--hover, var(--soft));
  }
}
.Rows_Open {
  color: inherit;
  text-decoration: none;
}
.Rows_Open::after {
  content: '';
  position: absolute;
  inset: 0;
}
.Rows_Open:focus-visible {
  outline: none;
}
.Rows_Open:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.Rows_Item:has(.Rows_Open) .Rows_Actions {
  position: relative;
  flex-wrap: nowrap;
}
.Rows_Mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) + 2px);
  object-fit: cover;
}
.Rows_Item[hidden] {
  display: none;
}

/* Like things in rows, hairlines between them: each row its name and what
   describes it on the left, what acts on it on the right, its controls a
   size down. The kit's rows sit a pixel apart; these meet at the hairline.
   In a card the rows run to its edges (pencil/Card.css). */
.Rows {
  gap: 0;
  min-width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.Rows_Item {
  --control-height: 2rem;
  --control-pad-inline: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: auto;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.Rows_Item:first-child {
  padding-top: 0;
  border-top: 0;
}
.Rows_Item:last-child {
  padding-bottom: 0;
}
.Rows_Main {
  gap: 0.15rem;
  line-height: 1.45;
}
.Rows_Meta {
  font-size: var(--fine, var(--small));
}
.Rows_Actions {
  gap: 0.5rem;
  margin: 0 0 0 auto;
}
.Rows_Actions .Button {
  font-size: var(--fine, var(--small));
}
/* A row that opens its thing is lit edge to edge, so its first and last
   rows keep their room above and below. */
.Rows_Item:has(.Rows_Open) {
  padding-block: 0.6rem;
}

}
@layer components {
/* A card: one surface holding related things, flat on the page. Depth
   belongs to what is pressed, so a card casts no shadow; its pencil box is
   what draws it. What it holds stacks a gap apart, never by margins of its
   own, and its head, when it has one, runs edge to edge across the top,
   ruled off under it: what it is on the left, its actions on the right.

   Its box is drawn as everything outlined is (base.css). A page's own
   surface is drawn by being a card. */
.Card {
  --pad-block: 1rem;
  --pad-inline: 1.25rem;
  --card-gap: 0.75rem;
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--card-gap);
  min-width: 0;
  padding: var(--pad-block) var(--pad-inline);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card-fill);
  overflow-wrap: break-word;
}
.Card > * {
  min-width: 0;
  margin: 0;
}

/* The head: a mark, the title, how it stands, and then whatever acts on
   the whole card, pushed to the right. Its controls are a size down, so a
   wide head keeps them all on one line. A narrow one, a phone's, wraps
   rather than squeezing the title: how it stands goes under the title,
   and the actions under that, still at the right. */
.Card_Head {
  --control-height: 2rem;
  --control-pad-inline: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  position: relative;
  margin: calc(-1 * var(--pad-block)) calc(-1 * var(--pad-inline)) 0;
  padding: 0.5rem var(--pad-inline);
}
/* The rule under it meets the card's sides. */
.Card_Head::after {
  content: '';
  position: absolute;
  inset: auto -1px calc(-1 * var(--room));
  height: calc(var(--stroke) + 2 * var(--room));
  background: var(--rule);
  filter: var(--drawn);
}
.Card_Head:last-child {
  margin-bottom: calc(-1 * var(--pad-block));
}
.Card_Head:last-child::after {
  content: none;
}
.Card_Title {
  flex: 1 1 10rem;
  min-width: 0;
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.Card_Link {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .Card_Link:hover {
    color: var(--accent);
    text-decoration: underline;
  }
}
.Card_Mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}
.Card_Actions {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.5rem;
  min-width: 0;
}
.Card_Form {
  display: contents;
}
.Card_Actions .Button {
  font-size: var(--fine, var(--small));
}

/* What the card is, in a line, under its head. */
.Card_Sub {
  color: var(--muted);
  font-size: var(--small);
}

/* Rows in a card run to its edges, the hairlines between them meeting its
   sides. */
.Card > .Rows {
  margin-inline: calc(-1 * var(--pad-inline));
}
.Card > .Rows > .Rows_Item {
  padding-inline: var(--pad-inline);
}

/* A whole card can be pressed: its mark above its name and summary. */
.Card-button {
  --pad-block: .75rem;
  --pad-inline: .875rem;
  --card-gap: .5rem;
  justify-items: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.Card-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.Card-button .Card_Sub {
  line-height: 1.35;
}
.Card-button .Card_Mark {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.Card-danger .Card_Title {
  color: var(--negative);
}
.Card-accent {
  border-color: var(--accent);
}

.Card[data-compact] {
  --pad-block: .5rem;
  --pad-inline: .5rem;
}

}
@layer components {
/* A titled section: a title line (words, count, note), what it is about,
   then its body. Sections stack with a gap between them; the page decides
   the rest. */
.Section {
  display: grid;
  gap: var(--half-gap);
  min-width: 0;
}
.Section + .Section {
  margin-top: calc(var(--gap) * 2);
}
.Section_Title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--half-gap);
  min-width: 0;
  font-size: var(--h2);
  font-weight: 600;
  color: var(--heading);
}
.Section_Count,
.Section_Note {
  font-weight: normal;
  font-size: var(--small);
  color: var(--muted);
}
.Section_Count {
  font-variant-numeric: tabular-nums;
}
.Section_Note-refused {
  color: var(--negative);
}
.Section_Sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--small);
  max-width: var(--measure);
}

.Section-compact {
  display: block;
}
.Section-compact + .Section-compact {
  margin-top: 0;
}
.Section_Title-compact {
  display: block;
  font-size: 16px;
  font-weight: bold;
  padding-block: var(--gap) var(--half-gap);
}

}
@layer components {
/* What a page opens over itself, sliding in from its edge at a phone's
   width: up from the foot, or in from the left or right. Shut, it rests off
   that edge; it moves there and back on the compositor (translate alone),
   quick and easing out as it opens, easing in as it leaves, so closing plays
   the opening backwards. Its display (and a dialog's place on the top layer)
   holds until it has left. A page that lays it over itself does so at least
   at this width, by its own position, and shows it while it is open.
   A side layer's edge toward the page casts a soft shadow, and nothing dims
   the page behind it.
   Layer-under turns the motion around: the layer stands still at the left,
   under the page, and the page (Layer_Cover, after it) slides right by
   --layer-width to uncover it, then back over it. The cover comes after the
   layer, so it paints over it, and needs a background of its own. Its edge
   casts the shadow, and a press on what still shows of it (Layer_Shut)
   closes the layer. */
.Layer_Shut {
  display: none;
}
@media (max-width: 700px) {
  .Layer,
  .Layer_Cover {
    --layer-shadow: 1.5rem color-mix(in srgb, var(--text) 18%, transparent);
  }
  .Layer-left {
    box-shadow: .25rem 0 var(--layer-shadow);
  }
  .Layer-right {
    box-shadow: -.25rem 0 var(--layer-shadow);
  }
  .Layer[data-swipe],
  .Layer_Shut {
    touch-action: pan-y pinch-zoom;
  }
  .Layer-under {
    box-shadow: none;
  }
  .Layer-under ~ .Layer_Cover {
    position: relative;
    box-shadow: -.25rem 0 var(--layer-shadow);
  }
  .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover {
    translate: var(--layer-width) 0;
  }
  .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover .Layer_Shut {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 100;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .Layer {
    --layer-off: 0 100%;
    transition: translate .24s cubic-bezier(.2, .8, .2, 1),
      display .24s allow-discrete, overlay .24s allow-discrete;
  }
  .Layer-left {
    --layer-off: -100% 0;
  }
  .Layer-right {
    --layer-off: 100% 0;
  }
  .Layer-under {
    --layer-off: none;
  }
  .Layer:not(:target, :has(:target), [open], :popover-open) {
    translate: var(--layer-off);
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.8, 0, .8, .2);
  }
  @starting-style {
    .Layer {
      translate: var(--layer-off);
    }
  }
  .Layer-under ~ .Layer_Cover {
    transition: translate .2s cubic-bezier(.8, 0, .8, .2);
  }
  .Layer-under:is(:target, :has(:target)) ~ .Layer_Cover {
    transition: translate .24s cubic-bezier(.2, .8, .2, 1);
  }
}

}
@layer components {
/* The frame owns scrolling, so a long card fits a phone and its backdrop
   stays behind it. The open attribute also works before script runs. */
.Modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: var(--gap);
  border: 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.Modal[open],
.Modal:popover-open {
  display: grid;
  align-items: start;
  justify-items: center;
}
.Modal::backdrop {
  background: transparent;
}
.Modal_Backdrop {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.Modal_Close {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.Modal_Body {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 42rem);
  margin-block: auto;
}
/* A body kept in the dialog while another is shown. */
.Modal_Body[hidden] {
  display: none;
}
/* The pane under the card's head flows, so the small card of actions floats
   at its top right and what the dialog says wraps beside and under it. */
.Modal_Main {
  display: flow-root;
}
.Modal_Main > * {
  margin: 0;
}
.Modal_Main > * + * {
  margin-top: var(--card-gap);
}
.Modal_Actions {
  float: right;
  display: grid;
  gap: var(--half-gap);
  justify-items: stretch;
  width: min(100%, 12rem);
  box-sizing: border-box;
  margin: 0 0 var(--half-gap) var(--gap);
  padding: var(--half-gap);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-size: var(--small);
}
.Modal_Main > .Modal_Actions + * {
  margin-top: 0;
}
.Modal_Actions .Button {
  justify-content: center;
}
@media (max-width: 40rem) {
  .Modal_Actions {
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    margin: 0 0 var(--card-gap);
  }
}

}
@layer components {
/* What stays one press away over every page: the launcher pinned to the
   window's foot at its right, a quiet toast above it, and the panel it opens
   floating over the page's corner, a card wide, above the launcher. At a
   phone's width the panel takes the screen (a Layer, sliding up from the
   foot), as tall as what a person sees, and the launcher rides the page's bar instead (Launcher-bar). */
.Dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: .5rem;
  pointer-events: none;
}
.Dock > * {
  pointer-events: auto;
}
.Dock_Launcher {
  gap: .5rem;
  border-radius: 99px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.Dock_Launcher-bar {
  position: relative;
  background: none;
  box-shadow: none;
}
/* A launcher in a bar says someone is in with a dot on its glyph. */
.Dock_Launcher-bar > .Dock_Here {
  position: absolute;
  left: 1.55rem;
  top: .35rem;
  box-shadow: 0 0 0 2px var(--bg);
}
.Dock_Presence.Dot-caution {
  --dot: var(--presence-away, var(--caution));
}
.Dock_Presence.Dot-offline {
  --dot: var(--presence-offline, var(--dim));
}
.Dock_Faces {
  display: inline-flex;
}
.Dock_Faces:empty {
  display: none;
}
.Dock_Face.Identity_Avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--card);
}
.Dock_Face + .Dock_Face {
  margin-left: -.35rem;
}
.Dock_Word {
  white-space: nowrap;
}
/* It stands where it opens while shut too, so it leaves from there; only its
   display waits on its being open. */
.Dock_Panel {
  position: fixed;
  inset: auto 1rem 4.25rem auto;
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(23rem, 100vw - 2rem);
  height: min(38rem, 100dvh - 6rem);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border2);
  border-radius: calc(var(--radius) * 3);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.Dock_Panel:popover-open {
  display: grid;
}
.Dock_Head {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .5rem .5rem .5rem .75rem;
  border-bottom: 1px solid var(--border2);
}
.Dock_Title {
  flex: 1;
  min-width: 0;
}
.Dock_Body {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: .75rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.Dock_Foot {
  display: grid;
  gap: .5rem;
  padding: .5rem .75rem .75rem;
  border-top: 1px solid var(--border2);
}
.Dock_Foot:empty {
  display: none;
}
.Dock_Toast {
  display: block;
  max-width: min(20rem, 100vw - 2rem);
  padding: .5rem .75rem;
  border: 1px solid var(--border2);
  border-radius: calc(var(--radius) * 3);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.Dock_Toast[hidden] {
  display: none;
}
@media (min-width: 701px) {
  .Dock_Launcher-bar {
    display: none;
  }
}
@media (max-width: 700px) {
  .Dock {
    right: .75rem;
    left: .75rem;
    top: calc(3.5rem + env(safe-area-inset-top));
    bottom: auto;
    justify-items: stretch;
  }
  .Dock > .Dock_Launcher {
    display: none;
  }
  .Dock_Toast {
    max-width: none;
  }
  /* As tall as what a person sees: --viewport-height while a phone's
     keyboard is up (@yaks/ux's fit holds it), so the box sits on the
     keyboard, which also covers the home bar's inset. */
  .Dock_Panel {
    inset: 0 0 auto;
    width: 100%;
    height: var(--viewport-height, 100dvh);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .Dock_Panel:has(:is(input, textarea):focus) {
    padding-bottom: 0;
  }
}

}
@layer components {
/* A pip: a disc whose shape says a state and whose tone colours it. Shape
   and tone are separate variants, so a state is at most one of each. The
   glyphs are pseudo-elements drawn in floor ink, so they read as cutouts. */
.Dot {
  --dot: var(--dim);
  display: inline-block;
  position: relative;
  flex: none;
  width: 0.72em; /* em: the pip rides its line's font */
  height: 0.72em;
  border-radius: 50%;
  border: max(1px, 0.09em) solid var(--dot);
  background: var(--dot);
}
.Dot::before,
.Dot::after {
  position: absolute;
}

/* The shapes. */
.Dot-ring {
  background: transparent;
}
.Dot-dashed {
  background: transparent;
  border-style: dashed;
}
.Dot-half {
  background: linear-gradient(90deg, var(--dot) 50%, transparent 0);
}
/* Something happening right now: the full disc breathes. The breath is drawn
   inside the pip's own box, in a padding as wide as the breath reaches, so no
   container's overflow cuts it off. It is the only shape that draws with
   both pseudo-elements free, so the breath is the ::after. */
.Dot-pulse {
  --breath: 0.3em;
  box-sizing: content-box;
  padding: var(--breath);
  border: 0;
  background-clip: content-box;
}
.Dot-pulse::after {
  content: '';
  inset: var(--breath);
  border-radius: 50%;
  animation: DotPulse 2.2s ease-out infinite;
}
@keyframes DotPulse {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 55%, transparent);
  }
  to {
    box-shadow: 0 0 0 var(--breath) color-mix(in srgb, var(--dot) 0%,
      transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .Dot-pulse::after {
    animation: none; /* the full disc still says it; only the breath goes */
  }
}
.Dot-check::after {
  content: '';
  left: 50%;
  top: 50%;
  width: 0.3em;
  height: 0.16em;
  border-left: 0.09em solid var(--bg);
  border-bottom: 0.09em solid var(--bg);
  transform: translate(-50%, -65%) rotate(-45deg);
}
.Dot-cross::before,
.Dot-cross::after {
  content: '';
  left: 50%;
  top: 50%;
  width: 0.09em;
  height: 0.38em;
  border-radius: 0.04em;
  background: var(--bg);
}
.Dot-cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.Dot-cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.Dot-alert::before {
  content: '';
  left: 50%;
  top: 0.1em;
  width: 0.09em;
  height: 0.24em;
  border-radius: 0.04em;
  translate: -50%;
  background: var(--bg);
}
.Dot-alert::after {
  content: '';
  left: 50%;
  bottom: 0.08em;
  width: 0.1em;
  height: 0.1em;
  border-radius: 50%;
  translate: -50%;
  background: var(--bg);
}

/* The tones. */
.Dot-info {
  --dot: var(--info);
}
/* Under way: a theme may paint the pip apart from the text that says it
   (linen's yellow is never text). */
.Dot-active {
  --dot: var(--dot-active, var(--active));
}
.Dot-positive {
  --dot: var(--positive);
}
.Dot-negative {
  --dot: var(--negative);
}
.Dot-caution {
  --dot: var(--caution);
}
.Dot-accent {
  --dot: var(--accent);
}
.Dot-special {
  --dot: var(--special);
}

}
@layer components {
/* How something stands: a word beside a dot. The word describes, so it is
   small and muted; the dot's tone says the state. */
.State {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--muted);
  font-size: var(--small);
  line-height: 1.3;
}

/* How something stands, as a word in its role's colour beside a dot in its
   tone: -positive when it works, -negative when it needs the person. What
   works is said in the accent, the colour of what is lit. */
.State {
  gap: 0.35rem;
  color: var(--state, var(--muted));
  font-size: var(--fine, var(--small));
  font-weight: 700;
}
.State > .Dot {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
}
.State-positive,
.State-accent {
  --state: var(--accent);
}
.State-negative {
  --state: var(--negative);
}
.State-info {
  --state: var(--info);
}
.State-active {
  --state: var(--active);
}
.State-caution {
  --state: var(--caution);
}
.State-special {
  --state: var(--special);
}

}
@layer components {
/* How many wait: a number on a pill in the colour of what needs the person,
   as tall as the line it sits in. */
.Badge {
  display: inline-block;
  min-width: 1.3em;
  padding: 0 .35em;
  border-radius: 99px;
  background: var(--negative);
  color: var(--bg);
  font-size: var(--small);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Pressed, it opens what waits. */
:is(button, a).Badge {
  border: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  :is(button, a).Badge:hover {
    background: color-mix(in srgb, var(--negative), var(--text) 18%);
  }
}
:is(button, a).Badge:focus-visible {
  outline: 2px solid var(--negative);
  outline-offset: 2px;
}
.Badge[hidden] {
  display: none;
}
/* How many there are: the number alone, in the muted colour, no pill. */
.Badge-quiet {
  background: none;
  color: var(--muted);
  font-weight: 500;
}

}
@layer components {
/* A heading over a run of cards: what they share, small and muted, so the
   cards' own titles lead. */
.Group {
  margin: 0;
  color: var(--muted);
  font-size: var(--small);
  font-weight: 700;
}

}
@layer components {
/* Pencil's form: yaks.app's spacing, its fields at most 34rem wide and their
   hints a step under the small type (--fine, yaks.app's). */
.Form {
  display: grid;
  gap: .875rem;
  margin: 0;
}
.Form_Field {
  display: grid;
  gap: .35rem;
  min-width: 0;
  max-width: 34rem;
  text-align: start;
}
.Form_Field:where(fieldset) {
  margin: 0;
  padding: 0;
  border: 0;
}
.Form_Label {
  margin: 0;
  color: var(--text);
  font-size: var(--small);
  font-weight: 700;
}
.Form_Label:where(legend) {
  padding: 0;
  margin-block-end: .35rem;
}
.Form_Optional {
  color: var(--muted);
  font-weight: 400;
}
.Form_Field > .Field {
  width: 100%;
}
.Form_Hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
/* A value shown where its control would be, which nobody changes here: its
   words as they are, every line and long word kept inside the field. */
.Form_Value {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.Form_Value-none {
  color: var(--dim);
}
/* One field and the button that sends it, on one line while they fit. */
.Form_Line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  margin: 0;
}
.Form_Line > .Field,
.Form_Line > .At {
  flex: 1 1 12rem;
}
.Form_Actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.Form > .Button {
  justify-self: start;
}

}
@layer components {
/* Pencil's field with a fixed ending: yaks.app's spacing. */
.At {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}
.At > .Field {
  flex: 1 1 auto;
}
.At_End {
  flex: none;
  color: var(--muted);
}

}
@layer components {
/* Pencil's drop zone: a place for something rather than a thing, so its
   pencil line is dashed and light (--pencil, --pencil-style, on ::after, as
   every drawn part wears its line), solid in the accent while files are held
   over it. What is chosen sits under it on wells, a step under the small
   type where it describes (--fine, yaks.app's). */
.Drop {
  display: grid;
  gap: .5rem;
  min-width: 0;
}
.Drop_Zone {
  --pencil: var(--border2);
  --pencil-style: dashed;
  position: relative;
  display: grid;
  place-items: center;
  gap: .25rem;
  min-height: 6rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .Drop_Zone:hover {
    --pencil: var(--accent);
  }
}
.Drop_Zone:has(.Drop_File:focus-visible) {
  --pencil: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.Drop_Zone-over {
  --pencil: var(--accent);
  --pencil-style: solid;
  background: var(--card);
}
.Drop_Zone-icon {
  display: inline-flex;
  width: fit-content;
  padding: var(--half-gap);
}
.Drop_Icon {
  width: var(--tap);
  height: var(--tap);
}
.Drop_Zone:has(.Drop_File:disabled) {
  opacity: .55;
  cursor: not-allowed;
}
.Drop_File {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.Drop_Say {
  color: var(--text);
}
.Drop_Choose {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.Drop_Hint {
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Drop_Chosen {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.Drop_Chosen:empty {
  display: none;
}
.Drop_Item {
  --control-height: 2rem;
  --control-pad-inline: .7rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  background: var(--well);
}
.Drop_Picture {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  object-fit: cover;
}
.Drop_Name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Drop_Size {
  flex: none;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Drop_Item > .Button {
  flex: none;
  font-size: var(--fine, var(--small));
}
/* What was left out, past the input's ceilings. */
.Drop_Said {
  margin: 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Drop_Said:empty {
  display: none;
}
/* A file of a kind that is not read, with a line that says so. */
.Drop_Note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Drop_Item-unread {
  flex-wrap: wrap;
}
/* A gathering part (a chat app's message box): it takes a drop or a paste
   anywhere on it; what it holds its caller draws (Attachments-held). */
.Drop-gather {
  position: relative;
}
.Drop-over {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

}
@layer components {
/* A fold: its line in the accent, a chevron before it that turns as it
   opens, and what it holds a gap under it. */
.More_Summary {
  display: inline-flex;
  align-items: center;
  gap: var(--half-gap);
  color: var(--accent);
  font-size: var(--small);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.More_Summary::-webkit-details-marker {
  display: none;
}
.More_Summary::before {
  content: '';
  flex: none;
  width: .4em;
  height: .4em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.More[open] > .More_Summary::before {
  transform: rotate(45deg);
}
.More_Body {
  display: grid;
  gap: var(--half-gap);
  margin-top: var(--half-gap);
}
.More_Body > * {
  margin: 0;
}
.More_Label {
  font-weight: 700;
}
.More_Value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* A step: a muted line with `›` after it that turns as it opens, accent
   while it runs and negative once it did not work, and what it holds under a
   rule at the size it is drawn. */
.More-quiet > .More_Summary {
  align-items: baseline;
  gap: .4rem;
  color: var(--muted);
  font-weight: normal;
}
.More-quiet > .More_Summary::before {
  content: none;
}
.More-quiet > .More_Summary::after {
  content: '›';
  transition: transform .15s;
}
.More-quiet[open] > .More_Summary::after {
  transform: rotate(90deg);
}
.More-on > .More_Summary {
  color: var(--accent);
}
.More-no > .More_Summary {
  color: var(--negative);
}
.More-quiet > .More_Body {
  gap: .6rem;
  margin-top: .4rem;
  padding: .6rem .8rem;
  border-left: 2px solid var(--border2);
}

/* A second way to open a fold, drawn outside it: a bare button, muted, in
   the accent while the fold it opens is open. */
.More_Mark {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.More_Mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.More_Mark[aria-expanded='true'] {
  color: var(--accent);
}

/* Pencil's fold: yaks.app's spacing, and markdown someone wrote in it (a
   Body, theirs.ts in yaks.app), such as how to get a key, set close and
   ending where the body does. */
.More_Body {
  display: grid;
  gap: .875rem;
  margin-top: .75rem;
}
.More_Body > *,
.More_Body > .Body > :last-child {
  margin: 0;
}
.More_Body > .Body {
  display: grid;
  gap: .625rem;
}
.More_Body > .Body :is(.Body_Paragraph, .Body_Ordered, .Body_Unordered, .Body_Source) {
  margin: 0;
}
.More_Body > .Body :is(.Body_Ordered, .Body_Unordered) {
  display: grid;
  gap: .375rem;
  padding-inline-start: 1.4rem;
}
/* An item stays a list item, so its words, links and bold run as one
   sentence after its number; only blocks inside it stand apart. */
.More_Body > .Body .Body_Item > * + :is(.Body_Paragraph, .Body_Ordered, .Body_Unordered, .Body_Source) {
  margin-top: .375rem;
}
.More_Body > .Body .Body_Ordered {
  list-style: decimal;
}
.More_Body > .Body .Body_Unordered {
  list-style: disc;
}
.More_Body > .Body .Body_Source {
  padding: .6rem .8rem;
  background: var(--card-fill);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

}
@layer components {
/* One menu surface and its scrollable list, whether opened from a summary
   or placed beside a trigger. The skin draws it; its host sizes and places it. */
.Menu {
  position: relative;
  min-width: 10rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--raised-shadow);
}
.Menu_List {
  position: relative;
  display: grid;
  max-height: min(34rem, 70vh);
  padding: .35rem 0;
  border-radius: inherit;
  background: var(--card-fill, var(--card));
  overflow-y: auto;
}
.Menu_Item {
  display: flex;
  align-items: center;
  gap: var(--half-gap);
  margin: 0 .35rem;
  padding: .55rem .65rem;
  min-height: var(--tap);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .Menu_Item:hover {
    background: var(--hover, var(--soft));
  }
}
.Menu_Item-hover,
.Menu_Item:focus-visible {
  background: var(--hover, var(--soft));
}
.Menu_Item[aria-current='true'] {
  background: var(--hover, var(--soft));
}
.Menu_Item-danger {
  color: var(--negative);
}
.Menu_Rule {
  width: 100%;
  margin: .35rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.Menu_Ask {
  margin: 0;
  padding: .5rem 1rem .6rem;
  color: var(--muted);
  font-size: var(--small);
}
.Menu_Footer {
  display: grid;
}
.Menu_Fold {
  position: relative;
}
.Menu_Fold[open] {
  z-index: var(--float, 100);
}
.Menu_Summary {
  position: relative;
  padding: var(--half-gap) var(--gap);
  border: 1px solid var(--surface-border, var(--border2));
  border-radius: var(--radius);
  background: var(--card-fill, var(--card));
  color: var(--text);
  font: inherit;
  cursor: pointer;
  list-style: none;
}
.Menu_Summary::-webkit-details-marker {
  display: none;
}
.Menu[hidden] {
  display: none;
}
.Menu-below {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  width: max-content;
  min-width: max(100%, 18rem);
  max-width: 26rem;
}
.Menu-float {
  position: fixed;
  z-index: 100;
  max-width: calc(100vw - 12px);
}
.Menu-float .Menu_List {
  max-height: calc(100dvh - 12px);
}
.Menu_Trigger {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.Menu_Fold[open] .Identity_Action {
  color: var(--muted);
}
/* A menu opened from a trigger at the far side of what it acts on runs back
   from that side, so it stays on the page. */
.Menu-end {
  left: auto;
  right: 0;
  min-width: 12rem;
}
/* A trigger that is a glyph alone (⋯): quiet and square, with no outline or
   hatch, washed when the pointer finds it or its menu is open. */
.Menu_Summary.Menu_Summary-icon {
  display: grid;
  place-items: center;
  width: var(--control-height, 2rem);
  height: var(--control-height, 2rem);
  padding: 0;
  border-color: transparent;
  background: none;
  color: var(--muted);
  transform: none;
}
.Menu_Summary.Menu_Summary-icon::before,
.Menu_Summary.Menu_Summary-icon::after {
  content: none;
}
@media (hover: hover) and (pointer: fine) {
  .Menu_Fold > .Menu_Summary.Menu_Summary-icon:hover {
    background: var(--hover, var(--soft));
    color: var(--text);
    transform: none;
  }
}
.Menu_Fold[open] > .Menu_Summary.Menu_Summary-icon {
  background: var(--hover, var(--soft));
  color: var(--text);
  transform: none;
}
.Menu_Summary.Menu_Summary-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .Menu_Item:hover {
    background: var(--hover);
  }
}
.Menu_Item-hover,
.Menu_Item:focus-visible {
  background: var(--hover);
}
.Menu_Item[aria-current='true'] {
  background: color-mix(in srgb, var(--card), var(--accent) 12%);
}

.Menu_Rule {
  position: relative;
  height: calc(var(--stroke) + 2 * var(--room));
  border: 0;
  background: var(--rule);
  filter: var(--drawn);
}
.Menu_Footer {
  padding: .35rem .65rem .4rem;
}
.Menu_Ask {
  font-size: var(--fine, var(--small));
}

}
@layer components {
/* The text of a thing: the ink at a reading measure, its paragraphs and
   quotes as the base sets prose. A short one is the gist: muted, smaller. */
.Body {
  min-width: 0;
  max-width: var(--measure);
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.Body-short {
  color: var(--muted);
  font-size: var(--small);
}
/* A text a press types into: the pointer says so, a text cursor over a
   faint wash. */
.Body-typed {
  cursor: text;
  border-radius: var(--radius);
}
@media (hover: hover) and (pointer: fine) {
  .Body-typed:hover {
    background: var(--soft);
  }
}
/* A document's source: its lines kept and wrapped at the measure, every
   character where it stands, smaller, in the face of what is typed. */
.Body-source > .Body_Source {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--small);
  line-height: 1.5;
}

.Body_Source-detail {
  margin: .4rem 0 0;
  padding: .6rem .8rem;
  background: var(--card);
  font-size: var(--small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.Body-flow :is(.Body_Paragraph, .Body_Unordered, .Body_Ordered, .Body_Heading) {
  margin: 0 0 .75rem;
  color: inherit;
}
.Body-flow > :last-child {
  margin-bottom: 0;
}
.Body-flow .Body_Source {
  padding: .6rem .8rem;
  background: var(--card);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.Body-flow .Body_Table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Pencil's body of text takes the page's measure and type, as yaks.app's
   rendered markdown always has: the kit's measure, line and ink give way to
   whatever holds it, a page's prose or a reply. */
.Body {
  min-width: auto;
  max-width: none;
  color: inherit;
  line-height: inherit;
  overflow-wrap: inherit;
}

}
@layer components {
/* A line said back, small and muted; a refusal in the negative. Empty, it
   takes no room. */
.Notice {
  margin: 0;
  color: var(--muted);
  font-size: var(--small);
}
.Notice:empty {
  display: none;
}
.Notice-negative {
  color: var(--negative);
}

.Notice-fine {
  margin: 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Notice-fine {
  font-size: var(--fine, var(--small));
}

}
@layer components {
/* Something at work: the yak doing it (yaks.app's mascot), then the words
   that say what it is, in the ink of wherever it sits. */
.Loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.Loading_Mark,
.Loading_Image {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}

}
@layer components {
/* Pencil's words to copy, yaks.app's: a strip of the floor a control tall,
   the words in the mono face, and the button beside it a paper press inked
   in the accent, a control square. */
.Copy {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.Copy_Text {
  flex: 1;
  min-width: 0;
  min-height: var(--control-height);
  padding: .4rem .75rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--small);
  overflow-wrap: anywhere;
  user-select: all;
}
/* In its Copy, so it outranks the press it wears, whichever sheet comes
   first. */
.Copy .Copy_Go {
  --button-ink: var(--accent);
  flex: none;
  width: var(--control-height);
  padding: 0;
}
.Copy:not(.Copy-copied) .Copy_Icon-done,
.Copy-copied .Copy_Icon:not(.Copy_Icon-done) {
  display: none;
}

}
@layer components {
/* Nothing here yet: what will be, and how to start. Its pencil line is
   dashed and light, a place for something rather than a thing. */
.Empty {
  --pencil: var(--border2);
  --pencil-style: dashed;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.Empty > * {
  max-width: 30rem;
  margin: 0;
}
.Empty_Title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.Empty_Title-welcome {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
}

.Empty-welcome {
  padding: 0;
  text-align: center;
}
.Empty-welcome::after {
  content: none;
}

.Empty-welcome {
  display: block;
  border: 0;
}
.Empty-welcome > * {
  max-width: none;
}
.Empty-welcome > .Empty_Title {
  margin: 0 0 .5rem;
}

}
@layer components {
/* A report: a card whose head says the total where its actions would sit,
   then a chart of the days, its first and last day under it, and short
   lists side by side, each name cut short before it would push its count
   out of its column. */
.Report {
  gap: 1.25rem;
}
.Report_Total {
  flex: none;
  margin: 0 0 0 auto;
  color: var(--text);
  font-size: var(--h3);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.Report_Unit {
  color: var(--muted);
  font-size: var(--small);
  font-weight: 400;
}
.Report_Plot {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.Report_Span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--small);
}
.Report_Tops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.Report_Heading {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: var(--small);
  font-weight: 700;
}
/* One column as wide as the list's own, so a long name is cut short with
   an ellipsis rather than widening the row past its column and over the
   next one; the count beside it keeps its whole width and one line. */
.Report_List {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--small);
}
.Report_Item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.Report_Label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Report_Value {
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .Report_Tops {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

/* A report drawn yaks.app's way: its total a little larger and heavier, and
   what describes it a step under the small type. */
.Report_Total {
  font-size: 1.25rem;
  font-weight: 800;
}
.Report_Unit,
.Report_Span,
.Report_Heading {
  font-size: var(--fine, var(--small));
}

}
@layer components {
/* A chart's marks. A number's words keep the page's ink; the marks are drawn
   in the theme's roles. */
.Chart {
  position: relative;
  touch-action: pan-y;
}
/* The point a pointer, a finger or an arrow key is on (the page's listener
   sets data-on and --at), and the tip that says it, floating clear of
   whatever clips the chart. */
.Chart[data-on]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--at);
  width: 1px;
  background: var(--muted);
  pointer-events: none;
}
.Chart-line {
  display: inline-block;
  vertical-align: middle;
}
.Chart-bars {
  display: block;
  height: 5rem;
  border-bottom: 1px solid var(--border2);
}
.Chart-bars .Chart_Plot {
  display: block;
  width: 100%;
  height: 100%;
}
.Chart_Line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.Chart_End,
.Chart_Bar {
  fill: var(--accent);
}
.Chart_Tip {
  position: fixed;
  z-index: 200;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--card);
  font-size: var(--small);
  white-space: nowrap;
  pointer-events: none;
}

/* A chart in pencil: a graphite line through the pencil, ending in a dot on
   today, or a column a day over a hairline. A pointer over it is a
   crosshair, and the tip floats over every raised part of the page. */
.Chart {
  z-index: 1;
  cursor: crosshair;
}
.Chart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.Chart-line {
  margin-left: 0.5rem;
  padding: 0.25rem 0;
  line-height: 0;
}
.Chart-line .Chart_Plot {
  filter: var(--drawn);
  overflow: visible;
}
.Chart-bars {
  border-bottom: 1px solid var(--border);
}
.Chart_Line {
  stroke: var(--graphite);
  stroke-width: var(--stroke);
}
.Chart_Tip {
  z-index: var(--float, 200);
  font-size: var(--fine, var(--small));
}

}
@layer components {
/* The scrollport holds table content only. Decorative borders belong to
   the surface outside it, so their paint cannot create or be clipped by overflow. */
.Table_Scroll {
  min-width: 0;
  overflow-x: auto;
}

/* Things in rows, as a grid: every row a subgrid of it, so the cells line
   up; hairlines between the rows, headings small and muted. A column is as wide
   as its widest cell where there is room, and they share the room when there
   is not; what is left over runs past the last. Each cell is one line, cut
   short with an ellipsis, whatever it holds; a number is never cut and sets
   right, and prose wraps. A row a press picks lights under the pointer; the
   picked one is raised, with the accent at its edge.

   Table.ts names each column's track in --cols, by what the column holds:
   --col for text, --col-<variant> for the rest. */
.Table {
  --col: minmax(0, max-content);
  --col-num: max-content;
  --col-prose: minmax(12em, max-content);
  display: grid;
  grid-template-columns: var(--cols) 1fr;
  min-width: 0;
}
.Table_Head,
.Table_Body,
.Table_Row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}
.Table_Row {
  align-items: baseline;
  border-bottom: 1px solid var(--border);
}
.Table_Head > .Table_Row {
  border-bottom-color: var(--border2);
}
.Table_Heading,
.Table_Cell {
  min-width: 0;
  padding: 2px var(--half-gap);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* What a cell holds keeps to the cell's line, whatever it would do on its
   own (a stored value keeps its newlines). */
.Table_Cell * {
  white-space: inherit;
}
.Table_Heading {
  font-size: var(--small);
  color: var(--muted);
}
.Table_Heading-sorts {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .Table_Heading-sorts:hover {
    color: var(--text);
  }
}
.Table_Heading-asc,
.Table_Heading-desc {
  color: var(--accent);
}
.Table_Heading-num {
  text-align: right;
}
.Table_Cell-prose {
  white-space: normal;
  color: var(--muted);
}
.Table_Cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--number);
}
.Table_Cell-key {
  font-family: var(--mono);
  font-size: var(--small);
  color: var(--muted);
}
.Table_Row-picks {
  cursor: pointer;
}
/* A row telling of the rest, not naming a thing: its words muted. */
.Table_Row-quiet {
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .Table_Row-picks:hover {
    background: var(--soft);
  }
}
.Table_Row-hover {
  background: var(--soft);
}
.Table_Row-picks:focus-visible,
.Table_Row-focus {
  outline: none;
  background: var(--card);
  box-shadow: inset 2px 0 var(--accent);
}
/* A tree's rows: a toggle where a row holds rows, pointing down while they
   show; an indent as wide as a toggle for each row a row is under, and in
   place of the toggle where it holds none, so the words line up. */
.Table_Toggle,
.Table_Indent {
  display: inline-block;
  width: 1.25em;
}
.Table_Toggle {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.Table_Toggle::before {
  content: '▸';
}
.Table_Toggle-open::before {
  content: '▾';
}
@media (hover: hover) and (pointer: fine) {
  .Table_Toggle:hover {
    color: var(--text);
  }
}

.Table_Sort {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.Table_Sort:focus-visible {
  outline: 1px solid var(--accent);
}

}
@layer components {
/* Pencil's tabs: physical tabs on one sheet. Each tab is drawn in pencil on
   its top and sides; the panel's own top line is every tab's foot, and the
   lit tab covers it, so tab and panel are one sheet. In a set (`TabSet`)
   native radios own selection, arrow keys too, so it works without script:
   the checked radio's tab is the lit one. */
.Tabs {
  display: flex;
  flex-wrap: wrap;
  column-gap: .3rem;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.Tabs_Legend {
  margin-bottom: 1rem;
  padding: 0;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}
.Tabs_Item {
  display: contents;
}
.Tabs_Input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.Tabs_Tab {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  min-height: 3rem;
  overflow-wrap: normal;
  margin: .35rem 0 0;
  padding: .55rem .45rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-fill);
  color: var(--muted);
  font: inherit; /* a button's, as a label's is */
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none; /* a tab that links reads as a tab */
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.Tabs_Tab::after {
  content: '';
  position: absolute;
  inset: -1px -1px 0;
  border: var(--stroke) solid var(--graphite);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  filter: var(--drawn);
  pointer-events: none;
}
@media (max-width: 480px) {
  .Tabs_Tab {
    padding-inline: .3rem;
    font-size: .8rem;
  }
}
@media (hover: hover) and (pointer: fine) {
  .Tabs_Tab:hover {
    color: var(--text);
  }
}
.Tabs_Tab-hover {
  color: var(--text);
}
.Tabs_Panel {
  order: 1;
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  margin: 0;
  text-align: left;
  z-index: 1;
}
.Tabs_Tab-on,
.Tabs_Input:checked ~ .Tabs_Tab {
  margin-top: 0;
  padding-top: .9rem;
  background: var(--card-fill);
  color: var(--text);
  z-index: 2;
}
/* The gap the lit tab opens in the panel's line. It stops short of the
   tab's sides, so they meet the line, and the first tab's meets the panel's
   corner. */
.Tabs_Tab-on::before,
.Tabs_Input:checked ~ .Tabs_Tab::before {
  content: '';
  position: absolute;
  inset: auto 2px calc(-1.5 * var(--room));
  height: calc(3 * var(--room));
  background: var(--card-fill);
}
/* Only the checked radio's panel shows. Hiding the rest outranks a card's
   own display, wherever the card's rule comes. */
.Tabs_Input:not(:checked) ~ .Tabs_Panel {
  display: none;
}
.Tabs_Input:checked ~ .Tabs_Panel {
  display: grid;
}
.Tabs_Input:focus-visible ~ .Tabs_Tab {
  outline: 3px solid var(--accent);
  outline-offset: -5px;
}
/* Raised like a superscript; the shift is paint only, so the line keeps
   its height. */
.Tabs_Badge {
  position: relative;
  top: -0.5em;
  min-width: 1.1em;
  padding: 0 0.25em;
  border-radius: 1em;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

}
@layer components {
/* A glyph in lines: the words' height and a little more, sat on their
   baseline, stroked in their colour. */
.Icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

}
@layer components {
/* An integration's name with its logo: the logo a little taller than the
   words, centred on them, a narrow gap between. Alone, a logo takes the size
   its place gives it (a card's mark) or its own 24 pixels. */
.Logo {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  max-width: 100%;
  vertical-align: bottom;
}
.Logo_Mark {
  flex: none;
  object-fit: contain;
}
.Logo > .Logo_Mark {
  width: 1.25em;
  height: 1.25em;
}
/* Where there is no logo, a plug on a soft rounded square. */
.Logo_Mark-none {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
}
.Logo_Mark-none .Icon {
  width: 60%;
  height: 60%;
}

}
@layer components {
/* A tooltip: small text on a raised chip. It never takes the
   pointer; where it floats is its host's business. */
.Tip {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: min(36rem, calc(100vw - 12px));
  font: var(--small) var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: calc(var(--radius) - 2px);
  padding: 1px 6px;
  pointer-events: none;
}
.Tip[popover] {
  inset: auto;
  margin: 0;
}

}
@layer components {
/* Dates inherit the line they describe. */
.Time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

}
@layer components {
/* Fixed to the viewport at the rect of what it springs from, placed by
   script, above every card, so a picker clears what it springs from. */
.Overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
}

}
@layer components {
/* Pencil's side navigation: a column of links beside an edge, the edge
   between this nav and the panel it leans against. The current link is a
   tab drawn in pencil and filled with the panel's fill (Surface.css), and it covers the edge, so
   it opens into the panel, which is what makes it read as the page you are
   on. A nav with no panel beside it points --nav-edge and --nav-panel at
   nothing, and --nav-shut at --stroke to close the tab's open side, so its
   current link is a pencil box (every nav on a phone, and any page's that
   says so). */
.SideNav {
  --nav-panel: var(--card-fill);
  --nav-edge: var(--graphite);
  --nav-shut: 0;
  --nav-tip: 0;
  position: relative;
  display: grid;
  gap: .15rem;
}
.SideNav_Edge {
  position: relative;
}
.SideNav_Edge .SideNav {
  --nav-edge: transparent;
}
/* The stroke ends at the box's edge; the filter's room straddles it. */
.SideNav::after,
.SideNav_Edge::after {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--room)) 0 auto;
  width: calc(var(--stroke) + 2 * var(--room));
  background: linear-gradient(var(--nav-edge, var(--graphite)) 0 0) center /
    var(--stroke)
    100% no-repeat;
  filter: var(--drawn);
  pointer-events: none;
}
.SideNav_Link {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.SideNav_Link:where(button) {
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .SideNav_Link:hover:not(.SideNav_Link-on) {
    background: color-mix(in srgb, var(--card) 60%, transparent);
  }
}
.SideNav_Link-hover:not(.SideNav_Link-on) {
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.SideNav_Link-on {
  background: var(--nav-panel);
  color: var(--text);
  z-index: 1;
}
.SideNav_Link-on::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: var(--stroke) solid var(--graphite);
  border-right-width: var(--nav-shut);
  border-radius: var(--radius) var(--nav-tip) var(--nav-tip) var(--radius);
  filter: var(--drawn);
  pointer-events: none;
}
/* The gap the current tab opens in the edge. */
.SideNav_Link-on::before {
  content: '';
  position: absolute;
  inset: 2px calc(-1.5 * var(--room)) 2px auto;
  width: calc(3 * var(--room));
  background: var(--nav-panel);
}
/* A rule between groups of links, stopping short of the edge. */
.SideNav_Rule {
  height: calc(var(--stroke) + 2 * var(--room));
  margin: calc(1rem - var(--room)) .6rem;
  border: 0;
  background: var(--rule);
  filter: var(--drawn);
}
/* A nav beside no panel: no edge, its current link a closed box. */
.SideNav-alone {
  --nav-panel: transparent;
  --nav-edge: transparent;
  --nav-shut: var(--stroke);
  --nav-tip: var(--radius);
}
@media (max-width: 700px) {
  .SideNav_Edge::after {
    content: none;
  }
  .SideNav {
    --nav-panel: transparent;
    --nav-edge: transparent;
    --nav-shut: var(--stroke);
    --nav-tip: var(--radius);
    display: flex;
    flex-wrap: wrap;
  }
}
/* The column collapsed to a rail of its icons: each link a square around
   its icon, its label kept for a screen reader and said by its title. A
   phone's row has its words, whatever the rail. */
@media (min-width: 701px) {
  .SideNav-rail .SideNav_Link {
    justify-content: center;
    padding-inline: .6rem;
  }
  .SideNav-rail .SideNav_Label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

}
@layer components {
/* What is on this page. Beside the page, a column that stays in sight as the
   page scrolls under it: its label, then a link a line, quiet until it is the
   section in view, which a bar beside it marks. On a phone, one "On this
   page" line that opens the same list. Which of the two shows is the width
   the contents itself has: the container it sits in is the page's to size. */
.Contents {
  container-type: inline-size;
  position: sticky;
  top: var(--gap);
  align-self: start;
  font-size: var(--small);
}
.Contents[hidden] {
  display: none;
}
.Contents_Label {
  margin: 0 0 var(--half-gap);
  font-weight: 700;
}
.Contents_List {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.Contents_Item-sub {
  padding-inline-start: var(--gap);
}
.Contents_Link {
  display: block;
  padding: 3px 0 3px var(--half-gap);
  border-inline-start: 2px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .Contents_Link:hover {
    color: var(--text);
  }
}
.Contents_Link-on {
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}
.Contents_Menu {
  display: none;
}
.Contents_Summary {
  display: inline-flex;
  align-items: center;
  gap: var(--half-gap);
  min-height: var(--tap);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.Contents_Summary::-webkit-details-marker {
  display: none;
}
.Contents_Summary::after {
  content: '';
  width: .4em;
  height: .4em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .15s;
}
.Contents_Menu[open] > .Contents_Summary::after {
  transform: rotate(225deg);
}
.Contents_Menu > .Contents_List {
  margin-top: var(--half-gap);
}
/* Wider than a column: the contents is across the top of the page, a phone's
   menu. */
@container (min-width: 20rem) {
  .Contents_Label,
  .Contents > .Contents_List {
    display: none;
  }
  .Contents_Menu {
    display: block;
  }
}

}
@layer components {
/* Pencil's box and radio are drawn, not the browser's: a graphite edge on
   the card, filled with the accent once checked, a tick or a dot in the
   paper's colour, as tall as a press beside it (--control-height). */
.Check {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  min-height: var(--control-height);
  line-height: 1.4;
  cursor: pointer;
}
.Check_Input {
  font: inherit;
  appearance: none;
  display: grid;
  place-content: center;
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  margin: 0;
  /* Half the first line minus half the control, whatever its drawn size. */
  transform: translateY(calc(.5lh - 50%));
  border: var(--stroke) solid var(--graphite);
  background: var(--card);
  cursor: inherit;
}
.Check_Input[type='radio'] {
  border-radius: 50%;
}
.Check_Input::before {
  content: '';
  width: .45rem;
  height: .45rem;
  transform: scale(0);
}
.Check_Input[type='checkbox']::before {
  width: .3rem;
  height: .6rem;
  margin-top: -.15rem;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
}
.Check_Input[type='radio']::before {
  border-radius: 50%;
  background: var(--bg);
}
.Check_Input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.Check_Input:checked::before {
  transform: scale(1);
}
.Check_Input[type='checkbox']:checked::before {
  transform: rotate(45deg) scale(1);
}
.Check:has(.Check_Input:disabled) {
  opacity: .55;
  cursor: not-allowed;
}
.Check_Input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

}
@layer components {
/* Things to browse, in groups. A group's heading is small, spaced capitals
   over a rule; an entry's title is large and ink, what it is muted under it,
   then what it shows. Entries stand well apart and groups further, so the
   eye finds each at a glance; a wide window gets a wider margin. The entry
   a link jumped to lights its title. */
.Catalog {
  display: grid;
  gap: calc(var(--gap) * 4);
  min-width: 0;
}
@media (min-width: 56rem) {
  .Catalog {
    padding: var(--gap) calc(var(--gap) * 2);
  }
}
.Catalog_Group {
  display: grid;
  gap: calc(var(--gap) * 2.5);
  min-width: 0;
  scroll-margin-top: var(--gap);
}
.Catalog_Heading {
  margin: 0;
  max-width: none;
  padding-bottom: var(--half-gap);
  border-bottom: 1px solid var(--border2);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
}
.Catalog_Entry {
  display: grid;
  gap: 4px;
  min-width: 0;
  scroll-margin-top: var(--gap);
}
.Catalog_Title {
  margin: 0;
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.Catalog_Entry:target > .Catalog_Title {
  color: var(--accent);
}
.Catalog_Sub {
  margin: 0 0 var(--gap);
  max-width: var(--measure);
  color: var(--muted);
}

}
@layer components {
/* Things side by side: as many figures to a line as fit, each as wide as
   what it shows asks, and no wider than the line. A figure is its caption,
   small and mono, over a stage: a raised panel with room all round, where
   what is shown sits as it would anywhere else. */
.Gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  min-width: 0;
}
.Gallery_Figure {
  flex: 0 1 max-content;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.Gallery_Caption {
  padding: 0 2px;
  font-family: var(--mono);
  font-size: var(--small);
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.Gallery_Stage {
  flex: 1 1 auto;
  min-width: 0;
  /* Roomy, and less so on a phone, where the room is the line's. */
  padding: clamp(var(--gap), 4vw, calc(var(--gap) * 1.75));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto; /* what is wider than the line scrolls within its stage */
}

/* Even: figures share the line alike, as many as fit at 16rem or more, so
   two to four choices sit side by side and a phone stacks them. */
.Gallery-even > .Gallery_Figure {
  flex: 1 1 16rem;
}

}
@layer components {
/* Like things in equal columns, as many as fit at a card's least width, each
   row as tall as its tallest cell; one column on a phone. A cell fills its
   column, so cards side by side line up. */
.Cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--gap);
  min-width: 0;
}
.Cards > * {
  min-width: 0;
}

.Cards-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
}

}
@layer components {
.Identity {
  -webkit-user-select: none;
  user-select: none;
}
.Identity {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  column-gap: .6rem;
  padding: .55rem .7rem;
  list-style: none;
}
.Identity.Menu_Summary {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
}
.Identity_Avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--avatar, var(--accent));
  color: var(--bg);
  font-weight: 800;
}
img.Identity_Avatar {
  object-fit: cover;
  background: none;
}
.Identity_Avatar-tone-0 {
  --avatar: light-dark(#495d89, #a8bde5);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-0 {
  --avatar: #495d89;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-0 {
  --avatar: #a8bde5;
}
}
}
.Identity_Avatar-tone-1 {
  --avatar: light-dark(#6a5085, #c7afe2);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-1 {
  --avatar: #6a5085;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-1 {
  --avatar: #c7afe2;
}
}
}
.Identity_Avatar-tone-2 {
  --avatar: light-dark(#894964, #dea5bd);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-2 {
  --avatar: #894964;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-2 {
  --avatar: #dea5bd;
}
}
}
.Identity_Avatar-tone-3 {
  --avatar: light-dark(#914a42, #e3a79d);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-3 {
  --avatar: #914a42;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-3 {
  --avatar: #e3a79d;
}
}
}
.Identity_Avatar-tone-4 {
  --avatar: light-dark(#465f6b, #a2c3d0);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-4 {
  --avatar: #465f6b;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-4 {
  --avatar: #a2c3d0;
}
}
}
.Identity_Avatar-tone-5 {
  --avatar: light-dark(#71564a, #cfad9f);
}
@supports not (color: light-dark(#000, #fff)) {
.Identity_Avatar-tone-5 {
  --avatar: #71564a;
}
@media (prefers-color-scheme: dark) {
.Identity_Avatar-tone-5 {
  --avatar: #cfad9f;
}
}
}
.Identity_Text {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  line-height: 1.25;
}
.Identity_Name {
  overflow-wrap: anywhere;
}
.Identity_Name,
.Identity_Note {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.Identity_Note {
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Identity_Action {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: var(--fine, var(--small));
  font-weight: 700;
}
.Identity_Mark {
  color: var(--accent);
  font-weight: 800;
}
.Identity_Add {
  padding: .5rem .7rem;
  color: var(--accent);
  font-size: var(--fine, var(--small));
  font-weight: 700;
  text-decoration: none;
}
.Identity_Name,
.Identity_Note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Identity_Image {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .35rem;
  object-fit: cover;
}

.Identity_Avatar-large {
  width: 4rem;
  height: 4rem;
  font-size: 1.75rem;
}

}
@layer components {
.Toolbar_Label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Toolbar_Text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}
.Toolbar_Sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
  overflow-wrap: anywhere;
}
.Toolbar_Title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Toolbar {
  --toolbar-padding-block: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: var(--toolbar-padding-block) 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
}
@media (max-width:700px) {
  .Toolbar {
    --toolbar-padding-block: .5rem;
    padding-inline: 1rem;
  }
}
.Toolbar-compact {
  gap: .6rem;
  padding: .6rem 1rem;
  background: none;
  border: 0;
}
.Toolbar-narrow {
  padding: .6rem 1rem;
}

.Toolbar-plain {
  flex-wrap: wrap;
  gap: var(--gap);
  padding: var(--half-gap) 0;
  border: 0;
  background: none;
}

}
@layer components {
.Transcript,
.Transcript_Lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.Transcript_Lines > * {
  min-width: 0;
}
.Transcript_Bubble {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 0 auto;
  padding: .6rem 1rem;
  border-radius: 1.1rem;
  background: var(--mine, var(--surface));
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.Transcript_Via {
  margin-right: .4em;
  color: var(--muted);
}
.Transcript_Via .Icon {
  width: .95em;
  height: .95em;
  vertical-align: -.1em;
}
.Transcript_Meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Transcript_Meta > .Transcript_Via {
  margin-right: 0;
}
.Transcript_Entry-theirs > .Transcript_Meta {
  justify-content: end;
}
/* Said by the other person, in a conversation between people: their bubble
   at the left, on the sheet behind. */
.Transcript_Entry-other > .Transcript_Bubble {
  margin: 0 auto 0 0;
  background: var(--surface);
}
.Transcript_Entry-hidden {
  opacity: .5;
}
.Transcript_Reply {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.Transcript_Lines[data-rows] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .9rem;
}
/* A closed step flows beside the steps around it; anything else, and a step
   opened, takes the row. */
.Transcript_Lines[data-rows] > :not(:has(> .Transcript_Entry-step)),
.Transcript_Lines[data-rows] > :has(> .Transcript_Entry-step [open]) {
  flex-basis: 100%;
  margin-block: .325rem;
}
.Transcript_Lines[data-rows] > :first-child {
  margin-top: 0;
}
.Transcript_Lines[data-rows] > :last-child {
  margin-bottom: 0;
}
.Transcript_Status {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.Transcript_Status:empty {
  display: none;
}
.Transcript_Error {
  display: grid;
  gap: var(--half-gap);
}
.Transcript_When {
  white-space: nowrap;
}

}
@layer components {
.Attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  font-size: var(--small);
}
/* A person's own, on their side. */
.Attachments-end {
  justify-content: flex-end;
  width: fit-content;
  max-width: 85%;
  margin-left: auto;
}
.Attachments_Link {
  overflow-wrap: anywhere;
}
.Attachments_Image {
  display: block;
  width: auto;
  max-width: min(100%, 16rem);
  max-height: 12rem;
  border-radius: .75rem;
  object-fit: cover;
}
.Attachments_File {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 16rem;
  padding: .35rem .75rem .35rem .35rem;
  border-radius: .75rem;
  background: var(--mine, var(--surface));
  color: var(--text);
  text-decoration: none;
}
.Attachments_Kind {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .3rem;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-size: var(--fine, var(--small));
  font-weight: 700;
}
.Attachments_Name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Attachments_Size,
.Attachments_Note {
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Attachments_Size {
  flex: none;
}
.Attachments_Note {
  flex-basis: 100%;
}
/* Files held to send, along a message box's top: small, each with a way to
   take it back at its corner. */
.Attachments-held .Attachments_Picture,
.Attachments-held .Attachments_File {
  position: relative;
  flex-wrap: wrap;
}
.Attachments-held .Attachments_File {
  padding-right: 2rem;
}
.Attachments-held .Attachments_Image {
  width: 3.5rem;
  height: 3.5rem;
}
.Attachments_Remove {
  position: absolute;
  top: .2rem;
  right: .2rem;
  --control-height: 1.6rem;
  --control-pad-inline: .45rem;
}
.Attachments:empty {
  display: none;
}
/* A file of words shown as it is, under the line that names it: its own
   page (`framed`), which takes this page's color scheme and shows through
   to its background. */
.Attachments_Frame {
  display: block;
  width: 100%;
  height: min(20rem, 60vh);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
}

}
@layer components {
.Annotated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  align-items: start;
  gap: 1rem;
}
.Annotated_Content {
  min-width: 0;
}
.Annotated_Margin {
  display: grid;
  justify-items: end;
  gap: .2rem;
  color: var(--muted);
  font-size: var(--small);
  font-variant-numeric: tabular-nums;
}

}
@layer components {
.Preview_Address {
  flex: 0 0 auto;
  min-width: 0;
  padding: .25rem .5rem;
  overflow: auto;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--small);
  color: var(--text);
  user-select: all;
}
.Preview_Frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: .75rem;
  background: white;
  color-scheme: normal;
  box-shadow: 0 0 0 1px var(--border2);
}

.Preview-pane {
  border-left: 1px solid var(--border2);
  background: var(--surface);
}

.Preview_Frame-flat {
  box-shadow: none;
  border-radius: calc(var(--radius) - .25rem);
}

.Preview_Choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  min-height: 0;
  height: 100%;
  align-content: start;
}
.Preview_Item {
  display: contents;
}
.Preview_Choice {
  order: 0;
  --control-height: 2rem;
  padding: 0 .5rem;
}
.Preview_View {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  min-height: 0;
  flex: 1 1 100%;
  height: 100%;
}
.Preview_Choices:has(.Preview_Choice) > .Preview_Item > .Preview_View {
  height: calc(100% - 2rem);
}
.Preview_Item:has(.Preview_Choice) > .Preview_View {
  display: none;
}
.Preview_Item:has(.Check_Input:checked) > .Preview_View {
  display: flex;
}
.Preview_View > .Preview_Frame {
  flex: 1 1 auto;
  min-height: 0;
}
.Preview_View > .Notice {
  padding: .25rem .5rem 0;
}

/* A page at a width of its own, its height following its shape, for a frame
   in a flowing page rather than a pane: a desktop's 16:10, a phone's 9:16. */
.Preview_Frame-desktop,
.Preview_View > .Preview_Frame-desktop {
  height: auto;
  aspect-ratio: 16 / 10;
}
.Preview_Frame-phone,
.Preview_View > .Preview_Frame-phone {
  width: min(100%, 24rem);
  height: auto;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

}
@layer components {
.Composer {
  position: relative;
}
.Composer_Figure {
  position: absolute;
  bottom: calc(100% - .2rem);
  left: .75rem;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  pointer-events: none;
}
.Composer {
  display: grid;
  gap: .5rem;
  padding: .5rem;
  border: 1px solid var(--border2);
  border-radius: 1rem;
  background: var(--card);
}
.Composer_Field {
  width: 100%;
  min-height: calc(var(--control-height, 2rem) * 1.5);
  max-height: calc(var(--viewport-height, 100dvh) * .4);
  resize: none;
}
/* iOS zooms the page into a field whose words are under 16px. */
@media (pointer: coarse) {
  .Composer_Field {
    font-size: max(1rem, 1em);
  }
}
.Composer_Tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.Composer_Attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: var(--muted);
  font-size: var(--small);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .Composer_Attach:hover {
    color: var(--text);
  }
}
.Composer_File {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.Composer_Attach:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.Composer_Tools .Drop_Said {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.Composer_Stop,
.Composer_Send {
  margin-left: auto;
}
.Composer_Stop {
  display: none;
}
.Composer_Voice[hidden] {
  display: none;
}
.Composer_Voice[data-listening] {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--accent) 18%, transparent);
  animation: Composer_Listening 1.6s ease-in-out infinite alternate;
}
@keyframes Composer_Listening {
  to {
    box-shadow: 0 0 0 .45rem color-mix(in srgb, var(--accent) 8%,
      transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .Composer_Voice[data-listening] {
    animation: none;
  }
}
.Composer_Status {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Composer_Status:empty {
  display: none;
}
/* Who the words go to, where it isn't the conversation shown, along the
   field's top. */
.Composer_To {
  margin: 0;
  padding-inline: .25rem;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Composer_To:empty {
  display: none;
}

.Composer[data-busy] .Composer_Stop {
  display: inline-flex;
}
.Composer[data-busy] .Composer_Send {
  margin-left: 0;
}

/* Where the form rides over what scrolls under it, it covers that with the
   paper it lies on, faded in over its first rem: the floor's fill, its grain
   too, so the band reads as the page and not a flat sheet over it. The paint
   is a layer behind the form's own, masked, so the fade takes the grain with
   the colour. A page may hold the form in place (sticky), so its position is
   only a default. */
:where(.Composer_Form) {
  position: relative;
}
.Composer_Form {
  isolation: isolate;
  gap: .75rem;
}
.Composer_Form::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--floor-fill, var(--bg-fill, var(--bg)));
  mask-image: linear-gradient(transparent, #000 1rem);
  pointer-events: none;
}
.Composer_Form-inline::before {
  content: none;
}

@container workspace (min-width:54rem) {
  .Composer_Figure {
    right: calc(100% + .75rem);
    bottom: 0;
    left: auto;
    width: 4rem;
    height: 4rem;
  }
}

}
@layer components {
.Popover_Trigger {
  gap: .3rem;
  font-variant-numeric: tabular-nums;
}
.Popover_Trigger .Dot {
  width: .55rem;
  height: .55rem;
}
.Popover_Count {
  color: var(--muted);
  font-size: var(--fine, var(--small));
  font-weight: 700;
}
.Popover_Line {
  margin: 0;
}

.Popover[hidden],
.Popover [hidden] {
  display: none;
}
.Popover_Body {
  display: none;
  gap: .75rem;
  padding: var(--popover-padding, .5rem);
  background: var(--popover-background, var(--bg));
  border: var(--popover-border, 1px solid var(--border2));
  border-radius: var(--radius);
  box-shadow: var(--popover-shadow, 0 .5rem 1.5rem color-mix(in srgb,
    var(--text) 12%, transparent));
}
.Popover[data-open] .Popover_Body {
  display: grid;
}

@container workspace (min-width:76rem) {
  .Popover-responsive .Popover_Trigger {
    display: none;
  }
  .Popover-responsive .Popover_Body {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
}

}
@layer components {
.Skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--card);
  z-index: 1;
}
.Skip:focus {
  top: 1rem;
}

}
@layer components {
/* The top of a page: the title large and ink, with its id and kind small
   beside it; what it is under it, muted; then the facts, small and muted,
   dotted apart. Whatever follows it starts a gap below. */
.Head {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.Head + * {
  margin-top: var(--gap);
}
.Head_Title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--half-gap);
  min-width: 0;
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
  overflow-wrap: anywhere;
}
a.Head_Title {
  text-decoration: none;
}
.Head_Link {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  a.Head_Title:hover,
  .Head_Link:hover {
    text-decoration: underline;
  }
}
.Head_Id,
.Head_Kind {
  font-size: var(--small);
  font-weight: normal;
  color: var(--muted);
}
.Head_Id {
  font-family: var(--mono);
}
.Head_Sub {
  margin: 0;
  color: var(--muted);
  max-width: var(--measure);
}
.Head_Sub-refused {
  color: var(--negative);
}
.Head_Facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--half-gap);
  font-size: var(--small);
  color: var(--muted);
}
.Head_Sep {
  color: var(--dim);
}

.Head_Eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: var(--fine, var(--small));
}
.Head_Title-page {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: .15rem 0 0;
}
.Head_Period {
  margin: .25rem 0 0;
  font-size: var(--small);
}
.Head_Address {
  font-size: var(--fine, var(--small));
  text-decoration: none;
  color: var(--muted);
}
@media (max-width: 700px) {
  .Head_Title-page {
    font-size: 1.5rem;
  }
}

.Head_Title-page {
  font-weight: 800;
}

}
@layer components {
/* An app's frame: the sidebar on the surface at the left, the page on the
   floor beside it. Search is a box at its top, the field bare inside it. A
   place is a line you can press, its icon then its name in the body's type;
   where you are is lit. The page's bar is one quiet line,
   its title in the text's ink then the page's tools; the body under it
   scrolls on its own.
   Narrower than a tablet, the sidebar folds away behind the bar's menu and
   slides over the page when opened, a shade behind it.
   --floor is the paper the page lies on, the floor itself or, in
   Shell-sheet, a sheet on it. --floor-fill is that colour under the skin's
   --texture: the body and the aside paint it, and a sidebar's tab that opens
   into the page fills with it, so the two are the one paper. The sidebar and
   the bar paint the skin's --surface-fill, so no pane is flat.
   It is as tall as what a person sees, --viewport-height where a page
   holds it (@yaks/ux's Conversation does), so a phone's keyboard shortens
   it and its body rather than scrolling the page. */
.Shell {
  --floor: var(--bg);
  --floor-fill: var(--texture, none), var(--floor);
  display: flex;
  height: var(--viewport-height, 100dvh);
  min-height: 0;
  background: var(--floor);
}
.Shell-sheet {
  --floor: var(--card);
  --floor-fill: var(--texture, none), var(--floor);
}

.Shell_Side {
  flex: 0 0 15rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  overflow-y: auto;
  padding: calc(var(--gap) + env(safe-area-inset-top, 0px)) var(--half-gap)
    var(--gap);
  background: var(--surface-fill, var(--surface));
  border-right: 1px solid var(--border);
}
.Shell_Brand {
  padding: 2px 10px var(--gap);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.Shell_Find {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: max(2rem, var(--tap));
  margin: 0 0 var(--gap);
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
}
.Shell_Find:focus-within {
  border-color: var(--accent);
}
.Shell_Find > :not(.Shell_Icon) {
  flex: 1;
  min-width: 0;
}
.Shell_Item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: max(2rem, var(--tap));
  padding: 0 10px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .Shell_Item:hover {
    background: var(--soft);
  }
}
.Shell_Item-on {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  font-weight: 600;
}
.Shell_Icon {
  flex: none;
  display: inline-flex;
  color: var(--muted);
}
.Shell_Glyph {
  width: 16px;
  height: 16px;
}
.Shell_Item-on .Shell_Icon {
  color: var(--accent);
}
.Shell_Label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Shell_Count {
  flex: none;
  font-size: var(--small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.Shell_Main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.Shell_Bar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 3rem;
  padding: calc(var(--half-gap) + env(safe-area-inset-top, 0px))
    calc(var(--gap) + env(safe-area-inset-right, 0px)) var(--half-gap)
    calc(var(--gap) + env(safe-area-inset-left, 0px));
  background: var(--surface-fill, var(--surface));
  border-bottom: 1px solid var(--border);
}
.Shell_Menu {
  display: none;
}
.Shell_Title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--half-gap);
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.Shell_Tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 0;
}
.Shell_Tools:empty {
  display: none;
}
.Shell_Body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column; /* a page that fills the floor takes flex: 1 */
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--floor-fill);
}
.Shell_Shade {
  display: none;
}

@media (max-width: 44rem) {
  .Shell_Side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: min(85vw, 18rem);
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    border-right: 0;
  }
  .Shell-open .Shell_Side {
    transform: none;
    box-shadow: var(--shadow);
  }
  .Shell-open .Shell_Shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--text) 25%, transparent);
  }
  .Shell_Menu {
    display: inline-flex;
    margin-left: calc(var(--half-gap) * -1);
  }
  .Shell_Bar {
    flex-wrap: wrap;
    row-gap: var(--half-gap);
  }
  .Shell_Tools {
    flex: 1 0 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

.Shell_Content {
  font-size: var(--small);
}

/* What sits at the page's right: a pane the window's height that scrolls
   apart from the page, so the page centers in the width left beside it.
   Shut, it leaves the full width to the page. Narrower than a laptop it
   stands only while it is the address's target, over the page from the right,
   its edge casting a shadow on the page. */
.Shell_Aside {
  flex: 0 0 var(--shell-aside, 20rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: var(--viewport-height, 100dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--border);
  background: var(--floor-fill);
}
.Shell_Aside[hidden],
.Shell-shut .Shell_Aside {
  display: none;
}
@media (max-width: 68.75rem) {
  .Shell_Aside {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 10;
    width: min(26rem, 100vw);
    height: auto;
    box-shadow: -.25rem 0 1.5rem color-mix(in srgb, var(--text) 18%,
      transparent);
  }
  .Shell_Aside:not(:target, :has(:target)) {
    display: none;
  }
  .Shell_Aside:is(:target, :has(:target)):not([hidden]) {
    display: flex;
  }
}

}
@layer components {
.AppShell {
  display: flex;
  flex-direction: column;
  height: var(--viewport-height, 100dvh);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--text, CanvasText);
  background: var(--bg, Canvas);
}

.AppShell-fill {
  height: 100%;
}

.AppShell_Bar,
.AppShell_Status {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--half-gap, .5rem);
  min-width: 0;
  padding-inline: max(var(--gap, 1rem), env(safe-area-inset-left))
    max(var(--gap, 1rem), env(safe-area-inset-right));
  background: var(--surface-fill, var(--surface, Canvas));
}

.AppShell_Bar {
  flex-wrap: wrap;
  min-height: 3rem;
  padding-block: calc(.375rem + env(safe-area-inset-top)) .375rem;
  border-bottom: 1px solid var(--border, light-dark(#ddd, #444));
}
@supports not (color: light-dark(#000, #fff)) {
.AppShell_Bar {
  border-bottom: 1px solid var(--border, #ddd);
}
@media (prefers-color-scheme: dark) {
.AppShell_Bar {
  border-bottom: 1px solid var(--border, #444);
}
}
}

.AppShell_Label {
  margin: 0;
  color: var(--heading, var(--text, CanvasText));
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.AppShell_Body,
.AppShell_Main,
.AppShell_Canvas {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
}

.AppShell_Body,
.AppShell_Canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.AppShell_Body {
  display: flex;
}

.AppShell_Main,
.AppShell_Panel {
  overflow: auto;
  overscroll-behavior: contain;
}

.AppShell_Main-canvas {
  overflow: hidden;
}

.AppShell_Float {
  position: absolute;
  z-index: 3;
  inset-block-start: var(--gap, 1rem);
  inset-inline-start: var(--gap, 1rem);
  display: flex;
  gap: var(--half-gap, .5rem);
  max-width: calc(100% - 2 * var(--gap, 1rem));
  max-height: calc(100% - 2 * var(--gap, 1rem));
}

.AppShell_Float-top-end,
.AppShell_Float-bottom-end {
  inset-inline-start: auto;
  inset-inline-end: var(--gap, 1rem);
}

.AppShell_Float-bottom-start,
.AppShell_Float-bottom-end {
  inset-block-start: auto;
  inset-block-end: var(--gap, 1rem);
}

.AppShell_Panel {
  flex: 0 0 var(--app-panel-width, 20rem);
  padding: var(--gap, 1rem);
  background: var(--surface-fill, var(--surface, Canvas));
  border-inline-end: 1px solid var(--border, light-dark(#ddd, #444));
}
@supports not (color: light-dark(#000, #fff)) {
.AppShell_Panel {
  border-inline-end: 1px solid var(--border, #ddd);
}
@media (prefers-color-scheme: dark) {
.AppShell_Panel {
  border-inline-end: 1px solid var(--border, #444);
}
}
}

.AppShell_Panel-end {
  order: 1;
  border-inline-start: 1px solid var(--border, light-dark(#ddd, #444));
  border-inline-end: 0;
}
@supports not (color: light-dark(#000, #fff)) {
.AppShell_Panel-end {
  border-inline-start: 1px solid var(--border, #ddd);
}
@media (prefers-color-scheme: dark) {
.AppShell_Panel-end {
  border-inline-start: 1px solid var(--border, #444);
}
}
}

.AppShell_Panel[hidden] {
  display: none;
}

.AppShell_Status {
  min-height: 1.75rem;
  padding-block: .125rem calc(.125rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border, light-dark(#ddd, #444));
  font-size: var(--small, .8125rem);
  color: var(--muted, CanvasText);
}
@supports not (color: light-dark(#000, #fff)) {
.AppShell_Status {
  border-top: 1px solid var(--border, #ddd);
}
@media (prefers-color-scheme: dark) {
.AppShell_Status {
  border-top: 1px solid var(--border, #444);
}
}
}

@media (max-width: 44rem) {
  .AppShell_Panel {
    position: absolute;
    z-index: 1;
    inset-block: 0;
    inset-inline: 0 auto;
    width: min(90%, var(--app-panel-width, 20rem));
    box-shadow: var(--shadow, 0 2px 10px #0003);
  }

  .AppShell_Panel-end {
    inset-inline: auto 0;
  }
}

}
@layer components {
.IconButton {
  position: relative;
  justify-content: center;
  min-height: max(44px, var(--tap, 0px));
  min-width: max(44px, var(--tap, 0px));
  padding: 0;
}

.IconButton_Label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.IconButton[aria-expanded='true'] {
  background: var(--soft);
  color: var(--text);
}

}
@layer components {
/* Keys beside their values: the keys a column as wide as the widest, small
   and muted so the value reads first, the values the rest of the row. */
.Pairs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px var(--gap);
  align-items: baseline;
  margin: 0;
}
.Pairs_Key {
  font-size: var(--small);
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: var(--half-gap);
}
.Pairs_Value {
  margin: 0;
  min-width: 0;
}

.Pairs-nested {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: .2rem;
  margin: 0;
}
.Pairs_Row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: .6rem;
}
.Pairs_Key {
  color: var(--muted);
}
.Pairs_Value {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.Pairs-nested .Pairs-nested > .Pairs_Row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (max-width: 700px) {
  .Pairs_Row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

}
@layer components {
/* A plain parent of sibling cards gets the same gap. A named layout can
   still arrange its own children, such as Cards putting them in columns. */
.Stack:not(:where([hidden])),
:where(:not([hidden]):has(> .Card ~ .Card)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--gap);
  min-width: 0;
}
.Stack > :where(*) {
  margin: 0;
}

}

/* What every yaks.app page shares beside the kit (@yaks/ui, in _ui.css: the
   linen theme and the pencil skin, whose tokens draw yaks.app's lines): its
   face, Nunito, and the paints and measures its pages keep that are no
   theme's roles. */

/* Nunito, served from here so a first paint waits on no other site. One
   variable file per subset, and a page only fetches the subsets its text uses. */
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-display: swap;
  src: url(nunito-cyrillic-ext.88985ca614.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-display: swap;
  src: url(nunito-cyrillic.63b14e3ef0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-display: swap;
  src: url(nunito-vietnamese.61e5958cf3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
    U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-display: swap;
  src: url(nunito-latin-ext.2c8d792869.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-display: swap;
  src: url(nunito-latin.ba344451ea.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer tokens {
  :root {
    /* Paints of yaks.app's own pages: the person's bubble and the
       assistant's, and the ground of an embedded app's preview, which
       matches the app in either scheme. */
    --mine: light-dark(#f8e0c8, #4e3b32); /* blush; ember */
    --theirs: light-dark(#e5eef5, #34404a); /* sky; dusk */
    --preview: #33493c; /* forest */

    /* Type, beside the theme's --size and --small. */
    --lead: 1.125rem;
    --fine: 0.875rem; /* what describes a thing: a hint, a status, a count */

    /* Space. The gaps derive from the theme's --gap, and the frame a page
       is drawn in — header to footer, style.css — is --measure and the four
       after it: a page kind re-points them on its own <body>, and a page
       that names no kind is one reading column with nothing beside it, its
       sections a rhythm apart so no two of them ever touch. */
    --wide-measure: 72rem; /* multi-column layouts */
    --side: 0px; /* a sidebar before the reading column */
    --aside: 0px; /* a gutter after it */
    --rhythm: 2rem; /* how far apart what fills the column sits */
    --quarter-gap: calc(var(--gap) / 4);
    --half-gap: calc(var(--gap) / 2);
    --wide-gap: calc(var(--gap) * 1.5);

    /* What floats over the page (an open menu, a chart's tip) is drawn at
       --float, above every raised part in the flow: a current tab, a
       selected tab, a chart. */
    --float: 10;
  }
@supports not (color: light-dark(#000, #fff)) {
:root {
  --mine: #f8e0c8;
  --theirs: #e5eef5;
}
@media (prefers-color-scheme: dark) {
:root {
  --mine: #4e3b32;
  --theirs: #34404a;
}
}
}
}

/* Home's signed-in view (@yaks/web/ready): a layer over Home, drawn by the
   sheet both share so a press shows its frame (`aria-busy`, a Loading line)
   before the workspace's own sheet is in. */
@layer sections {
  .Site_Workspace {
    position: fixed;
    inset: 0;
    z-index: 1;
    contain: layout paint;
    overflow: hidden;
    overscroll-behavior: contain;
    will-change: opacity;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
  }
  .Site_Workspace[aria-busy] {
    display: grid;
    place-items: center;
  }
  .Site_Workspace[inert] {
    opacity: 0;
  }
  [data-site-home] {
    isolation: isolate;
  }
  /* On touch screens stop painting the Home scene behind the Operator.
     Home stays laid out so Back keeps its scroll. */
  @media (pointer: coarse) {
    [data-site-views] [data-site-home] {
      will-change: opacity;
    }
    [data-site-views] [data-site-home][inert] {
      opacity: 0;
    }
  }
}

@layer sections {
  .ConnectedAgents_Status {
    color: var(--muted);
    font-size: var(--small);
  }

  .ConnectedConversation {
    min-width: 0;
    border-block-start: 1px solid var(--border);
  }

  .ConnectedConversation_Summary {
    display: grid;
    grid-template-columns: .55rem minmax(0, 1fr) auto;
    gap: .1rem .45rem;
    align-items: center;
    padding: .4rem .25rem;
    color: var(--text);
    line-height: 1.35;
  }

  .ConnectedConversation_Summary::before {
    color: var(--muted);
  }

  .ConnectedConversation_Name,
  .ConnectedConversation_Latest,
  .ConnectedCall_Action,
  .ConnectedCall_Target,
  .ConnectedCall_Result {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ConnectedConversation_Latest {
    grid-column: 2 / -1;
    color: var(--muted);
    font-weight: normal;
  }

  .ConnectedConversation_Latest:empty {
    display: none;
  }

  .ConnectedConversation[data-idle] .ConnectedConversation_Name {
    color: var(--muted);
  }

  .ConnectedConversation_Age {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: normal;
    white-space: nowrap;
  }

  .ConnectedConversation_Age[data-working] {
    color: var(--positive);
    font-weight: 700;
  }

  .ConnectedConversation_Age[data-working]::before {
    display: inline-block;
    width: .42rem;
    height: .42rem;
    margin-inline-end: .35rem;
    border-radius: 50%;
    background: currentColor;
    content: '';
    vertical-align: .12em;
  }

  .ConnectedConversation_Steps {
    list-style: none;
    margin: 0 0 .35rem .35rem;
    padding: 0 0 0 .45rem;
    border-inline-start: 1px solid var(--border2);
  }

  .ConnectedCall {
    min-width: 0;
    border-block-start: 1px solid var(--border);
  }

  .ConnectedCall:first-child {
    border-block-start: 0;
  }

  .ConnectedCall_Summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) fit-content(27%)
      fit-content(29%) .35rem;
    gap: .3rem;
    align-items: center;
    padding: .3rem .15rem;
    color: var(--text);
    font-weight: normal;
    line-height: 1.3;
  }

  .ConnectedCall_Summary::before {
    grid-column: 6;
    grid-row: 1;
    color: var(--muted);
    width: .3em;
    height: .3em;
  }

  .ConnectedCall_Time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }

  .ConnectedCall_Icon {
    color: var(--muted);
  }

  .ConnectedCall_Target {
    grid-column: 4;
    color: var(--link);
    text-decoration: underline;
  }

  .ConnectedCall_Result {
    grid-column: 5;
    color: var(--muted);
  }

  .ConnectedCall[data-failed] .ConnectedCall_Result {
    color: var(--negative);
    font-weight: 700;
  }

  .ConnectedCall_Summary:hover,
  .ConnectedConversation_Summary:hover {
    background: var(--hover);
  }

  .ConnectedCall_Body {
    gap: .2rem;
    margin: 0 0 .45rem;
    padding: .25rem .4rem;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: var(--small);
  }

  .ConnectedCall_Tool {
    justify-self: start;
  }

  .ConnectedCall_Viewer:empty {
    display: none;
  }
}


@layer base {
  * {
    box-sizing: border-box;
  }
  body:not([data-site-views]),
  .Site_Workspace {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--text);
    font: 400 var(--size)/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
  }
  :where(body:not([data-site-views]), .Site_Workspace) main {
    width: 100%;
    max-width: 34rem;
    padding: 2rem 1rem;
    text-align: center;
    overflow-wrap: anywhere;
  }
  :where(body:not([data-site-views]), .Site_Workspace) h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .5rem;
  }
  :where(body:not([data-site-views]), .Site_Workspace) :is(h2, h3) {
    line-height: 1.3;
  }
  :where(body:not([data-site-views]), .Site_Workspace) p {
    color: var(--muted);
    margin: 0 0 1rem;
  }
  a {
    color: var(--accent);
    text-underline-offset: .18em;
  }
  :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }
  :where(body:not([data-site-views]), .Site_Workspace) form {
    display: grid;
    gap: .75rem;
    margin: 1.5rem 0 1rem;
  }
  :where(body:not([data-site-views]), .Site_Workspace) form p {
    margin: 0;
    font-size: var(--small);
  }
  :where(body:not([data-site-views]), .Site_Workspace) input {
    text-align: center;
  }
  code {
    font-family: var(--mono);
    font-size: .875em;
    background: var(--bg);
    padding: .1rem .35rem;
    overflow-wrap: anywhere;
  }
}

@layer sections {
  .Code {
    letter-spacing: .5em;
    font-size: 1.4rem;
    font-weight: 700;
  }
  .Again {
    margin-top: 0;
  }
  .Away {
    font-size: var(--small);
  }
  .Url_Code {
    display: inline-block;
    padding: .5rem 1rem;
    background: var(--card);
    font-size: var(--small);
  }
  main > .Card,
  main > .More {
    margin: 0 0 1rem;
  }
  main > :is(.Card, .More),
  main > .Stack > .Card {
    text-align: left;
  }
  .Card .Card_Title,
  .Card .Body_Heading-2 {
    font-size: 1rem;
    font-weight: 800;
  }
  .Card_List,
  .Card .Body_Ordered {
    display: grid;
    gap: .4rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: var(--small);
  }
  .Card :is(.Card_Item, .Body_Item, .Rows_Item, .Directory_Item, .Files_Item)::marker {
    color: var(--accent);
    font-weight: 700;
  }
  .Card_Pre,
  .Card .Body_Source {
    margin: 0;
    white-space: pre-wrap;
    font: inherit;
    color: var(--muted);
    text-align: left;
  }
  .Note {
    font-size: var(--fine);
    margin: .75rem 0 0;
  }
  .Card > .Note {
    margin: 0;
  }
  main > nav.Chips {
    justify-content: center;
    margin: 0 0 1.25rem;
  }
  .Files {
    display: grid;
    gap: .3rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: var(--small);
  }
  .Fields {
    display: grid;
    gap: .55rem;
    margin: 0;
  }
  .Fields_Row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
  }
  @media (max-width: 480px) {
    .Fields_Row {
      grid-template-columns: minmax(0, 1fr);
      gap: .25rem;
    }
  }
  .Fields_Label {
    color: var(--text);
    font-size: var(--small);
    font-weight: 700;
  }
  .Fields_Value {
    min-width: 0;
    margin: 0;
  }
  .Connect_Icon {
    display: flex;
    align-items: center;
    gap: .65rem;
  }
  .Connect_Image {
    display: block;
    width: 56px;
    height: 56px;
    border: 1px solid var(--border);
  }
  .Connect_Setup {
    margin: 0 0 1.5rem;
    text-align: left;
  }
  .Connect_Path {
    margin: .25rem 0 0;
    font-size: var(--small);
    font-weight: 800;
  }
  .Connect_Next {
    display: grid;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
  }
  .Connect_Lead {
    margin: 0;
    color: var(--text);
    font-weight: 800;
  }

  /* A person's invite (pages.ts `invitation`), shown to a friend on a phone:
     the code is what the page is for, so it is centred and as wide as the
     column allows, up to what a camera reads from across a table. */
  .Invite_Way {
    text-align: center;
  }
  /* The link beside the codes: to copy, and to share where the browser
     can (@yaks/platform/invite-browser). */
  .Invite_Link {
    display: grid;
    gap: .75rem;
    justify-items: start;
  }
  .Invite_Link .Copy {
    max-width: 100%;
  }
  .Invite_Lead {
    margin: 0 0 .75rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
  }
  .Invite_Code {
    display: block;
    width: min(100%, 20rem);
    margin: 0 auto 1rem;
  }
  .Qr {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
  }
  .Invite_Words {
    margin: 0 auto .75rem;
    max-width: 22rem;
    color: var(--text);
    font-weight: 700;
  }
  .Invite_Way .Note {
    max-width: 30rem;
    margin: 0 auto;
  }

  /* The dashboard's frame: the side with the brand and the tabs, and the body
     the current tab leans into. What fills the body is the style guide's cards,
     rows and forms (@yaks/ui, _ui.css); only what no other page draws is here.
     The frame fills the window, as the chat app's does, so the body's paper
     runs to the window's right edge; its content keeps its own width. */
  /* A TV (screen.ts): seen across a room, so the code is large; once
     paired, the draft fills the screen edge to edge, and each change it
     takes is said in a line over its corner. */
  .Tv_Main {
    max-width: 48rem;
  }
  .Tv_Code {
    margin: 1.5rem 0;
    color: var(--text);
    font: 700 clamp(2.5rem, 9vw, 6rem)/1 var(--mono);
    letter-spacing: .08em;
  }
  .Tv_Qr {
    display: block;
    width: min(60vw, 14rem);
    margin: 0 auto 1.5rem;
  }
  .Tv:has(.Tv_Frame) .Tv_Main {
    max-width: none;
    padding: 0;
  }
  .Tv_Frame {
    display: block;
    width: 100vw;
    height: 100vh;
    border: 0;
  }
  .Tv_Said {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    max-width: calc(100vw - 4rem);
    margin: 0;
    padding: .6rem 1.1rem;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
  }
  .Tv_Said:empty {
    display: none;
  }
  /* The frame a signed-in page stands in (frame.ts), the Operator's chat
     and the settings pages alike: the kit's Shell, the window's height, the
     side (sidebar.ts) beside the page's column and any panes beside that.
     The column's bar stays put over its body, which scrolls down. The bar's
     Menu shows only where the side is folded away, and on a page that names
     itself in its own head, so does the bar. */
  .Framed {
    display: block;
    height: var(--viewport-height, 100dvh);
    min-height: 0;
    overflow: clip;
  }
  .Framed_Main {
    max-width: none;
    padding: 0;
    text-align: left;
  }
  /* What the column holds is sized to it: the yak beside the Operator's
     box (operator-page.ts `composer`), and what its bar opens. */
  .Frame_Column {
    container: workspace / inline-size;
  }
  /* WebKit extends the solid colour of an edge-pinned bar into the status
     area. Keep the controls below any inset the viewport exposes. */
  /* As tall as a card's head beside it: its padding and its presses. */
  .Frame_Bar {
    --toolbar-padding-block: .5rem;
    --frame-bar-gutter: 1.25rem;
    --control-height: 2rem;
    anchor-name: --frame-bar;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-block-start: calc(var(--toolbar-padding-block) +
      env(safe-area-inset-top, 0px));
    padding-inline: max(var(--frame-bar-gutter), env(safe-area-inset-left, 0px))
      max(var(--frame-bar-gutter), env(safe-area-inset-right, 0px));
  }
  .Frame_Heading {
    flex: auto;
  }
  .Frame_Menu {
    display: none;
  }
  .Frame_MenuWord {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* The body keeps what it raises (a selected tab, a chart, the box held
     at its foot) to itself, so the side, the bar and what they open over
     it lie above it all. */
  .Frame_Body {
    isolation: isolate;
    overflow: hidden auto;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right,
      0px);
  }
  /* A page pressed for and not yet come: what stands waits, quietly, and
     only if the wait is noticeable. */
  .Frame_Body[aria-busy='true'] {
    opacity: 0.6;
    transition: opacity 0.2s 0.15s;
  }
  /* The title bar holds the panel's controls in both layouts. */
  .Frame_AsideBody {
    padding: calc(1rem + env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      calc(1rem + env(safe-area-inset-bottom, 0px)) 1rem;
  }
  .Frame_AsideBody > :not([hidden]) ~ * {
    margin-top: .75rem;
  }
  .Frame_AsideTools {
    flex: none;
  }
  /* The toggle posts its form, which lays out as the button alone, so the
     bar stands a button tall rather than a page's form tall. */
  .Frame_AsideFold {
    display: contents;
  }
  .Frame_AsideOpen,
  .Frame_AsideClose,
  .Frame_AsideUnshut,
  .Shell-shut .Frame_AsideShut {
    display: none;
  }
  .Shell-shut .Frame_AsideUnshut {
    display: inline-flex;
    align-items: center;
    gap: var(--half-gap);
  }
  .Frame:not(:has(.Frame_AsideBody > :not([hidden]))) :is(.Frame_Aside, .Frame_AsideTools) {
    display: none;
  }
  /* The overlay starts below the title bar so Close stays in the same slot.
     Beside an app, switch to the overlay sooner to leave room for the chat. */
  @media (max-width: 68.75rem) {
    .Framed {
      --frame-aside-overlay: 1;
    }
  }
  @media (max-width: 1399px) {
    .Framed:has(.Talk-app) {
      --frame-aside-overlay: 1;
    }
  }
  @container style(--frame-aside-overlay: 1) {
    .Frame_AsideOpen {
      display: inline-flex;
    }
    .Frame_AsideFold,
    .Frame_Aside:not(:target, :has(:target)),
    .Frame:has(.Frame_Aside:is(:target, :has(:target))) .Frame_AsideOpen {
      display: none;
    }
    .Frame:has(.Frame_Aside:is(:target, :has(:target))) .Frame_AsideClose {
      display: inline-flex;
    }
    /* Laid over the page whether open or shut, so it slides out where it
       stood (@yaks/ui Layer); only its display waits on the address. */
    .Frame_Aside {
      --frame-aside-top: calc(4rem + env(safe-area-inset-top, 0px));
      position: fixed;
      inset: var(--frame-aside-top) 0 0 auto;
      top: anchor(--frame-bar bottom, var(--frame-aside-top));
      z-index: 10;
      width: min(26rem, 100vw);
      height: auto;
      box-shadow: -.25rem 0 1.5rem color-mix(in srgb, var(--text) 18%,
        transparent);
    }
    .Frame_Aside:is(:target, :has(:target)) {
      display: flex;
    }
    .Frame_AsideBody {
      padding-top: 1rem;
    }
  }
  @media (min-width: 701px) {
    .Frame-headed .Frame_Bar {
      display: none;
    }
  }
  @media (max-width: 700px) {
    .Frame_Bar {
      --frame-bar-gutter: 1rem;
    }
    .Frame_Sub {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .Frame_Menu {
      display: inline-flex;
    }
  }
  @media (max-width: 26rem) {
    .Frame_AsideBody {
      padding-left: max(1rem, env(safe-area-inset-left, 0px));
    }
  }
  .Desk_Logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap);
  }

  .Desk_Logo .Drop {
    flex: 1;
    min-width: 12rem;
  }
  /* The sheet fills the frame's body, to the window's foot. Its contents
     list (@yaks/ui `Contents`) is the menu under its head, or, where the
     body has room, a column beside it that stays in sight as it scrolls. */
  .Desk_Body {
    flex: 1 0 auto;
    grid-template-columns: minmax(0, 52rem);
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  }
  .Desk_Contents {
    position: static;
  }
  .Frame_Body:has(> .Desk_Body) {
    container-type: inline-size;
  }
  @container (min-width: 64rem) {
    .Desk_Body:has(> .Desk_Contents:not([hidden])) {
      grid-template-columns: minmax(0, 52rem) 13rem;
      column-gap: 2.5rem;
    }
    .Desk_Head,
    .Desk_Content {
      grid-column: 1;
    }
    .Desk_Contents {
      position: sticky;
      grid-column: 2;
      grid-row: 2;
    }
  }
  .Desk_Head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 52rem;
  }
  .Desk_Head .Button {
    flex: none;
  }
  .Desk_Content {
    max-width: 52rem;
  }
  .Operator_SettingStatus:empty {
    position: absolute;
  }
  .Connection_Section {
    clear: both;
    border-block-start: 1px solid var(--border2);
    padding-block-start: var(--card-gap);
    margin-block-start: var(--card-gap);
  }
  .Connection_Section > .Section_Title {
    font-size: 1rem;
  }
  .Connection_Section > .Card_Sub {
    margin: 0;
  }
  .Connection_Apps {
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .Connection_Apps > .Section + .Section {
    margin: 0;
  }
  .Connection_Section > .Connection_Attach {
    margin-block-start: var(--half-gap);
  }
  .Connection_Trash {
    border-block-start: 1px solid var(--border2);
    padding-block-start: var(--half-gap);
  }
  .Connection_TrashItems:not([hidden]) {
    display: grid;
    gap: var(--half-gap);
    margin-block-start: var(--half-gap);
  }

  .Identity_Cards {
    max-width: 18rem;
    margin: 1.5rem auto 0;
    text-align: left;
  }

  /* The picture of the app a stranger signs in to copy (signin-pages.ts
     `copying`): its card's picture, cropped from its top as the gallery's. */
  .Pictured {
    margin: 1.5rem 0 0;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
  }
  .Pictured_Image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .Data_Main {
    max-width: 44rem;
    text-align: left;
  }
  .Data_Main > .Card {
    margin-bottom: 1rem;
  }
  .Data_Main .Card > .Field {
    margin-bottom: .75rem;
  }
  .Data_Image {
    max-width: 6rem;
    max-height: 6rem;
  }
  .Fix_Said {
    color: var(--text);
    font-family: var(--mono);
    font-size: var(--fine);
    overflow-wrap: anywhere;
  }
  .Desk_More {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin: 0;
  }
  .Desk_Options {
    display: grid;
    gap: var(--gap);
    align-items: start;
  }
  .Desk_Ask {
    margin: 0;
  }
  .Desk_Words {
    width: 100%;
    min-height: 4.5rem;
    resize: vertical;
  }
  @media (min-width: 1100px) {
    .Desk_Options {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 700px) {
    .Desk_Body {
      padding: 1.5rem 1rem 2.5rem;
    }
  }

  /* The agents a person connected, as rows (@yaks/platform/agents-view), or the ones
     with a web home as a line of links to open them. */
  .Agents-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .Agents_Open {
    display: inline-flex;
    align-items: center;
    gap: var(--quarter-gap);
    color: var(--accent);
    font-size: var(--small);
    font-weight: 700;
    text-underline-offset: .18em;
    white-space: nowrap;
  }

  /* An invitation not yet taken, in a person's row (render/held.ts). */
  .People_Waiting {
    color: var(--negative);
  }

  /* The admin's directory (admin.ts): a search bar, and one card of rows with
     hairlines between them, as the style guide draws .Rows, each saying what
     it uses, each figure under the word for it; one column on a phone. */
  .Directory_Bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin: 0 0 1.5rem;
  }
  .Directory_Find {
    display: flex;
    gap: .5rem;
    flex: 1 1 20rem;
    max-width: 30rem;
    margin: 0;
  }
  .Directory_Find .Field {
    flex: 1;
  }
  .Directory_Toggle {
    font-size: .9rem;
  }
  /* A card of rows edge to edge, a hairline between each. Each row sits in
     its own <li>, and the end rows round off with the card. */
  .Directory {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .Directory > .Directory_Item + .Directory_Item {
    border-top: 1px solid var(--border);
  }
  .Directory > .Directory_Item:first-child > .Directory_Row {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
  }
  .Directory > .Directory_Item:last-child > .Directory_Row {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }
  .Directory_Row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    align-items: center;
    gap: .5rem 1.5rem;
    padding: .85rem 1.25rem;
  }
  @media (hover: hover) and (pointer: fine) {
    .Directory_Row:hover {
      background: color-mix(in srgb, var(--bg), var(--card) 55%);
    }
  }
  .Directory_Who {
    display: grid;
    gap: .1rem;
    min-width: 0;
  }
  .Directory_Open {
    color: var(--text);
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .Directory_Open::after {
    content: '';
    position: absolute;
    inset: 0;
  }
  .Directory_Open:focus-visible {
    outline: 0;
  }
  .Directory_Open:focus-visible::after {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }
  .Directory_Sub {
    color: var(--muted);
    font-size: .85rem;
    overflow-wrap: anywhere;
  }
  .Directory_Uses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem 1rem;
    margin: 0;
  }
  .Directory_Label {
    color: var(--muted);
    font-size: .8rem;
  }
  .Directory_Value {
    margin: 0;
    font-variant-numeric: tabular-nums;
  }
  .Directory_Facts > .Fields_Row {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
  /* A release's message keeps the lines its deployer wrote. */
  .Directory_Said {
    margin: 0;
    white-space: pre-wrap;
  }
  .Directory_Facts .Fields_Label {
    font-weight: 700;
    color: var(--muted);
  }
  /* The Spending page's notes on what its rows record. */
  .Spending_Note {
    margin: 0.5rem 0 0;
    font-size: var(--small);
    color: var(--muted);
  }
  @media (max-width: 700px) {
    .Directory_Row {
      grid-template-columns: minmax(0, 1fr);
    }
    .Directory_Uses {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .Directory_Facts > .Fields_Row {
      grid-template-columns: 8rem minmax(0, 1fr);
    }
  }
  /* The Operator's chat app (operator-page.ts `chatPage`), in the frame
     (frame.ts): one conversation filling the column, read down it with the
     box to write in held at the foot of the window, and at its right the
     person's lists that do not wait on them (talk-beside.ts). Each pane scrolls within the
     window; the whole side scrolls together (`.Sidebar_Scroll`). */
  .Talk_Back,
  .Talk_Show {
    display: none;
  }
  /* In the frame's aside: what the conversation is doing now, then the
     person's lists, each under its own title. */
  .Talk_Aside,
  .Talk_Lists {
    display: grid;
    align-content: start;
    gap: .75rem;
  }
  .Talk_Aside[hidden],
  .Talk_Lists[hidden] {
    display: none;
  }
  /* The summary the bar's button to the aside wears: a dot for the turn and
     each helper, and how many more. */
  .Talk_Glance {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-variant-numeric: tabular-nums;
  }
  .Talk_Glance:empty {
    display: none;
  }
  .Talk_Glance .Dot {
    width: .55rem;
    height: .55rem;
  }
  /* The bar's button to the app, named for it: a button is one line tall,
     so a long name is cut short rather than wrapped out of it on a phone. */
  .Talk_Show {
    min-width: 0;
    max-width: 50%;
  }
  /* An Operator page's views (talk-views.ts): the one shown fills the body
     as the body's own column would. One standing hidden takes no room and
     draws nothing, but keeps how it was laid out, so showing it again is a
     frame rather than a layout of the whole view (content-visibility). */
  .Talk_View {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
  }
  .Talk_View[hidden] {
    display: flex;
    flex: none;
    height: 0;
    overflow: hidden;
    content-visibility: hidden;
  }
  .Frame_Aside[hidden],
  .Frame_AsideTools[hidden] {
    display: none;
  }
  /* A space's Dashboard (@yaks/platform/dashboard-view): its apps across
     the top, the box to ask its Operator under them, then what its agents
     did beside its Updates on a wide screen, and one above the other on a
     phone, Updates first. */
  .Dash {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
    text-align: left;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "apps" "ask" "updates" "work";
  }
  @media (min-width: 1000px) {
    .Dash {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      grid-template-areas: "apps apps" "ask ask" "work updates";
      padding: 1.5rem 2rem;
    }
  }
  .Dash_Apps {
    grid-area: apps;
  }
  .Dash_Ask {
    grid-area: ask;
    display: block;
  }
  .Dash_Work {
    grid-area: work;
  }
  .Dash_Updates {
    grid-area: updates;
  }
  .Dash_Head {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
  }
  .Dash_AppsHead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 .6rem;
  }
  .Dash_EditAll {
    font-size: var(--small);
  }
  .Dash_AppGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: .5rem;
  }
  @media (min-width: 1000px) {
    .Dash_AppGrid {
      grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    }
  }
  .Dash_App {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .3rem;
    padding: .8rem .4rem .7rem;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
  }
  .Dash_App:hover {
    background: var(--soft);
  }
  .Dash_Opens {
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 14px;
    height: 14px;
    color: var(--muted);
  }
  .Dash_Icon {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .Dash_AppName {
    font-weight: 700;
    font-size: var(--small);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .Dash_AppSub {
    font-size: var(--fine);
    color: var(--muted);
    line-height: 1.2;
  }
  .Dash_Suggests {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
  }
  .Dash_AskForm {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    margin: 0 0 .6rem;
  }
  .Dash_AskBox {
    flex: 1;
    min-height: 3rem;
    resize: vertical;
    font: inherit;
    padding: .5rem .7rem;
  }
  @media (max-width: 999px) {
    .Dash_AskForm {
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .Dash_AskBox {
      flex: 1 1 100%;
      min-height: 5.5rem;
    }
    .Dash_Suggests {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: none;
      margin: 0 -1rem;
      padding: 0 1rem;
    }
    .Dash_Suggest,
    .Dash_SuggestLead {
      flex: none;
    }
  }
  .Dash_SuggestLead {
    font-size: var(--small);
    color: var(--muted);
    margin-right: .2rem;
  }
  .Dash_Suggest {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    border: 1px dashed var(--border2);
    border-radius: 999px;
    padding: .15rem .25rem .15rem .7rem;
    font-size: var(--small);
    background: var(--bg);
  }
  .Dash_Suggest a {
    text-decoration: none;
  }
  .Dash_Suggest button {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 0 .35rem;
  }
  .Dash_Panel {
    padding: 1rem;
    margin: 0;
  }
  .Dash_PanelHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 .5rem;
  }
  .Dash_Now {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--small);
    color: var(--text);
    margin: 0 0 .5rem;
  }
  .Dash_Pip {
    flex: none;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--positive, #3a8a4a);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive, #3a8a4a) 25%,
      transparent);
  }
  .Dash_List {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
  }
  .Dash_List li {
    border-top: 1px solid var(--border);
    padding: .55rem 0;
  }
  .Dash_None {
    margin: 0;
    font-size: var(--small);
    color: var(--muted);
  }
  .Dash_Did {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .75rem;
  }
  .Dash_DidTitle {
    font-weight: 700;
    font-size: var(--small);
  }
  a.Dash_DidTitle {
    color: var(--text);
    text-decoration: none;
  }
  a.Dash_DidTitle:hover,
  a.Dash_DidTitle:focus-visible {
    text-decoration: underline;
  }
  .Dash_DidMeta {
    grid-column: 1;
    font-size: var(--fine);
    color: var(--muted);
  }
  .Dash_DidMeta b {
    color: var(--text);
    font-weight: 600;
  }
  .Dash_When {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--fine);
    color: var(--muted);
    white-space: nowrap;
  }
  .Dash_Update {
    display: flex;
    align-items: center;
    gap: .6rem;
  }
  .Dash_UpdateText {
    display: grid;
    flex: 1;
    min-width: 0;
  }
  .Dash_UpdateTitle {
    font-size: var(--small);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
  }
  .Dash_Needs {
    flex: none;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--accent);
  }
  .Dash_Update:not(:has(.Dash_Needs)) .Dash_UpdateText {
    padding-left: 1.1rem;
  }
  .Dash_UpdateActs .Button {
    font-size: var(--small);
  }
  /* The conversation, at a reading width in the middle of the page. */
  .Talk_Column,
  .Talk_Keep,
  .Talk_Box,
  .Talk_Starts,
  .Talk_Alerts {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding-inline: 1.25rem;
  }
  .Talk_Column {
    flex: 1;
    padding-block: 1.5rem 2rem;
  }
  .Talk_Hello {
    padding-top: 18vh;
    text-align: center;
  }
  /* A newcomer's address, asked for over the chat (newcomer.ts). */
  .Talk_Keep {
    display: grid;
    gap: .75rem;
    padding-block: 1rem .25rem;
  }
  .Asks .Rows_Actions {
    flex-wrap: wrap;
  }
  /* "Other", opened: the box for their own answer takes the row's width. */
  .Asks_Other[open] {
    flex-basis: 100%;
  }
  .Asks_Other .Rows_Form {
    display: grid;
    gap: .5rem;
    justify-items: end;
  }
  .Asks_Input {
    width: 100%;
  }
  /* The row an alert was about, which pressing the alert opens at
     (operator-alerts.ts `openAt`); where the column is one press away, it
     opens with it. */
  /* A line linked to (Copy link), with room above it. */
  .Transcript_Row:target {
    background: color-mix(in srgb, var(--card), var(--accent) 12%);
    border-radius: var(--radius);
    scroll-margin-block: 4rem;
  }
  .Asks_Item:target {
    background: color-mix(in srgb, var(--card), var(--accent) 12%);
    border-radius: var(--radius);
    scroll-margin-block: 4rem;
  }
  /* A helper's page, zoomed in from the conversation that started it
     (operator-page.ts `backOut`): the bar holds the way back out before
     its title, and the conversation grows into place as it opens. */
  .Talk_Out {
    flex: none;
  }
  .Talk-zoomed .Frame_Bar .Toolbar_Sub {
    display: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .Talk-zoomed .Talk_Column {
      transform-origin: 50% 0;
      animation: Talk_ZoomIn .22s ease-out;
    }
  }
  @keyframes Talk_ZoomIn {
    from {
      opacity: 0;
      scale: .96;
    }
  }
  /* Updates from the Operator (updates.ts): a card for each, what needs the
     person first, then what happened, newest first. */
  .Updates {
    display: grid;
    align-content: start;
    gap: .75rem;
  }
  /* A version of an app (@yaks/platform/version-view): its release's notes,
     the ways to it, and the versions beside it. */
  .Version {
    display: grid;
    align-content: start;
    gap: .75rem;
  }
  .Version_Card {
    display: grid;
    gap: .75rem;
    min-width: 0;
  }
  .Version_Title {
    margin: 0;
  }
  .Version_Meta,
  .Version_None {
    margin: 0;
    font-size: var(--small);
    color: var(--muted);
  }
  .Version_Notes {
    overflow-wrap: anywhere;
  }
  .Version_Notes :is(p, li) {
    color: var(--text);
  }
  .Version_Notes > :first-child {
    margin-top: 0;
  }
  .Version_Notes > :last-child {
    margin-bottom: 0;
  }
  .Version_Acts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .Version_Nav {
    display: flex;
    justify-content: space-between;
    font-size: var(--small);
  }
  /* The day's lines, drawn in the browser where Updates show in place
     (updates-day-browser): its cards stand in the column's grid. */
  .Update_Day {
    display: contents;
  }
  /* The cards themselves, drawn again from the page graph
     (updates-list-browser). */
  .Update_List {
    display: grid;
    gap: .75rem;
  }
  .Update_Head {
    column-gap: .75rem;
    row-gap: .125rem;
    padding-block: .25rem;
  }
  .Update_Subject {
    flex-basis: auto;
  }
  .Update_Byline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .125rem .75rem;
    min-width: 0;
    margin-inline-start: auto;
    font-size: var(--fine);
  }
  .Update_Where {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .Update_Words {
    font-size: 1.0625rem;
  }
  .Update_Meta,
  .Update_When,
  .Update_Choices {
    color: var(--muted);
    font-size: var(--fine);
  }
  .Update_When {
    white-space: nowrap;
  }
  .Update_Choices {
    padding-left: 1.25rem;
  }
  /* Choices that show something (a picture, prose, a draft): a column each,
     what it shows over its words and its button, side by side where there
     is room and one above the next on a phone. */
  .Update_Choices-shown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .75rem;
    padding: 0;
    list-style: none;
    color: inherit;
    font-size: inherit;
  }
  .Update_Choice {
    display: grid;
    align-content: start;
    gap: .5rem;
    min-width: 0;
  }
  .Update_Choice > p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fine);
  }
  .Update_Choice > .Button {
    justify-self: start;
  }
  .Update_Picture {
    width: 100%;
    height: auto;
    border-radius: var(--radius, .5rem);
  }
  .Update_Prose {
    max-height: 20rem;
    overflow: auto;
  }
  .Update_Draft .Preview_Frame {
    height: 20rem;
  }
  .Update_Other .Update_Form,
  .Update_Reply .Update_Form {
    display: grid;
    gap: .5rem;
    justify-items: end;
  }
  .Update_Input {
    width: 100%;
  }
  .Update_Status {
    font-size: var(--fine);
    color: var(--muted);
  }
  .Update[hidden],
  .Update_Form[hidden],
  .Update_Needs[hidden],
  .Update_Other[hidden],
  .Update_Status[hidden] {
    display: none;
  }
  /* A support thread (support-page.ts): what was said, a card each, and the
     box that adds to it. */
  .Support {
    display: grid;
    gap: .75rem;
  }
  .Support_Meta,
  .Support_Fix {
    color: var(--muted);
    font-size: var(--fine);
  }
  .Support_Form {
    display: grid;
    gap: .5rem;
    justify-items: end;
  }
  .Support_Input {
    width: 100%;
  }
  /* A new chat's ways to start (operator-page.ts `chatPage`), just over the
     box, which sits at the foot as in any chat. */
  .Talk_Starts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    padding-bottom: .5rem;
  }
  /* A suggestion naming an app with a long name or address wraps, even
     inside the name, rather than run off a phone's screen. */
  .Talk_Starts > .Button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    height: auto;
    min-height: var(--control-height);
    padding-block: .35rem;
  }
  /* The offer of alerts over the box (operator-page.ts `alertsOffer`). Once
     taken, its word that alerts are on stands in the offer's place a few
     seconds, then fades and gives the room back (alerts-browser.ts). */
  .Talk_Alerts > [data-shows=on],
  .Talk_Alerts > [data-shows=away] {
    margin: 0 0 .5rem;
    color: var(--muted);
    text-align: center;
    animation: Talk_Fade .6s ease 4s forwards;
  }
  /* Where the offer went stays long enough to read and follow. */
  .Talk_Alerts > [data-shows=away] {
    animation-delay: 10s;
  }
  /* Shown, it leaves room for the yak who stands on the box at a phone's
     width (Composer.css `Composer_Figure`). */
  .Talk_Alerts:has(> :not([hidden])) {
    padding-bottom: 2.5rem;
  }
  @container workspace (min-width:54rem) {
    .Talk_Alerts:has(> :not([hidden])) {
      padding-bottom: 0;
    }
  }
  @keyframes Talk_Fade {
    to {
      opacity: 0;
    }
  }
  /* An app open beside the chat (@yaks/platform/app-canvas-view): a third column
     the height of the window, held in place while the chat scrolls, the app
     itself filling it under its name. */
  @media (min-width: 701px) {
    .Talk-app .Frame_Column {
      min-width: 20rem;
    }
    /* The app owns its whole pane, including its bottom-right controls. */
    .Talk-app .Dock_Launcher-bar {
      display: inline-flex;
    }
    .Talk-app + .Dock > .Dock_Launcher {
      display: none;
    }
  }
  .Talk_App {
    flex: 1.4 1 0;
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: var(--viewport-height, 100dvh);
    min-width: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
  }
  .Talk_Stage {
    min-height: 0;
    padding: 0 1rem 1rem;
  }
  /* What it is made of, a tab each over one sheet that fills the column
     under its name: the lists scroll inside the sheet, whose drawn edge
     stays put, and its preview fills it. */
  .Talk_Made {
    display: grid;
    grid-template-columns: repeat(var(--canvas-tabs, 3), minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }
  .Talk_Made:has(> .Tabs_Item:nth-child(4)) {
    --canvas-tabs: 4;
  }
  .Talk_Made:has(> .Tabs_Item:nth-child(5)) {
    --canvas-tabs: 5;
  }
  .Talk_Made .Tabs_Panel {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
  }
  /* Room inside the scroller for the pencil lines of what it holds. */
  .Talk_Sheet {
    display: grid;
    align-content: start;
    gap: .75rem;
    min-height: 0;
    margin: -.25rem;
    padding: .25rem;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .Talk_Part-preview .Talk_Sheet {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow: visible;
  }
  .Talk_Part-preview .Empty {
    margin: auto 0;
  }
  .Talk_Part-preview .Preview_Frame {
    flex: 1 1 auto;
    min-height: 0;
  }
  /* The box to write in, held at the foot of the window; the page's script
     draws it in a place of its own that takes no room (operator-box.ts). */
  .Talk_Ask {
    display: contents;
  }
  .Talk_Box {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: 0;
    padding-block: .5rem 1rem;
  }
  /* Back to the newest entry, over the middle of the box while the person
     has scrolled up from it (public/follow.js). */
  .Talk_Jump {
    position: absolute;
    bottom: 100%;
    left: 50%;
    translate: -50% 0;
  }

  @media (max-width: 700px) {
    .Talk_Column,
    .Talk_Box {
      padding-inline: 1rem;
    }
    .Talk_Hello {
      padding-top: 10vh;
    }
    /* The app takes the screen in the chat's place while chosen from the
       bar (`#app`), and Chat goes back. */
    .Talk-app .Talk_Show {
      display: inline-flex;
    }
    .Talk_App {
      position: fixed;
      inset: 0;
      z-index: 3;
      display: none;
      height: auto;
    }
    .Talk_App:target {
      display: grid;
    }
    .Talk_Back {
      display: inline-flex;
    }
    .Talk_Stage {
      padding: 0 .5rem .5rem;
    }
  }
}

@layer sections {
  .Sidebar {
    --sidebar-padding: .75rem;
    flex: none;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: var(--viewport-height, 100dvh);
    min-width: 0;
    background: var(--surface);
    z-index: 1;
  }
  .Sidebar_Top {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 .4rem;
  }
  .Sidebar_Brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
  }
  /* The brand, navigation and footer scroll together, and the side's paper
     with them: the scroller fills the side to every edge, its insets (the
     safe area's too) its own padding, so the texture reaches the edge and
     moves with the links. Its padding is the paint room past the active
     tab's wandering pencil line; on the right, where the tab opens into the
     page, it reaches past the side by a clear border, so overflow cannot
     clip the tab and the texture stops at the edge rather than laying a
     second tile, and a seam, over the page beside it. */
  .Sidebar_Scroll {
    --overlap: calc(var(--stroke) + 6px);
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    min-height: 0;
    margin-right: calc(-1 * var(--overlap));
    padding: calc(1rem + env(safe-area-inset-top, 0px))
      var(--sidebar-padding) calc(1rem + env(safe-area-inset-bottom, 0px))
      calc(var(--sidebar-padding) + env(safe-area-inset-left, 0px));
    border-right: var(--overlap) solid transparent;
    overflow: hidden auto;
    overscroll-behavior: contain;
    background: var(--surface-fill);
    background-clip: padding-box;
  }
  .Sidebar_Nav {
    flex: none;
    margin-right: calc(-1 * var(--sidebar-padding));
  }
  .Sidebar_Nav .SideNav_Link[hidden] {
    display: none;
  }

  .Sidebar_Space {
    display: grid;
    flex: none;
    gap: .75rem;
    padding-block: .5rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--border2) 18%, transparent);
  }
  .Sidebar_Section,
  .Sidebar_Whose {
    display: grid;
    gap: .4rem;
  }
  .Sidebar_Whose .Menu-below {
    min-width: 100%;
    max-width: 100%;
  }
  /* The connect dialog's space switcher is sized to the space it shows. */
  .Connect_Space {
    width: fit-content;
    max-width: 100%;
  }
  .Connect_Space .Menu-below {
    min-width: 100%;
  }
  .Sidebar_Title {
    margin: 0 .6rem;
    font-size: 1.25rem;
    font-weight: 800;
  }
  .Sidebar_Group {
    margin: .25rem .6rem 0;
    color: var(--muted);
    font-size: var(--fine);
    font-weight: 800;
  }
  .Sidebar_None {
    margin: 0 .6rem;
    color: var(--muted);
    font-size: var(--fine);
  }
  .Sidebar_More {
    color: var(--muted);
    font-size: var(--fine);
  }
  .Sidebar_Count {
    margin-left: auto;
  }
  .Sidebar_Foot {
    display: grid;
    gap: .75rem;
    flex: none;
  }
  .Sidebar_Rule {
    margin-block: calc(-1 * var(--room));
  }
  .Sidebar_Form {
    margin: 0;
  }
  .Sidebar_Close {
    display: none;
  }
  .Sidebar_Fold {
    display: flex;
    margin: 0;
  }
  .Sidebar_Folder {
    padding: .45rem;
  }
  .Sidebar_Shut,
  .Sidebar_Unshut {
    width: 1.25rem;
    height: 1.25rem;
  }
  .Sidebar_Unshut {
    display: none;
  }
  /* In the side's scrolling column at the kit's height, never shrunk to its
     line where the column is full; as wide as its words, up to the column. */
  .Sidebar_Back {
    flex: none;
    gap: .4rem;
    max-width: 100%;
    align-self: start;
  }
  .Sidebar_Way {
    display: flex;
    flex-flow: row-reverse wrap;
    justify-content: flex-end;
    column-gap: .25em;
    min-width: 0;
    height: 1.25em;
    overflow: hidden;
    line-height: 1.25;
  }
  .Sidebar_To {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .Sidebar_Before {
    white-space: nowrap;
  }
  @media (min-width: 701px) {
    .Sidebar {
      width: 15rem;
    }
    .Sidebar_Space {
      margin-right: calc(-1 * var(--sidebar-padding));
      padding-right: var(--sidebar-padding);
      border-radius: var(--radius) 0 0 var(--radius);
    }
    /* The current tab opens into the page beside the side, so it is
       filled with the frame's own fill for the page (Shell.css). */
    .Sidebar_Nav {
      --nav-panel: var(--floor-fill);
    }
    .Sidebar-rail {
      --sidebar-padding: .5rem;
      width: 4.5rem;
    }
    .Sidebar-rail .Sidebar_Top {
      flex-direction: column;
      padding: 0;
    }
    .Sidebar-rail :is(.Sidebar_Title, .Sidebar_Group, .Sidebar_None, .Sidebar_Shut) {
      display: none;
    }
    .Sidebar-rail .Sidebar_Unshut {
      display: inline-block;
    }
    /* A plain count goes with the words; what waits stays, on the icon. */
    .Sidebar-rail :is(.Sidebar_Label, .Sidebar_Count.Badge-quiet) {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    .Sidebar-rail .Sidebar_Count:not(.Badge-quiet) {
      position: absolute;
      top: .1rem;
      right: .1rem;
      min-width: 1.1rem;
      margin: 0;
    }
    .Sidebar-rail .Identity {
      grid-template-columns: 2rem;
      justify-content: center;
      padding: .4rem;
    }
    .Sidebar-rail .Sidebar_Whose > .Identity .Identity_Text,
    .Sidebar-rail .Sidebar_Whose > .Menu_Fold > .Menu_Summary :is(.Identity_Text, .Identity_Action) {
      display: none;
    }
    /* The picker opens beside the rail, outside the scrolling column. */
    .Sidebar-rail .Menu-below {
      position: fixed;
      top: auto;
      left: auto;
      min-width: 18rem;
      max-width: 26rem;
    }
  }
  /* On a phone the side stands still under the page, at the left, and the
     page slides aside by its width to uncover it (@yaks/ui Layer-under),
     leaving a strip of itself that closes the side when pressed. */
  @media (max-width: 700px) {
    .Frame {
      --layer-width: min(20rem, 100vw - 4rem);
    }
    .Frame_Column {
      background: var(--floor);
    }
    .Sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 0;
      display: none;
      width: var(--layer-width);
      height: auto;
    }
    .Sidebar:target {
      display: flex;
    }
    .Sidebar .Sidebar_Nav {
      display: grid;
      margin-right: 0;
    }
    .Sidebar_Scroll {
      --overlap: 0px;
      /* This is the menu's scroll container, so it owns the touch action. */
      touch-action: pan-y pinch-zoom;
    }
    .Sidebar_Whose .Menu-below {
      position: relative;
      top: auto;
      margin: .6rem var(--lift) var(--lift) 0;
      width: auto;
      min-width: 0;
      max-width: none;
    }
    .Sidebar_Whose .Menu_List {
      max-height: none;
      overflow: visible;
    }
    .Sidebar_Close {
      display: inline-flex;
    }
    .Sidebar_Fold {
      display: none;
    }
  }
}

@layer sections {
  .Update_Words .Body > :last-child {
    margin-bottom: 0;
  }
}

@layer sections {
  :is(.Rows_Mark, .Sidebar_Icon, .Dash_Icon)[data-app-mark]:not(:has(.AppMark_Image[data-app-mark-ready])) {
    background: var(--app-mark) center / cover no-repeat;
  }
  .AppMark_Image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    visibility: hidden;
  }
  .AppMark_Image[data-app-mark-ready] {
    visibility: visible;
  }
  .Sidebar_Icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .35rem;
    object-fit: cover;
  }
}

/* The ways to reach the Operator: its words to copy, and the buttons that
   open them (operator-ways.ts), those wrapping in one row, close enough to
   share a phone's width. */
.Talk_Way {
  --control-pad-inline: .6rem;
  display: grid;
  gap: var(--half-gap);
}
.Talk_Way > .Toolbar {
  gap: var(--half-gap);
}
/* A button that adds the Operator to a platform posts its form, which lays
   out as the button alone, a row's gap from the rest. */
.Talk_Way form {
  display: contents;
}

/* Friends over every page (@yaks/platform/friends-dock-view): each friend a
   row pressed to open their conversation, their initial wearing a green dot
   while they are online and their unread count at the right; a conversation
   of bubbles, theirs at the left; and a line to write on, its button beside
   it. */
@layer sections {
  .Dock_Friends {
    gap: 0;
  }
  .Dock_Friend {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    width: 100%;
    margin: 0;
    padding: .5rem;
    border: 0;
    border-radius: calc(var(--radius) * 2);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  @media (hover: hover) and (pointer: fine) {
    .Dock_Friend:hover {
      background: var(--surface);
    }
  }
  .Dock_Friend:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .Dock_Who {
    padding: 0;
  }
  .Dock_Title > .Identity_Note {
    margin: 0;
  }
  .Dock_Quiet {
    margin: auto 0;
    text-align: center;
  }
  .Dock_Shared > summary {
    color: var(--muted);
    font-size: var(--small);
    cursor: pointer;
  }
  .Dock_Ask {
    display: grid;
    gap: .35rem;
  }
  .Dock_Line,
  .Dock_Say {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .5rem;
  }
  .Dock_Say > .Form_Hint {
    grid-column: 1 / -1;
  }
  .Dock_Say textarea {
    min-height: var(--control-height, 2.25rem);
    max-height: 8rem;
    field-sizing: content;
    resize: none;
  }
  .Friend_Avatar {
    position: relative;
  }
  .Friend_Dot {
    position: absolute;
    right: -.3rem;
    bottom: -.3rem;
    font-size: .95rem;
    box-shadow: 0 0 0 .15rem var(--card);
  }
}

.BrowserViewer_Panel {
  display: grid;
  gap: 0.5rem;
  min-inline-size: 0;
}

.BrowserViewer_Bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.BrowserViewer_Status {
  margin: 0;
}

.BrowserViewer_Screen {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 0.35rem;
}

.BrowserViewer_Screen:focus-visible {
  outline-offset: 0.2rem;
}

.BrowserViewer_Screen[tabindex="0"] {
  touch-action: none;
}
