/* @agroup/ui 0.1.27: aGroup's one stylesheet. Made from css/*.css; don't edit. */
/* The family's look in variables. Pages are white by default; .ag-night turns any part (the
   dashboard, the sign-in stage, the bar, the footer) to the night blue, and everything inside
   reads the same names, so one component works on both. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  /* The family's own colours. */
  --ag-night: #18224d;
  --ag-night-hover: #1f2a5c;
  --ag-night-line: #2c3a78;
  --ag-night-edge: #3a4a8c;
  --ag-night-deep: #0f1636;
  --ag-night-muted: #aab6e6;
  --ag-night-faint: #7d89bd;
  --ag-light: #f4c443;
  --ag-blue: #2b3f9e;

  /* Type. */
  --ag-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --ag-text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ag-code: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Widths. */
  --ag-narrow: 440px;
  --ag-read: 720px;
  --ag-wide: 1120px;
  --ag-rail: 260px;
}

/* What every part reads: white by default. */
:root,
.ag-day {
  color-scheme: light;
  --ag-bg: #ffffff;
  --ag-sunk: #fafafa;
  --ag-card: #ffffff;
  --ag-hover: #f4f4f5;
  --ag-field: #ffffff;
  --ag-line: #e5e5e5;
  --ag-edge: #d4d4d8;
  --ag-muted: #656565;
  --ag-body: #2b2b2b;
  --ag-faint: #a1a1aa;
  --ag-ink: #111111;
  --ag-link: var(--ag-blue);
  --ag-primary: var(--ag-night);
  --ag-on-primary: #ffffff;
  --ag-tag: #7a5d00;
  --ag-tint: #f4f6fc;
  --ag-rule: #d5dbf0;
  --ag-danger: #b4233f;
  --ag-danger-line: #f1c4cc;
  --ag-danger-edge: #e8a5b2;
  --ag-danger-hover: #fff1f3;
  --ag-code-bg: #f6f7fb;
}

/* The night: one blue from the menu to the cards, parts told apart by lines. */
.ag-night {
  color-scheme: dark;
  --ag-bg: var(--ag-night);
  --ag-sunk: var(--ag-night);
  --ag-card: var(--ag-night);
  --ag-hover: var(--ag-night-hover);
  --ag-field: var(--ag-night-deep);
  --ag-line: var(--ag-night-line);
  --ag-edge: var(--ag-night-edge);
  --ag-muted: var(--ag-night-muted);
  --ag-body: #e3e8fb;
  --ag-faint: var(--ag-night-faint);
  --ag-ink: #ffffff;
  --ag-link: #e3e8fb;
  --ag-primary: #ffffff;
  --ag-on-primary: var(--ag-night);
  --ag-tag: var(--ag-light);
  --ag-tint: var(--ag-night-hover);
  --ag-rule: var(--ag-night-line);
  --ag-danger: #ffb3c1;
  --ag-danger-line: #6b2f45;
  --ag-danger-edge: #a8475f;
  --ag-danger-hover: #3a1a2a;
  --ag-code-bg: var(--ag-night-deep);
  background: var(--ag-bg);
  color: var(--ag-body);
}

/* A light reset and the body's type. Elements keep plain defaults; the components add the rest. */
/* In the "base" layer, the lowest: Tailwind and Fumadocs (the docs) put their own reset and
   spacing in layers, and an unlayered reset here would beat them all. Components stay unlayered. */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    margin: 0;
    min-height: 100svh;
    background: var(--ag-bg);
    color: var(--ag-body);
    font: 400 16px / 1.6 var(--ag-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  dd,
  figure,
  blockquote,
  pre {
    margin: 0;
  }
  ul[class],
  ol[class] {
    list-style: none;
    padding: 0;
  }
  img,
  svg,
  video {
    display: block;
    max-width: 100%;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }
  a {
    color: var(--ag-link);
    text-underline-offset: 3px;
  }
  a:hover {
    color: var(--ag-ink);
  }
  code,
  kbd,
  pre,
  samp {
    font-family: var(--ag-code);
  }
  :focus-visible {
    outline: 2px solid var(--ag-blue);
    outline-offset: 2px;
  }
  .ag-night :focus-visible {
    outline-color: var(--ag-light);
  }
  [hidden] {
    display: none !important;
  }
  .ag-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .ag-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--ag-light);
    color: var(--ag-night);
  }
  .ag-skip:focus {
    top: 12px;
  }

  /* A page: the bar, the main part that grows, the footer. */
  .ag-page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .ag-page > main {
    flex: 1;
  }
}

/* The public site's chrome: the night bar at the top (the product's lockup, its sections as
   cells, and one white cell for the account) and the night footer with the family. */

.ag-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.2857em;
  color: inherit;
  font: 600 18px / 1 var(--ag-display);
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.ag-lockup-mark {
  display: inline-flex;
  flex: none;
}
.ag-lockup svg {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}
.ag-mark,
.ag-icon {
  display: inline-flex;
  flex: none;
}

/* The bar. */
.ag-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  background: var(--ag-night);
  color: #fff;
  font-size: 14px;
}
.ag-bar :focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
/* Hover states change colour only, never size: a :hover beside the layout would outrank the
   wide window's sizes below and make the bar jump under the pointer. */
.ag-bar-name {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
}
.ag-bar-name:hover {
  color: #fff;
}
.ag-bar-nav {
  display: flex;
  order: 3;
  flex: 1 0 100%;
  border-top: 1px solid var(--ag-night-line);
}
.ag-bar-nav a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.ag-bar-nav a + a {
  border-left: 1px solid var(--ag-night-line);
}
.ag-bar-nav a:hover {
  background: #121a3d;
  color: #fff;
}
.ag-bar-nav a[aria-current] {
  background: #121a3d;
  box-shadow: inset 0 -2px 0 #fff;
}
/* SIGN-IN in the code face, capitals and spaced, with a faint arrow up and out. */
.ag-bar-action {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: #fff;
  color: var(--ag-night);
  font: 500 13px / 1 var(--ag-code);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.ag-bar-action-arrow {
  display: inline-flex;
  opacity: 0.5;
  transition: opacity 0.15s;
}
/* A step of the same white, not see-through: the night under it would turn it grey-blue. */
.ag-bar-action:hover {
  background: #e9ecf6;
  color: var(--ag-night);
}
.ag-bar-action:hover .ag-bar-action-arrow {
  opacity: 1;
}
@media (min-width: 900px) {
  .ag-bar {
    flex-wrap: nowrap;
  }
  .ag-bar-name {
    flex: none;
    width: max(500px, 40%);
    padding: 0 40px;
  }
  .ag-bar-nav {
    order: 0;
    flex: 1 1 auto;
    border-top: 0;
    border-left: 1px solid var(--ag-night-line);
  }
  .ag-bar-nav a {
    font-size: 14px;
  }
  .ag-bar-action {
    padding: 0 32px;
  }
  .ag-bar-docs .ag-bar-name {
    width: 268px;
    padding: 0 16px;
  }
}

/* The footer: the lockup, columns of links, and the family line. */
.ag-footer {
  background: var(--ag-night);
  color: #fff;
}
.ag-footer :focus-visible {
  outline-color: #fff;
}
.ag-footer-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}
.ag-footer-brand {
  grid-column: 1 / -1;
}
.ag-footer-brand .ag-lockup {
  font-size: 30px;
}
.ag-footer-home,
.ag-footer-home:hover {
  color: #fff;
  text-decoration: none;
}
.ag-footer-brand p {
  max-width: 320px;
  margin-top: 12px;
  color: var(--ag-night-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ag-footer h2 {
  margin: 0 0 8px;
  color: var(--ag-night-muted);
  font: 400 14px / 1.4 var(--ag-text);
}
.ag-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-footer li a {
  color: #fff;
  font-size: 15px;
  line-height: 2;
  text-decoration: none;
}
.ag-footer li a:hover {
  color: #fff;
  text-decoration: underline;
}
.ag-footer-line {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--ag-night-line);
  color: var(--ag-night-muted);
  font-size: 13px;
}
.ag-footer-line a {
  color: var(--ag-night-muted);
}
.ag-footer-line a:hover {
  color: #fff;
}
.ag-footer-short {
  padding: 24px 20px;
  background: var(--ag-night);
  color: var(--ag-night-muted);
  font-size: 13px;
  text-align: center;
}
.ag-footer-short a {
  color: #fff;
}
@media (min-width: 900px) {
  .ag-footer-in {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding: 64px 80px 48px;
  }
  .ag-footer-in[data-columns="1"] {
    grid-template-columns: 2fr 1fr;
  }
  .ag-footer-in[data-columns="2"] {
    grid-template-columns: 2fr repeat(2, 1fr);
  }
  .ag-footer-in[data-columns="4"] {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
  .ag-footer-in[data-columns="5"] {
    grid-template-columns: 2fr repeat(5, 1fr);
  }
  .ag-footer-brand {
    grid-column: auto;
  }
  .ag-footer-brand .ag-lockup {
    font-size: 40px;
  }
}

/* Buttons, fields, notes, tags: square corners everywhere, one strong button per place. */

.ag-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ag-edge);
  border-radius: 0;
  background: transparent;
  color: var(--ag-ink);
  font: 500 13px / 1 var(--ag-text);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.12s,
    opacity 0.12s;
}
a.ag-btn,
a.ag-btn:hover {
  color: var(--ag-ink);
  text-decoration: none;
}
.ag-btn:hover {
  background: var(--ag-hover);
}
.ag-btn:disabled,
.ag-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ag-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
/* The one strong button: night on white, white on night. */
.ag-btn-primary,
a.ag-btn-primary,
a.ag-btn-primary:hover {
  border-color: var(--ag-primary);
  background: var(--ag-primary);
  color: var(--ag-on-primary);
}
.ag-btn-primary:hover {
  background: var(--ag-primary);
  opacity: 0.9;
}
.ag-btn-danger,
a.ag-btn-danger {
  border-color: var(--ag-danger-edge);
  color: var(--ag-danger);
}
.ag-btn-danger:hover {
  background: var(--ag-danger-hover);
}
.ag-btn-quiet {
  border-color: transparent;
  color: var(--ag-muted);
}
.ag-btn-quiet:hover {
  color: var(--ag-ink);
}
.ag-btn-large {
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
}
.ag-btn-wide {
  width: 100%;
}

/* A field: its label above, the box, and a hint under it. */
.ag-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.ag-field > span:first-child {
  font-size: 13px;
  color: var(--ag-muted);
}
.ag-field small {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ag-muted);
}
.ag-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ag-edge);
  border-radius: 0;
  background: var(--ag-field);
  color: var(--ag-ink);
  font: 400 14px var(--ag-text);
}
textarea.ag-input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
textarea.ag-input-code {
  font: 400 13px / 1.55 var(--ag-code);
}
select.ag-input {
  padding-right: 32px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.ag-input::placeholder {
  color: var(--ag-faint);
}
.ag-input:focus {
  outline: none;
  border-color: var(--ag-muted);
}
.ag-input-large {
  height: 48px;
  font-size: 15px;
}
.ag-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.ag-check input {
  margin: 3px 0 0;
  accent-color: var(--ag-primary);
}

/* A row of a field and its button, wrapping on a phone. */
.ag-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.ag-inline > .ag-field,
.ag-inline > .ag-input {
  flex: 1 1 220px;
}
.ag-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.ag-stack {
  display: grid;
  gap: 12px;
}
.ag-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ag-split > :first-child {
  min-width: 0;
  max-width: 480px;
}

/* A note: what just happened, or why it didn't. */
.ag-note {
  margin: 0;
  padding: 12px 16px;
  border-left: 2px solid var(--ag-light);
  background: var(--ag-tint);
  color: var(--ag-ink);
  font-size: 14px;
  line-height: 1.55;
}
.ag-night .ag-note {
  background: transparent;
}
.ag-note-alert {
  border-left-color: var(--ag-danger);
}

/* A tag: small capitals of the code face, outlined in the beacon's yellow. */
.ag-tag {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--ag-light);
  color: var(--ag-tag);
  font: 400 11px / 1.6 var(--ag-code);
  white-space: nowrap;
  vertical-align: 1px;
}
.ag-tag-quiet {
  border-color: var(--ag-edge);
  color: var(--ag-muted);
}
.ag-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ag-rule);
  color: var(--ag-muted);
  font: 400 11px / 1.6 var(--ag-code);
  letter-spacing: 0.02em;
}

/* A light: on or off, as a beacon is. */
.ag-lit,
.ag-unlit {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
}
.ag-lit {
  background: var(--ag-light);
}
.ag-unlit {
  border: 1px solid var(--ag-edge);
}

/* A meter: how much of something is used. */
.ag-meter {
  height: 4px;
  background: var(--ag-line);
}
.ag-meter > span {
  display: block;
  height: 100%;
  background: var(--ag-light);
}

/* Google's and X's marks on "Continue with Google". */
.ag-provider {
  display: inline-flex;
  flex: none;
}
.ag-provider svg {
  width: 16px;
  height: 16px;
}
.ag-provider-x svg {
  width: 14px;
  height: 14px;
}

/* A file picker: the box, its button drawn as the family's. */
.ag-input[type="file"] {
  height: auto;
  padding: 6px;
  color: var(--ag-muted);
  font-size: 13px;
}
.ag-input[type="file"]::file-selector-button {
  height: 28px;
  margin-right: 12px;
  padding: 0 12px;
  border: 1px solid var(--ag-edge);
  border-radius: 0;
  background: transparent;
  color: var(--ag-ink);
  font: 500 13px var(--ag-text);
  cursor: pointer;
}
.ag-input[type="file"]::file-selector-button:hover {
  background: var(--ag-hover);
}

/* Cards (founder, 5 Nov: laid out like dash.better-auth.com, on the night blue): small brackets
   at the corners like a viewfinder on the beacon, the name in small capitals, at most one action
   in the header, small print in the footer, red for what can't be undone. */

.ag-card {
  position: relative;
  border: 1px solid var(--ag-line);
  background: var(--ag-card);
}
.ag-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 0 solid var(--ag-muted);
  pointer-events: none;
}
.ag-corner-tl {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.ag-corner-tr {
  top: -1px;
  right: -1px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.ag-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.ag-corner-br {
  right: -1px;
  bottom: -1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.ag-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ag-line);
}
.ag-card > header h2,
.ag-card > header h3 {
  margin: 0;
  color: var(--ag-ink);
  font: 500 12px / 1.4 var(--ag-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-card-body {
  padding: 16px 20px;
  color: var(--ag-body);
  font-size: 14px;
  line-height: 1.6;
}
.ag-card-body > * + * {
  margin-top: 16px;
}
.ag-card > footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ag-line);
  background: var(--ag-sunk);
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.5;
}
.ag-card-danger,
.ag-card-danger > header,
.ag-card-danger > footer {
  border-color: var(--ag-danger-line);
}
.ag-card-danger .ag-corner {
  border-color: var(--ag-danger);
}
.ag-card-danger > header h2,
.ag-card-danger > header h3 {
  color: var(--ag-danger);
}

/* Rows: a list edge to edge inside a card, each a thing and its action. */
.ag-rows {
  margin: -16px -20px;
  padding: 0;
  list-style: none;
}
.ag-rows > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.ag-rows > li + li {
  border-top: 1px solid var(--ag-line);
}
.ag-rows > li > :first-child {
  min-width: 0;
}
.ag-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ag-ink);
}
.ag-row-meta {
  display: block;
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Facts: a short list of names and values. */
.ag-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 14px;
}
.ag-facts dt {
  color: var(--ag-muted);
}
.ag-facts dd {
  margin: 0;
  color: var(--ag-ink);
  overflow-wrap: anywhere;
}
.ag-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  color: var(--ag-muted);
  font: 400 12px / 1.6 var(--ag-code);
}
.ag-numbers > div {
  display: flex;
  gap: 6px;
}
.ag-numbers dd {
  margin: 0;
  color: var(--ag-ink);
}

/* A well: words to copy, or a key, in the code face. */
.ag-well {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--ag-line);
  background: var(--ag-field);
  color: var(--ag-ink);
  font: 400 13px / 1.6 var(--ag-code);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ag-copy-box {
  display: grid;
  gap: 12px;
}
.ag-copy-box > .ag-btn {
  justify-self: start;
}

/* A part's name and what it is for, above its cards. */
.ag-heading h1 {
  margin: 0 0 4px;
  color: var(--ag-ink);
  font: 600 28px / 1.15 var(--ag-display);
  letter-spacing: -0.01em;
}
.ag-heading p {
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.5;
}
.ag-facts-pair {
  display: contents;
}

/* A row's actions: side by side; under the row on a narrow screen. */
.ag-rows > li {
  flex-wrap: wrap;
}
.ag-rows > li > :first-child {
  flex: 1 1 0;
}
.ag-row-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 479px) {
  .ag-rows > li:has(> .ag-row-actions > :nth-child(2)) > .ag-row-actions {
    flex-basis: 100%;
  }
}
/* A row that can't be used now: a locked item, a closed beacon. */
.ag-row-muted .ag-row-title,
.ag-row-muted .ag-row-meta {
  color: var(--ag-faint);
}

/* The stage: one card in the middle of the night, a town dimmed behind it. Signing in and the
   steps around it (connecting an app, linking an agent, approving a code) all stand on it. */

.ag-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 44px);
  overflow: hidden;
  padding: 64px 20px;
  background: var(--ag-night);
}
.ag-stage-full {
  min-height: 100svh;
}
.ag-stage > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.ag-stage-frame {
  width: 100%;
  max-width: 400px;
}
.ag-stage-wide .ag-stage-frame {
  max-width: 560px;
}
.ag-stage-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--ag-line);
  background: var(--ag-card);
  box-shadow: 0 24px 60px rgba(8, 12, 34, 0.55);
}
@media (min-width: 640px) {
  .ag-stage-card {
    padding: 28px;
  }
}
.ag-stage-label {
  color: var(--ag-muted);
  font: 400 11px / 1.4 var(--ag-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-stage-card h1,
.ag-stage-title {
  margin: 8px 0 0;
  color: var(--ag-ink);
  font: 600 22px / 1.25 var(--ag-display);
}
.ag-stage-body {
  margin-top: 12px;
  color: var(--ag-body);
  font-size: 14px;
  line-height: 1.6;
}
.ag-stage-body > * + * {
  margin-top: 16px;
}

/* Tabs on top of a stage card: Sign in, Sign up. Radio inputs before them pick the pane. */
.ag-stage-tabs {
  display: flex;
  border: 1px solid var(--ag-line);
  border-bottom: 0;
  width: max-content;
  background: var(--ag-card);
}
.ag-stage-tabs label,
.ag-stage-tabs a {
  padding: 12px 16px;
  color: var(--ag-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.ag-stage-tabs label:hover,
.ag-stage-tabs a:hover {
  color: var(--ag-ink);
}
.ag-stage-tabs [aria-current],
.ag-pick:nth-of-type(1):checked ~ .ag-stage-tabs label:nth-of-type(1),
.ag-pick:nth-of-type(2):checked ~ .ag-stage-tabs label:nth-of-type(2) {
  color: var(--ag-ink);
  box-shadow: inset 0 -2px 0 var(--ag-light);
}
.ag-pick {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ag-pick:nth-of-type(1):checked ~ .ag-stage-card .ag-pane:not(:nth-of-type(1)),
.ag-pick:nth-of-type(2):checked ~ .ag-stage-card .ag-pane:not(:nth-of-type(2)) {
  display: none;
}
.ag-pick:nth-of-type(1):focus-visible ~ .ag-stage-tabs label:nth-of-type(1),
.ag-pick:nth-of-type(2):focus-visible ~ .ag-stage-tabs label:nth-of-type(2) {
  outline: 2px solid var(--ag-light);
  outline-offset: -2px;
}

/* "or", between two ways. */
.ag-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--ag-muted);
  font-size: 12px;
}
.ag-or::before,
.ag-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ag-line);
}
/* Small print under a form. */
.ag-fine {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ag-line);
  color: var(--ag-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.ag-fine a {
  color: inherit;
}

/* A pane's parts, one under another. */
.ag-pane > * + * {
  margin-top: 16px;
}
.ag-pane > .ag-stage-title:first-child {
  margin-top: 0;
}
.ag-pane > .ag-or {
  margin: 16px 0;
}

/* The signed-in app (founder, Nov 21: "one app"; laid out as amessage.sh's account was on
   5 November): on a wide window a 260 px night menu at the side, the product's lockup at its top,
   its parts in labelled groups, quiet links, and who is signed in at its foot; on a phone the
   lockup in a bar at the top and the parts as tabs at the foot of the screen. The public bar and
   footer step aside. */

.ag-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100svh;
  padding-bottom: 64px;
  background: var(--ag-bg);
  color: var(--ag-body);
}
.ag-shell-light {
  background: #fff;
}
.ag-rail {
  display: none;
}
.ag-shell-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ag-night-line);
  background: var(--ag-night);
  color: #fff;
}
.ag-shell-home {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.ag-shell-home:hover {
  color: #fff;
}
.ag-work {
  min-width: 0;
}
.ag-dash {
  max-width: calc(var(--ag-read) + 40px);
  padding: 32px 20px 72px;
}
.ag-dash > * + * {
  margin-top: 20px;
}

/* The tabs at the foot of a phone's screen. */
.ag-foot-tabs {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.ag-foot-tabs a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #656565;
  font-size: 11px;
  text-decoration: none;
}
.ag-foot-tabs a:hover {
  color: var(--ag-night);
}
.ag-foot-tabs a[aria-current] {
  color: var(--ag-night);
  font-weight: 600;
}
.ag-foot-tabs a[aria-current]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--ag-light);
}
.ag-foot-tabs svg {
  width: 22px;
  height: 22px;
}
.ag-badge {
  margin-left: auto;
  padding: 3px 5px;
  background: var(--ag-light);
  color: var(--ag-night);
  font: 400 11px / 1 var(--ag-code);
}
.ag-foot-tabs .ag-badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 6px);
}
/* One conversation fills a phone's screen: no tabs under it. */
.ag-shell-focused {
  padding-bottom: 0;
}
.ag-shell-focused .ag-foot-tabs {
  display: none;
}

/* On a phone, the parts of a group as tabs under the bar. */
.ag-sub-tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ag-line);
  scrollbar-width: none;
}
.ag-sub-tabs a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--ag-muted);
  font-size: 14px;
  text-decoration: none;
}
.ag-sub-tabs a:hover {
  color: var(--ag-ink);
}
.ag-sub-tabs a[aria-current] {
  border-color: var(--ag-light);
  color: var(--ag-ink);
}

/* The menu at the side. */
.ag-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ag-menu-group {
  display: flex;
  flex-direction: column;
}
.ag-menu-name {
  margin-bottom: 8px;
  padding: 0 12px;
  color: var(--ag-night-faint);
  font: 400 11px / 1.4 var(--ag-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}
.ag-menu a:hover {
  background: var(--ag-night-hover);
  color: #fff;
}
.ag-menu a[aria-current] {
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ag-night-line);
}
/* The part you're on is marked with the beacon's yellow. */
.ag-menu a[aria-current]::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: var(--ag-light);
}
.ag-menu svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.ag-more {
  display: grid;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ag-night-line);
}
.ag-more a {
  padding: 5px 12px;
  color: var(--ag-night-faint);
  font-size: 13px;
  text-decoration: none;
}
.ag-more a:hover {
  color: #fff;
}
.ag-me {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--ag-night-line);
}
.ag-me p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-me-name {
  color: #fff;
  font-size: 14px;
}
.ag-me-email {
  margin-top: 2px;
  font-size: 13px;
}
.ag-me form {
  margin: 12px 0 0;
}
.ag-me .ag-btn {
  width: 100%;
  border-color: var(--ag-night-edge);
  color: #fff;
}
.ag-me .ag-btn:hover {
  background: var(--ag-night-hover);
}

@media (min-width: 1024px) {
  .ag-shell {
    grid-template-columns: var(--ag-rail) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100svh;
    min-height: 0;
    padding-bottom: 0;
  }
  .ag-shell-top,
  .ag-foot-tabs,
  .ag-sub-tabs {
    display: none;
  }
  .ag-rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 24px 24px;
    border-right: 1px solid var(--ag-night-line);
    background: var(--ag-night);
    color: var(--ag-night-muted);
  }
  .ag-rail .ag-shell-home {
    padding: 6px 12px 28px;
  }
  .ag-work {
    min-height: 0;
    overflow-y: auto;
  }
  .ag-dash {
    max-width: calc(var(--ag-read) + 96px);
    padding: 56px 48px 96px;
  }
}

/* Public pages' content: a reading column, prose for docs, blog and legal pages, code to copy,
   lists of things, and the questions at the end. */

.ag-main {
  padding: 56px 20px 96px;
}
.ag-column {
  width: 100%;
  max-width: var(--ag-read);
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.ag-column-narrow {
  max-width: var(--ag-narrow);
}
.ag-column-wide {
  max-width: var(--ag-wide);
}
@media (min-width: 900px) {
  .ag-main {
    padding: 72px 40px 120px;
  }
}

/* Words: headings, paragraphs and lists, with the rhythm of a README. */
.ag-prose {
  color: var(--ag-body);
  font-size: 16px;
  line-height: 1.65;
}
.ag-prose h1:where(:not(.ag-eyebrow)),
.ag-title {
  margin: 0 0 18px;
  color: var(--ag-ink);
  font: 600 34px / 1.1 var(--ag-display);
  letter-spacing: -0.01em;
}
.ag-prose h2 {
  margin: 48px 0 12px;
  color: var(--ag-ink);
  font: 500 21px / 1.25 var(--ag-display);
}
.ag-prose h3 {
  margin: 32px 0 8px;
  color: var(--ag-ink);
  font: 600 17px / 1.35 var(--ag-text);
}
.ag-prose p + p,
.ag-prose p + ul,
.ag-prose p + ol,
.ag-prose ul + p,
.ag-prose ol + p,
.ag-prose p + .ag-list,
.ag-prose * + .ag-faq,
.ag-prose * + .ag-grid {
  margin-top: 14px;
}
.ag-prose ul:not([class]),
.ag-prose ol:not([class]) {
  padding-left: 22px;
}
.ag-prose ul:not([class]) {
  list-style: square;
}
.ag-prose :is(ul, ol):not([class]) > li + li {
  margin-top: 6px;
}
.ag-prose :is(ul, ol):not([class]) > li::marker {
  color: var(--ag-muted);
}
.ag-prose strong {
  color: var(--ag-ink);
  font-weight: 600;
}
.ag-prose code {
  padding: 1px 4px;
  background: var(--ag-tint);
  color: var(--ag-ink);
  font-size: 0.88em;
}
.ag-prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.ag-prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--ag-rule);
  color: var(--ag-muted);
}
.ag-prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--ag-line);
}
.ag-prose > * + .ag-code,
.ag-prose > * + .ag-note,
.ag-prose > * + table {
  margin-top: 20px;
}
.ag-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
/* A wide table that scrolls on its own on a narrow screen, rather than the page. */
.ag-scroll {
  overflow-x: auto;
}
.ag-prose > * + .ag-scroll {
  margin-top: 20px;
}
/* After a block (code, output, a table, a note, a grid), room before the next words. */
.ag-prose
  > :is(.ag-code, .ag-output, pre, table, .ag-scroll, .ag-note, .ag-grid, .ag-faq, .ag-tabset)
  + * {
  margin-top: 20px;
}
/* …and room before a block, after the words that lead into it. */
.ag-prose
  > *
  + :is(.ag-code, .ag-output, pre, table, .ag-scroll, .ag-note, .ag-grid, .ag-faq, .ag-tabset) {
  margin-top: 20px;
}
.ag-scroll > table {
  min-width: 520px;
  font-size: 13px;
}
.ag-prose th,
.ag-prose td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--ag-line);
  text-align: left;
  vertical-align: top;
}
.ag-prose th {
  color: var(--ag-ink);
  font-weight: 500;
}
.ag-lede {
  margin-bottom: 36px;
  color: var(--ag-body);
  font-size: 17px;
  line-height: 1.6;
}
.ag-night .ag-lede {
  color: var(--ag-body);
}
.ag-quiet {
  color: var(--ag-muted);
}
.ag-small {
  font-size: 14px;
  line-height: 1.6;
}
.ag-meta {
  color: var(--ag-muted);
  font: 400 12.5px / 1.6 var(--ag-code);
}
.ag-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ag-muted);
  font-size: 14px;
  text-decoration: none;
}
.ag-back:hover {
  color: var(--ag-ink);
  text-decoration: underline;
}
.ag-end {
  margin-top: 32px;
}
.ag-words {
  white-space: pre-line;
}
@media (min-width: 900px) {
  .ag-prose h1:where(:not(.ag-eyebrow)),
  .ag-title {
    font-size: 44px;
    letter-spacing: -0.02em;
  }
}
@media (max-width: 480px) {
  .ag-prose h1:where(:not(.ag-eyebrow)),
  .ag-title {
    font-size: 30px;
  }
}

/* An eyebrow: small capitals of the code face and a rule to the edge. */
.ag-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--ag-muted);
  font: 400 13px / 1.4 var(--ag-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ag-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ag-rule);
}
/* A section heading on a README: a rule after it. */
.ag-ruled {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 20px;
  color: var(--ag-ink);
  font: 500 20px / 1.25 var(--ag-display);
}
.ag-ruled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ag-rule);
}

/* Code: night, with a copy button in its corner when it's meant to be copied. */
.ag-code {
  position: relative;
  background: var(--ag-night);
  color: #fff;
}
.ag-night .ag-code {
  border: 1px solid var(--ag-line);
  background: var(--ag-night-deep);
}
.ag-code pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font: 400 14px / 1.7 var(--ag-code);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ag-code-copy pre {
  padding-right: 84px;
}
.ag-code .ag-comment {
  color: #8f9ad6;
}
.ag-code-button {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--ag-night-muted);
  font: 400 13px / 1.4 var(--ag-code);
  cursor: pointer;
}
.ag-code-button:hover,
.ag-code-button[data-copied] {
  color: #fff;
}
.ag-code-label {
  padding: 8px 18px 0;
  color: var(--ag-night-muted);
  font: 400 11px / 1.4 var(--ag-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-output {
  border: 1px solid var(--ag-line);
  background: var(--ag-sunk);
}
.ag-output .ag-code-label {
  color: var(--ag-muted);
}
.ag-output pre {
  margin: 0;
  padding: 12px 18px 16px;
  overflow-x: auto;
  color: var(--ag-body);
  font: 400 13px / 1.65 var(--ag-code);
}

/* Tabs over code: CLI, MCP, API. Buttons with role=tab; ui.js switches them. */
.ag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.ag-tabs [role="tab"] {
  padding: 9px 14px;
  border: 0;
  background: #fff;
  color: var(--ag-muted);
  font: 400 13px / 1.4 var(--ag-code);
  cursor: pointer;
}
.ag-tabs [role="tab"]:hover {
  color: var(--ag-ink);
}
.ag-tabs [role="tab"][aria-selected="true"] {
  background: var(--ag-night);
  color: #fff;
}
/* A list of things: a title link, two lines of text, and a meta line. */
.ag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #ededed;
}
.ag-list > li {
  padding: 18px 0;
  border-top: 1px solid #ededed;
}
.ag-list-title {
  color: var(--ag-ink);
  font-weight: 500;
  text-decoration: none;
}
.ag-list-title:hover {
  text-decoration: underline;
}
.ag-list-text {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ag-muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ag-list .ag-meta {
  margin-top: 6px;
}
/* Views of a list: "Open now · All", the one you're on in ink. */
.ag-views {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--ag-muted);
  font-size: 14px;
}
.ag-views > * + *::before {
  content: "·";
  margin: 0 8px;
  color: var(--ag-muted);
}
.ag-views a {
  color: var(--ag-muted);
  text-decoration: none;
}
.ag-views a:hover {
  color: var(--ag-ink);
}
.ag-views [aria-current] {
  color: var(--ag-ink);
  font-weight: 500;
}

/* Questions: each a <details>, a sign that turns from + to −. */
.ag-faq {
  border-bottom: 1px solid var(--ag-rule);
}
.ag-faq details {
  border-top: 1px solid var(--ag-rule);
}
.ag-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--ag-ink);
  font-size: 15px;
  list-style: none;
  cursor: pointer;
}
.ag-faq summary::-webkit-details-marker {
  display: none;
}
.ag-faq summary::after {
  content: "+";
  color: var(--ag-muted);
  font: 400 16px / 1 var(--ag-code);
}
.ag-faq details[open] summary::after {
  content: "−";
}
.ag-faq details > :not(summary) {
  padding-bottom: 16px;
  color: var(--ag-muted);
  font-size: 15px;
  line-height: 1.6;
}
/* A quiet "more" disclosure. */
.ag-more-details summary {
  color: var(--ag-muted);
  font-size: 14px;
  cursor: pointer;
}
.ag-more-details summary:hover {
  color: var(--ag-ink);
}
.ag-more-details[open] > :not(summary) {
  margin-top: 12px;
}

/* Ruled grids: features ("01", a name, a line, a chip) and agents (a logo, a name, a kind). */
.ag-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ag-rule);
  border-left: 1px solid var(--ag-rule);
}
.ag-grid > * {
  padding: 18px 18px 20px;
  border-right: 1px solid var(--ag-rule);
  border-bottom: 1px solid var(--ag-rule);
}
.ag-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .ag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .ag-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ag-grid-number {
  color: var(--ag-muted);
  font: 400 11px / 1.4 var(--ag-code);
}
.ag-grid h3 {
  margin: 8px 0 4px;
  color: var(--ag-ink);
  font: 500 14px / 1.4 var(--ag-text);
}
.ag-grid p {
  color: var(--ag-muted);
  font-size: 13px;
  line-height: 1.55;
}
.ag-grid .ag-chip,
.ag-grid .ag-chips {
  margin-top: 10px;
}
.ag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ag-grid .ag-chips .ag-chip {
  margin-top: 0;
}
.ag-logo-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ag-ink);
}
a.ag-logo-cell,
a.ag-logo-cell:hover {
  color: var(--ag-ink);
  text-decoration: none;
}
a.ag-logo-cell:hover {
  background: #fafafa;
}
.ag-grid > a.ag-logo-cell {
  padding: 14px 16px;
}
.ag-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ag-rule);
  background: #fff;
  color: var(--ag-ink);
  font: 400 13px / 1 var(--ag-code);
}
.ag-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ag-logo-text {
  min-width: 0;
}
.ag-logo-name,
.ag-logo-kind {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-logo-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.ag-logo-kind {
  margin-top: 2px;
  color: var(--ag-muted);
  font: 400 10px / 1.5 var(--ag-code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A conversation: bubbles, the person's on a tint. */
.ag-chat {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-chat > li {
  max-width: 86%;
}
.ag-chat > li.ag-chat-mine {
  justify-self: end;
}
.ag-chat p {
  padding: 8px 12px;
  border: 1px solid var(--ag-rule);
  background: #fff;
  color: var(--ag-ink);
  font-size: 14px;
  line-height: 1.55;
}
.ag-chat .ag-chat-mine p {
  background: var(--ag-tint);
}
.ag-chat .ag-chat-who {
  padding: 0;
  border: 0;
  background: none;
}
.ag-chat-who {
  margin-bottom: 2px;
  color: var(--ag-muted);
  font: 400 11px / 1.4 var(--ag-code);
}

/* The home page's columns (65-home.css lays them out): the scene on the night, the README. */
.ag-scene {
  position: relative;
  overflow: hidden;
  background: var(--ag-night);
  color: #fff;
}
.ag-scene :focus-visible {
  outline-color: #fff;
}
.ag-readme {
  min-width: 0;
  max-width: 856px;
  padding: 24px 20px 96px;
}
.ag-readme h1 {
  margin: 0 0 16px;
  color: var(--ag-ink);
  font: 600 32px / 1.1 var(--ag-display);
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .ag-readme {
    padding: 32px 56px 120px;
  }
  .ag-readme h1 {
    font-size: 44px;
    letter-spacing: -0.02em;
  }
}
@media (min-width: 900px) {
  .ag-readme {
    padding-top: 56px;
  }
}
/* The scene's strip of links at its foot: "skill.md / Docs / GitHub", on a wide window, with
   room at the right for a mark (GitHub's). */
.ag-scene-links {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 40px;
  overflow: hidden;
  color: rgb(227 232 251 / 0.5);
  font: 400 11px / 1.5 var(--ag-code);
  white-space: nowrap;
  user-select: none;
}
.ag-scene-links > div {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  min-width: 0;
  /* One line: a link that doesn't fit wraps below and is hidden whole, never cut in two, and the
     mark at the right always shows. */
  max-height: 1.5em;
  overflow: hidden;
}
.ag-scene-links > :last-child:not(div) {
  flex: none;
}
.ag-scene-links > div > span {
  display: inline-flex;
  gap: 12px;
}
.ag-scene-links-sep {
  color: rgb(227 232 251 / 0.2);
}
.ag-scene-links a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}
.ag-scene-links a:hover {
  color: rgb(227 232 251 / 0.85);
}
.ag-scene-links svg {
  width: 14px;
  height: 14px;
}
@media (min-width: 1024px) {
  .ag-scene-links {
    display: flex;
  }
}

/* A night column beside prose (blog, legal): the title stays at the left as the words scroll. */
.ag-side-page {
  display: grid;
}
.ag-side {
  padding: 40px 20px;
  background: var(--ag-night);
  color: #fff;
}
.ag-side h1 {
  margin: 12px 0 14px;
  color: #fff;
  font: 600 30px / 1.1 var(--ag-display);
  letter-spacing: -0.01em;
}
.ag-side p {
  color: var(--ag-night-muted);
  font-size: 15px;
  line-height: 1.6;
}
.ag-side a {
  color: #fff;
}
.ag-side {
  display: flex;
  flex-direction: column;
}
.ag-side-links {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 24px;
  color: rgb(227 232 251 / 0.5);
  font: 400 11px / 1.5 var(--ag-code);
}
.ag-side .ag-side-links a {
  color: inherit;
  text-decoration: none;
}
.ag-side .ag-side-links a:hover {
  color: rgb(227 232 251 / 0.85);
}
.ag-side-links > span + span::before {
  content: "/";
  margin-right: 12px;
  color: rgb(227 232 251 / 0.2);
}
@media (min-width: 900px) {
  .ag-side-links {
    display: flex;
  }
}
.ag-side-body {
  min-width: 0;
  padding: 40px 20px 96px;
}
.ag-side-body > .ag-prose,
.ag-side-body > * {
  max-width: var(--ag-read);
}
@media (min-width: 900px) {
  .ag-side-page {
    grid-template-columns: minmax(500px, 40%) 1fr;
  }
  .ag-side {
    position: sticky;
    top: 44px;
    align-self: start;
    height: calc(100svh - 44px);
    padding: 72px 56px;
  }
  .ag-side h1 {
    font-size: 44px;
    letter-spacing: -0.02em;
  }
  .ag-side-body {
    padding: 72px 56px 120px;
  }
}
/* Posts: a tile, a title, two lines and a byline. */
.ag-posts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-posts > li + li {
  margin-top: 28px;
}
.ag-post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}
.ag-post:hover .ag-post-title {
  text-decoration: underline;
}
.ag-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1200 / 630;
  background: var(--ag-night);
  color: #fff;
}
.ag-tile svg {
  width: 28%;
  height: auto;
}
.ag-post-title {
  color: var(--ag-ink);
  font: 500 17px / 1.35 var(--ag-display);
}
.ag-post p {
  margin-top: 4px;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* The home page's parts every product shares: the line to give an agent (tabs over a night line
   to copy), the scene's frame (a canvas the product draws, a speech bubble and a typed caption; no
   pause button: founder, 1 Dec 2026), the example chats replayed in app windows, and steps down the side as tabs.
   What each product draws on its canvas is its own content; the frame is here. */

/* Home: on a phone the hero, then the scene, then the README; on a wide window the scene at the
   left, sticky, and the hero and README scrolling at the right. */
.ag-home {
  display: flex;
  flex-direction: column;
}
.ag-home > .ag-home-hero {
  order: 1;
  min-width: 0;
  padding: 36px 20px 24px;
}
.ag-home > .ag-scene {
  order: 2;
}
.ag-home > .ag-readme {
  order: 3;
}
.ag-home-hero > * {
  max-width: 800px;
}
@media (min-width: 640px) {
  .ag-home > .ag-home-hero {
    padding: 48px 56px 32px;
  }
}
@media (min-width: 1024px) {
  .ag-home {
    display: grid;
    grid-template-columns: minmax(500px, 40%) 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .ag-home > .ag-home-hero {
    grid-column: 2;
    grid-row: 1;
    padding: 56px 56px 16px;
  }
  .ag-home > .ag-scene {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
  .ag-home > .ag-readme {
    grid-column: 2;
    grid-row: 2;
  }
  .ag-home:has(> .ag-home-hero) > .ag-readme {
    padding-top: 0;
  }
}

/* The line to give an agent: tabs by how it connects, the line on the night, a note under it. */
.ag-hero-line {
  margin-top: 24px;
}
.ag-hero-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--ag-rule);
  font: 400 15px / 24px var(--ag-code);
}
.ag-hero-tabs [role="tab"] {
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid var(--ag-rule);
  background: #fff;
  color: var(--ag-muted);
  font: inherit;
  cursor: pointer;
}
.ag-hero-tabs [role="tab"]:hover {
  color: var(--ag-ink);
}
.ag-hero-tabs [role="tab"][aria-selected="true"] {
  background: var(--ag-night);
  color: #fff;
}
.ag-hero-code {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--ag-rule);
  border-top: 0;
  background: var(--ag-night);
  font: 400 15px / 1.6 var(--ag-code);
}
.ag-hero-code code {
  flex: 1;
  min-width: 0;
  color: #fff;
  overflow-wrap: anywhere;
}
.ag-hero-code button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ag-night-muted);
  font: inherit;
  cursor: pointer;
}
.ag-hero-code button:hover,
.ag-hero-code button[data-copied] {
  color: #fff;
}
.ag-hero-note {
  margin-top: 12px;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.5;
}
.ag-hero-note code {
  color: var(--ag-ink);
  font-size: 13px;
}
@media (min-width: 640px) {
  .ag-hero-code {
    padding: 20px 22px;
    font-size: 16px;
  }
}

/* The scene: a canvas the product draws, a speech bubble over it, the caption it types, and the
   strip of links at its foot. Scripts find the parts by data-ag-scene, data-bubble, data-name,
   data-caption, data-typed and data-rest. */
.ag-scene {
  display: flex;
  flex-direction: column;
}
.ag-scene-stage {
  position: relative;
  flex: 1;
}
.ag-scene-frame {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.ag-scene-frame > canvas,
.ag-scene-stage > .ag-scene-still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 640px) {
  .ag-scene-frame {
    height: 500px;
  }
}
@media (min-width: 1024px) {
  .ag-scene-frame {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}
.ag-scene-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .ag-scene-caption {
    right: 40px;
    bottom: 24px;
    left: 40px;
  }
}
.ag-scene-eyebrow {
  color: #e3e8fb;
  font: 400 12px / 1.5 var(--ag-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #0c1230;
}
.ag-scene-said {
  min-height: 2.8em;
  margin-top: 4px;
  color: #fff;
  font: 500 18px / 1.4 var(--ag-text);
  text-shadow: 0 1px 10px #0c1230;
}
@media (min-width: 640px) {
  .ag-scene-said {
    font-size: 20px;
  }
}
.ag-scene-bubble {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 240px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(12 18 48 / 0.35);
  color: var(--ag-ink);
  font-size: 15px;
  line-height: 1.375;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.ag-scene-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: var(--tail, 50%);
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.ag-scene-bubble [data-name] {
  color: #3d4d92;
  font: 400 11px / 1.5 var(--ag-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ag-scene-bubble [data-name] + p {
  margin-top: 2px;
}
.ag-unseen {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
}
@media (min-width: 1024px) {
  .ag-scene {
    position: sticky;
    top: 44px;
    height: calc(100svh - 44px);
  }
  .ag-scene > .ag-scene-links {
    position: static;
  }
}

/* Steps down the side as tabs (the CLI's steps, the API's calls): a row of tabs on a phone, a
   column at the left from 768 px, each step's line and its commands beside. */
.ag-tabset-vertical {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ag-rule);
}
.ag-tabset-vertical > .ag-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--ag-rule);
}
.ag-tabset-vertical > .ag-tabs [role="tab"] {
  flex: 1;
  padding: 12px 8px;
  border: 0;
  background: none;
  color: var(--ag-muted);
  font: 400 11px / 1.5 var(--ag-code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ag-tabset-vertical > .ag-tabs [role="tab"]:not(:last-child) {
  border-right: 1px solid var(--ag-rule);
}
.ag-tabset-vertical > .ag-tabs [role="tab"]:hover {
  color: var(--ag-ink);
}
.ag-tabset-vertical > .ag-tabs [role="tab"][aria-selected="true"] {
  background: #fafafa;
  color: var(--ag-ink);
}
.ag-tabset-vertical > [role="tabpanel"] {
  min-width: 0;
}
.ag-tabset-vertical > [role="tabpanel"] > p {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ag-rule);
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ag-tabset-vertical > [role="tabpanel"] > pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #fafafa;
  color: var(--ag-ink);
  font: 400 12.5px / 1.7 var(--ag-code);
}
@media (min-width: 640px) {
  .ag-tabset-vertical > .ag-tabs [role="tab"] {
    padding: 12px 16px;
  }
}
@media (min-width: 768px) {
  .ag-tabset-vertical {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
  .ag-tabset-vertical > .ag-tabs {
    flex-direction: column;
    overflow: visible;
    border-right: 1px solid var(--ag-rule);
    border-bottom: 0;
  }
  .ag-tabset-vertical > .ag-tabs [role="tab"] {
    flex: none;
    text-align: left;
  }
  .ag-tabset-vertical > .ag-tabs [role="tab"]:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--ag-rule);
  }
}

/* Example chats, replayed: tabs of examples, one or two app windows, and Pause. ui.js plays them
   from the JSON beside them. */
.ag-examples-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ag-rule);
}
.ag-examples-tab {
  flex: none;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ag-muted);
  font: 400 16px / 1.5 var(--ag-text);
  cursor: pointer;
}
.ag-examples-tab:hover {
  color: var(--ag-body);
}
.ag-examples-tab[aria-selected="true"] {
  border-color: var(--ag-blue);
  color: var(--ag-blue);
}
.ag-examples-play {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ag-body);
  font: 400 14px var(--ag-text);
  text-decoration: underline;
  cursor: pointer;
}
.ag-chat-pair {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .ag-chat-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ag-chat-one {
  max-width: 32rem;
  margin: 0 auto;
}
.ag-chatwin {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ag-rule);
  background: #fff;
}
.ag-chatwin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: var(--ag-night);
  font: 400 13px var(--ag-code);
}
.ag-chatwin-title {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-chatwin-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ag-night-muted);
}
.ag-chatwin-dot {
  width: 6px;
  height: 6px;
  background: var(--ag-light);
}
.ag-chatwin-lines {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 400px;
  overflow: hidden;
  padding: 16px;
}
@media (min-width: 640px) {
  .ag-chatwin-lines {
    height: 440px;
  }
}
.ag-chatwin-person {
  max-width: 85%;
  margin-left: auto;
  padding: 8px 14px;
  background: var(--ag-night);
  color: #fff;
  font-size: 15px;
  line-height: 1.375;
}
.ag-chatwin-agent {
  max-width: 92%;
  color: var(--ag-body);
  font-size: 15px;
  line-height: 1.375;
}
.ag-chatwin-agent > * + * {
  margin-top: 8px;
}
.ag-chatwin-card {
  padding: 10px 14px;
  border: 1px solid var(--ag-rule);
  background: var(--ag-tint);
}
.ag-chatwin-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ag-muted);
  font-size: 13px;
}
.ag-chatwin-card-dot {
  width: 8px;
  height: 8px;
  background: var(--ag-light);
}
.ag-chatwin-card-url {
  margin-top: 4px;
  color: var(--ag-ink);
  font: 400 13px var(--ag-code);
  overflow-wrap: anywhere;
}
.ag-chatwin-in {
  animation: ag-chat-in 250ms ease-out both;
}
@keyframes ag-chat-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.ag-chatwin-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.ag-chatwin-typing span {
  width: 6px;
  height: 6px;
  background: var(--ag-muted);
  animation: ag-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ag-chatwin-typing span:nth-child(2) {
  animation-delay: 160ms;
}
.ag-chatwin-typing span:nth-child(3) {
  animation-delay: 320ms;
}
@keyframes ag-pulse {
  50% {
    opacity: 0.5;
  }
}
.ag-chatwin-bottom {
  padding: 12px;
  border-top: 1px solid var(--ag-rule);
}
.ag-chatwin-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--ag-rule);
}
.ag-chatwin-draft {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  color: var(--ag-muted);
  font-size: 15px;
  line-height: 1.375;
}
.ag-chatwin-draft[data-typing] {
  color: var(--ag-body);
}
.ag-chatwin-caret {
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-left: 1px;
  background: var(--ag-body);
  transform: translateY(2px);
  animation: ag-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ag-chatwin-send {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ag-tint);
  color: var(--ag-muted);
  font-size: 14px;
}
.ag-chatwin-send[data-ready] {
  background: var(--ag-night);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .ag-chatwin-in,
  .ag-chatwin-typing span,
  .ag-chatwin-caret {
    animation: none;
  }
}

/* The aBeacon module: what only abeacon.sh draws. A beacon (its words on white, with the beacon's
   yellow glow round it), the pulsing Open light, the counts line, and the home page's scene: a
   still beacon in rings, and while client/abeacon-panel.js runs, the isometric night with cards,
   bubbles and the message tag over a canvas. Components in src/abeacon.tsx. */

/* A beacon: its words as its creator wrote them, and its line under them. */
.ag-abeacon-beacon {
  margin: 24px 0 32px;
  padding: 20px 22px;
  border: 1px solid var(--ag-line);
  border-radius: 4px;
  background: #fff;
}
.ag-abeacon-beacon > .ag-abeacon-words {
  color: var(--ag-ink);
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ag-abeacon-beacon > .ag-meta {
  margin-top: 14px;
}
.ag-abeacon-beacon > .ag-meta:first-child {
  margin-top: 0;
}
@media (max-width: 480px) {
  .ag-abeacon-beacon {
    padding: 16px 18px;
  }
  .ag-abeacon-beacon > .ag-abeacon-words {
    font-size: 16px;
  }
}
/* Lit: the glow of a beacon that is open, in a chat and in the scene. */
.ag-abeacon-glow {
  border: 0;
  box-shadow: 0 0 0 6px rgb(244 196 67 / 0.18);
}
.ag-abeacon-glow > .ag-abeacon-words {
  color: var(--ag-body);
  font-size: 15px;
  line-height: 1.55;
}
.ag-abeacon-glow > .ag-meta {
  margin-top: 12px;
  font-size: 12px;
}
/* In a chat bubble: smaller, under the agent's words. */
.ag-chat .ag-abeacon-beacon {
  display: block;
  margin: 8px 0 0;
  padding: 14px 16px;
  box-shadow: 0 0 0 4px rgb(244 196 67 / 0.18);
}
.ag-chat .ag-abeacon-beacon > .ag-abeacon-words {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
}
.ag-chat .ag-abeacon-beacon > .ag-meta {
  display: block;
  margin-top: 8px;
}

/* Open: the beacon's light, pulsing, then the word. */
.ag-abeacon-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: top;
  color: #1a7f4b;
  font-weight: 500;
}
.ag-abeacon-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ag-light);
}
.ag-abeacon-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ag-light);
  animation: ag-abeacon-pulse 2.8s ease-out infinite;
}
@keyframes ag-abeacon-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag-abeacon-dot::after {
    animation: none;
    opacity: 0;
  }
}

/* The counts: how many are open, hiring and so on, in the code face. */
.ag-abeacon-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 22px;
  color: var(--ag-muted);
  font: 400 12px / 1.6 var(--ag-code);
}
.ag-abeacon-counts > .ag-abeacon-open {
  color: var(--ag-ink);
  font-weight: 400;
}
/* The count beside the README eyebrow. */
.ag-eyebrow > .ag-abeacon-open {
  order: 1;
  color: var(--ag-ink);
  font-size: 12px;
  letter-spacing: 0;
}

/* The scene: the still beacon in its rings, the caption, and the links at the foot. */
.ag-abeacon-scene {
  position: relative;
  flex: 1;
  min-height: 520px;
  padding: 40px 20px 120px;
  overflow: hidden;
}
.ag-abeacon-rings {
  position: absolute;
  top: 38%;
  left: 50%;
}
.ag-abeacon-rings > span {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1.5px solid var(--ag-light);
  border-radius: 50%;
  opacity: 0.55;
  transform: translate(-50%, -50%);
}
.ag-abeacon-rings > span:nth-child(2) {
  border-width: 1px;
  opacity: 0.28;
  transform: translate(-50%, -50%) scale(1.57);
}
.ag-abeacon-rings > span:nth-child(3) {
  border-width: 0.7px;
  opacity: 0.13;
  transform: translate(-50%, -50%) scale(2.2);
}
.ag-abeacon-scene > .ag-abeacon-beacon {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.ag-abeacon-caption {
  position: absolute;
  right: 20px;
  bottom: 48px;
  left: 20px;
}
.ag-abeacon-caption p {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.ag-abeacon-scene ~ .ag-scene-links {
  border-top: 1px solid var(--ag-night-line);
}
@media (min-width: 1024px) {
  .ag-abeacon-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 24px;
  }
  .ag-abeacon-rings {
    top: 46%;
  }
  .ag-abeacon-scene > .ag-abeacon-beacon {
    width: 78%;
    margin-top: -40px;
  }
  .ag-abeacon-caption {
    right: 24px;
    bottom: 32px;
    left: 24px;
  }
  .ag-abeacon-caption p {
    font-size: 18px;
  }
}

/* While the script plays: the canvas, the cards, the bubbles, the message and its tag. */
.ag-abeacon-live {
  min-height: 600px;
}
@media (min-width: 1024px) {
  .ag-abeacon-live {
    min-height: 0;
  }
}
.ag-abeacon-live .ag-abeacon-rings {
  display: none;
}
/* Out of sight, still read out: the moving parts are hidden from screen readers instead. */
.ag-abeacon-live > .ag-abeacon-beacon {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ag-abeacon-world {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.ag-abeacon-live .ag-abeacon-caption {
  text-shadow: 0 1px 10px #0c1230;
}
.ag-abeacon-live .ag-abeacon-caption p {
  min-height: 2.8em;
  font-weight: 500;
}
.ag-abeacon-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 186px;
  padding: 9px 11px;
  border: 1px solid #8796c7;
  border-top: 3px solid #4057a5;
  border-radius: 2px;
  background: #f5f7ff;
  box-shadow: 2px 4px 0 rgb(14 20 48 / 0.36);
  color: var(--ag-body);
  opacity: 0;
  pointer-events: none;
  transition: box-shadow 0.5s;
  will-change: transform, opacity;
}
.ag-abeacon-card .ag-abeacon-text {
  font-size: 12px;
  line-height: 1.42;
}
.ag-abeacon-card .ag-meta {
  margin-top: 6px;
  font-size: 10px;
}
.ag-abeacon-card.ag-abeacon-flare {
  border-top-color: var(--ag-light);
  background: #fff;
  box-shadow:
    0 0 0 2px var(--ag-light),
    2px 5px 0 rgb(14 20 48 / 0.36);
}
.ag-abeacon-card.ag-abeacon-yours {
  z-index: 3;
  border-top-color: var(--ag-light);
}
.ag-abeacon-yours .ag-abeacon-text {
  color: var(--ag-ink);
  font-weight: 500;
}
.ag-abeacon-narrow .ag-abeacon-card {
  padding: 7px 9px;
}
.ag-abeacon-narrow .ag-abeacon-card .ag-abeacon-text {
  font-size: 11px;
}
.ag-abeacon-bubble,
.ag-abeacon-note {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  max-width: 230px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(12 18 48 / 0.35);
  color: var(--ag-ink);
  font-size: 15px;
  line-height: 1.375;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ag-abeacon-bubble::after,
.ag-abeacon-note::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: var(--tail, 50%);
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.ag-abeacon-bubble small,
.ag-abeacon-note small {
  display: block;
  color: #3d4d92;
  font: 400 11px var(--ag-code);
  letter-spacing: 0.04em;
}
.ag-abeacon-bubble p,
.ag-abeacon-note p {
  margin-top: 2px;
}
.ag-abeacon-narrow .ag-abeacon-note,
.ag-abeacon-narrow .ag-abeacon-bubble {
  max-width: min(210px, 53%);
  padding: 8px 10px;
  font-size: 13px;
}
.ag-abeacon-note {
  border: 1px solid var(--ag-light);
  box-shadow:
    0 0 0 4px rgb(244 196 67 / 0.25),
    0 6px 20px rgb(12 18 48 / 0.35);
  transition: none;
}
.ag-abeacon-note::after {
  border-right: 1px solid var(--ag-light);
  border-bottom: 1px solid var(--ag-light);
}
.ag-abeacon-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid var(--ag-light);
  background: #0e1430;
  color: #fff;
  font: 500 11px var(--ag-code);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ag-abeacon-card,
  .ag-abeacon-bubble {
    transition: none;
  }
}

/* aMessage's chats as a messenger (founder, Nov 21): the conversations on the left, the open one
   on the right with its reply box at the foot. On a phone they take turns. It's a light part of
   the app (Shell without `night`). The beacon's yellow marks only what is new: unread
   conversations and requests waiting.

   State is in attributes, not classes: `data-off` is the side a phone hides, `data-unread` a
   conversation with new messages, `data-mine` a message you sent, `data-light` a pale avatar,
   `aria-current` the folder or conversation you're on. */

/* ---------- What the messenger's parts start from ---------- */
:where(.ag-amessage-chat-messenger, .ag-amessage-chat-first-run, .ag-amessage-chat-setup) {
  line-height: 1.5;
}
:where(.ag-amessage-chat-messenger, .ag-amessage-chat-first-run, .ag-amessage-chat-setup)
  :where(h1, h2, h3) {
  font-family: var(--ag-display);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.035em;
}
:where(.ag-amessage-chat-messenger, .ag-amessage-chat-first-run, .ag-amessage-chat-setup)
  :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* Plain links stay blue on hover, underlined. */
:where(.ag-amessage-chat-messenger, .ag-amessage-chat-first-run, .ag-amessage-chat-setup)
  a:not([class]):hover {
  color: var(--ag-blue);
}

/* ---------- Shared parts ---------- */
.ag-amessage-chat-form {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
}
.ag-amessage-chat-form :where(label) {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ag-ink);
}
.ag-amessage-chat-form :where(small) {
  font-size: 0.8125rem;
  color: var(--ag-muted);
  line-height: 1.5;
}
.ag-amessage-chat-form :where(small a),
.ag-amessage-chat-form :where(small) a:hover {
  color: var(--ag-blue);
  text-decoration: underline;
}
.ag-amessage-chat-form :where(input:not([type="checkbox"], [type="hidden"]), textarea, select),
.ag-amessage-chat-composer :where(textarea) {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ag-rule);
  border-radius: 0;
  background: white;
  color: var(--ag-ink);
  font: inherit;
  font-weight: 400;
}
.ag-amessage-chat-form :where(textarea) {
  resize: vertical;
}
.ag-amessage-chat-form :where(input, textarea)::placeholder,
.ag-amessage-chat-composer :where(textarea)::placeholder {
  color: color-mix(in oklab, currentcolor 50%, transparent);
  opacity: 1;
}
.ag-amessage-chat-form :where(input, textarea, select):focus,
.ag-amessage-chat-composer :where(textarea):focus {
  outline: none;
  border-color: var(--ag-blue);
  box-shadow: 0 0 0 3px rgb(43 63 158 / 0.12);
}
.ag-amessage-chat-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
.ag-amessage-chat-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--ag-blue);
}
/* A check beside a label of several lines sits by its first line. */
.ag-amessage-chat-check-top {
  align-items: flex-start;
}
.ag-amessage-chat-check-top input {
  flex: none;
  margin-top: 0.2rem;
}
.ag-amessage-chat-code {
  max-width: 10rem;
  font-family: var(--ag-code);
  letter-spacing: 0.3em;
  font-size: 1.1rem;
}
.ag-amessage-chat-inline {
  display: inline-flex;
}
.ag-amessage-chat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}
.ag-amessage-chat-messenger :where(:focus-visible),
.ag-amessage-chat-setup :where(:focus-visible) {
  outline: 2px solid var(--ag-blue);
  outline-offset: 2px;
}

.ag-amessage-chat-primary,
.ag-amessage-chat-ghost,
.ag-amessage-chat-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  justify-self: start;
}
.ag-amessage-chat-primary,
.ag-amessage-chat-primary:hover {
  color: white;
}
.ag-amessage-chat-primary {
  background: var(--ag-blue);
}
.ag-amessage-chat-primary:hover {
  background: var(--ag-night);
  text-decoration: none;
}
.ag-amessage-chat-ghost,
.ag-amessage-chat-ghost:hover {
  color: var(--ag-ink);
}
.ag-amessage-chat-ghost {
  background: white;
  border-color: var(--ag-rule);
}
.ag-amessage-chat-ghost:hover {
  background: var(--ag-tint);
}
.ag-amessage-chat-danger,
.ag-amessage-chat-danger:hover {
  color: white;
}
.ag-amessage-chat-danger {
  background: #a64540;
}
.ag-amessage-chat-danger:hover {
  background: #7f2f2b;
}
.ag-amessage-chat-quiet,
.ag-amessage-chat-text-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.85rem;
  color: var(--ag-muted);
  text-decoration: underline;
  cursor: pointer;
}
.ag-amessage-chat-quiet:hover,
.ag-amessage-chat-text-button:hover {
  color: var(--ag-ink);
}
.ag-amessage-chat-text-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}
.ag-amessage-chat-text-link,
.ag-amessage-chat-text-link:hover {
  color: var(--ag-blue);
}
.ag-amessage-chat-lead {
  color: var(--ag-muted);
  line-height: 1.6;
}
.ag-amessage-chat-lead a,
.ag-amessage-chat-lead a:hover {
  color: var(--ag-blue);
  text-decoration: underline;
}
.ag-amessage-chat-notice,
.ag-amessage-chat-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--ag-blue);
  background: var(--ag-tint);
  font-size: 0.9rem;
}
.ag-amessage-chat-alert {
  border-color: #a64540;
  background: #fbf1f0;
}

.ag-amessage-chat-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  background: var(--ag-night);
  color: white;
  font: 500 0.95rem var(--ag-display);
}
.ag-amessage-chat-avatar[data-light] {
  background: #dfe4f6;
  color: var(--ag-blue);
}
.ag-amessage-chat-agent-tag {
  margin-left: 0.4rem;
  padding: 0 0.3rem;
  border: 1px solid var(--ag-rule);
  background: white;
  color: var(--ag-blue);
  font: 0.6875rem var(--ag-code);
}

/* ---------- The two columns ---------- */
.ag-amessage-chat-messenger {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 48px - 64px);
  background: white;
  color: var(--ag-ink);
}
/* Signed in with no address yet */
.ag-amessage-chat-first-run {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  padding: 1.5rem 1rem 3rem;
  color: var(--ag-ink);
}
@media (min-width: 64rem) {
  .ag-amessage-chat-first-run {
    padding: 2.5rem 2rem 4rem;
  }
}
.ag-amessage-chat-list,
.ag-amessage-chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ag-amessage-chat-pane {
  background: #fbfcfe;
}
/* On a phone the list and the open conversation take turns. */
@media (max-width: 63.99rem) {
  .ag-amessage-chat-list[data-off],
  .ag-amessage-chat-pane[data-off] {
    display: none;
  }
}
@media (min-width: 64rem) {
  .ag-amessage-chat-messenger {
    grid-template-columns: minmax(300px, 34%) 1fr;
    height: 100%;
    min-height: 0;
  }
  .ag-amessage-chat-list {
    border-right: 1px solid var(--ag-rule);
  }
}

/* ---------- The list ---------- */
.ag-amessage-chat-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}
.ag-amessage-chat-list-head h1 {
  font: 600 1.75rem / 1 var(--ag-display);
  letter-spacing: -0.03em;
}
.ag-amessage-chat-loading {
  padding: 1.25rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--ag-rule);
}
.ag-amessage-chat-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 0.6rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  color: var(--ag-muted);
  text-decoration: none;
}
.ag-amessage-chat-tabs a:hover {
  color: var(--ag-ink);
}
.ag-amessage-chat-tabs a[aria-current] {
  border-color: var(--ag-blue);
  color: var(--ag-ink);
  font-weight: 500;
}
.ag-amessage-chat-kind {
  padding: 0;
  margin-bottom: 1.25rem;
}
.ag-amessage-chat-count {
  padding: 0.15rem 0.35rem;
  background: var(--ag-light);
  color: var(--ag-night);
  font: 0.6875rem / 1 var(--ag-code);
}
.ag-amessage-chat-list > .ag-amessage-chat-notice,
.ag-amessage-chat-list > .ag-amessage-chat-alert {
  margin: 1rem 1.25rem 0;
}
.ag-amessage-chat-rows {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-amessage-chat-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #eef0f8;
  color: inherit;
  text-decoration: none;
}
.ag-amessage-chat-item:hover {
  background: var(--ag-tint);
  color: inherit;
  text-decoration: none;
}
.ag-amessage-chat-item[aria-current] {
  background: var(--ag-tint);
  box-shadow: inset 3px 0 var(--ag-blue);
}
.ag-amessage-chat-item-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.ag-amessage-chat-item-text strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-amessage-chat-item-text > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-item[data-unread] .ag-amessage-chat-preview {
  color: var(--ag-ink);
}
.ag-amessage-chat-item-text > .ag-amessage-chat-state {
  font: 0.75rem var(--ag-code);
  color: var(--ag-blue);
}
.ag-amessage-chat-item-side {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}
.ag-amessage-chat-item-side time {
  font: 0.75rem var(--ag-code);
  color: var(--ag-muted);
  white-space: nowrap;
}
.ag-amessage-chat-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ag-light);
  box-shadow: 0 0 0 3px rgb(244 196 67 / 0.28);
}
.ag-amessage-chat-request {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef0f8;
}
.ag-amessage-chat-request > a {
  font-size: 0.875rem;
  text-decoration: underline;
  width: fit-content;
}
.ag-amessage-chat-request > a,
.ag-amessage-chat-request > a:hover {
  color: var(--ag-blue);
}
.ag-amessage-chat-decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.ag-amessage-chat-decision .ag-amessage-chat-quiet {
  margin-left: auto;
}
.ag-amessage-chat-list-empty {
  flex: 1;
  padding: 1.25rem;
  color: var(--ag-muted);
  font-size: 0.9rem;
}
.ag-amessage-chat-verify {
  margin: 0 1.25rem 1rem;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ag-amessage-chat-verify,
.ag-amessage-chat-verify:hover {
  color: var(--ag-blue);
}
.ag-amessage-chat-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--ag-rule);
  font-size: 0.8125rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-list-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  color: inherit;
  text-decoration: none;
}
.ag-amessage-chat-list-foot a:hover,
.ag-amessage-chat-list-foot a[aria-current] {
  color: var(--ag-ink);
}
.ag-amessage-chat-list-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- The open pane ---------- */
/* A conversation opens at its newest message, the way messengers do. */
.ag-amessage-chat-latest-first {
  display: flex;
  flex-direction: column-reverse;
}

.ag-amessage-chat-pane-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--ag-rule);
  background: white;
}
.ag-amessage-chat-who {
  flex: 1;
  min-width: 0;
}
.ag-amessage-chat-who h1,
.ag-amessage-chat-who .ag-amessage-chat-name {
  font: 600 1.125rem / 1.2 var(--ag-display);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-amessage-chat-who p:not(.ag-amessage-chat-name) {
  font-size: 0.8125rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-back {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid var(--ag-rule);
}
.ag-amessage-chat-back,
.ag-amessage-chat-back:hover {
  color: var(--ag-ink);
}
.ag-amessage-chat-pane-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.ag-amessage-chat-narrow {
  max-width: 36rem;
}
.ag-amessage-chat-title {
  font: 600 1.5rem / 1.15 var(--ag-display);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.ag-amessage-chat-narrow .ag-amessage-chat-form {
  margin-top: 1.25rem;
}
.ag-amessage-chat-narrow > .ag-amessage-chat-inline {
  margin-top: 1.25rem;
}

/* The menu behind ⋯ */
.ag-amessage-chat-menu {
  position: relative;
}
.ag-amessage-chat-menu-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ag-rule);
  background: white;
  cursor: pointer;
  list-style: none;
}
.ag-amessage-chat-menu-button::-webkit-details-marker {
  display: none;
}
.ag-amessage-chat-menu[open] .ag-amessage-chat-menu-button {
  background: var(--ag-tint);
}
.ag-amessage-chat-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100dvh - 8rem));
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--ag-rule);
  background: white;
  box-shadow: 0 12px 32px rgb(24 34 77 / 0.14);
}
.ag-amessage-chat-menu-panel > * + * {
  margin-top: 1rem;
}

/* Groups */
.ag-amessage-chat-members h2 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.ag-amessage-chat-members ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-amessage-chat-members li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eef0f8;
  font-size: 0.9rem;
}
.ag-amessage-chat-role {
  margin-left: 0.4rem;
  color: var(--ag-muted);
  font-size: 0.75rem;
}
.ag-amessage-chat-member-actions {
  display: flex;
  gap: 0.75rem;
  flex: none;
}
.ag-amessage-chat-messages li.ag-amessage-chat-change {
  justify-items: center;
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--ag-muted);
  text-align: center;
}

/* ---------- Messages ---------- */
.ag-amessage-chat-thread {
  max-width: 46rem;
  margin-inline: auto;
}
.ag-amessage-chat-pages {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.ag-amessage-chat-pages a,
.ag-amessage-chat-pages a:hover {
  color: var(--ag-blue);
  text-decoration: underline;
}
.ag-amessage-chat-messages {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag-amessage-chat-messages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
.ag-amessage-chat-messages > [data-mine] {
  justify-items: end;
}
.ag-amessage-chat-day {
  justify-self: center;
  margin: 1rem 0 0.5rem;
  font: 0.75rem var(--ag-code);
  color: var(--ag-muted);
}
.ag-amessage-chat-author {
  display: inline-flex;
  align-items: center;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-bubble-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 82%;
}
.ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-bubble-row {
  flex-direction: row-reverse;
}
.ag-amessage-chat-bubble {
  min-width: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ag-rule);
  background: white;
  overflow-wrap: anywhere;
}
.ag-amessage-chat-bubble p,
p.ag-amessage-chat-bubble {
  white-space: pre-wrap;
  line-height: 1.5;
}
.ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-bubble {
  border-color: var(--ag-night);
  background: var(--ag-night);
  color: white;
}
.ag-amessage-chat-quoted {
  display: block;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--ag-rule);
  font-size: 0.8125rem;
  color: var(--ag-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28rem;
}
.ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-quoted {
  border-color: #4a5796;
  color: #c5cdf0;
}
.ag-amessage-chat-beacon-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ag-amessage-chat-beacon-link,
.ag-amessage-chat-beacon-link:hover {
  color: var(--ag-blue);
}
.ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-beacon-link {
  color: white;
}
.ag-amessage-chat-reply-link {
  flex: none;
  font-size: 0.75rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity 120ms;
}
.ag-amessage-chat-reply-link,
.ag-amessage-chat-reply-link:hover {
  color: var(--ag-blue);
}
.ag-amessage-chat-bubble-row:hover .ag-amessage-chat-reply-link,
.ag-amessage-chat-reply-link:focus-visible {
  opacity: 1;
}
/* Without a pointer to hover, Reply sits small under each message. */
@media (hover: none) {
  .ag-amessage-chat-bubble-row,
  .ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-bubble-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .ag-amessage-chat-messages > [data-mine] .ag-amessage-chat-bubble-row {
    align-items: flex-end;
  }
  .ag-amessage-chat-reply-link {
    opacity: 1;
  }
  .ag-amessage-chat-reply-link,
  .ag-amessage-chat-reply-link:hover {
    color: var(--ag-muted);
  }
}
.ag-amessage-chat-latest {
  display: block;
  scroll-margin-bottom: 7rem;
}
.ag-amessage-chat-seen {
  margin-top: 0.2rem;
  font: 0.6875rem var(--ag-code);
  color: var(--ag-muted);
}

/* ---------- The reply box, always at the foot ---------- */
.ag-amessage-chat-composer {
  border-top: 1px solid var(--ag-rule);
  background: white;
  padding: 0.75rem 1.5rem;
}
.ag-amessage-chat-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 46rem;
  margin-inline: auto;
}
.ag-amessage-chat-composer textarea {
  flex: 1;
  min-height: 46px;
  max-height: 10rem;
  resize: vertical;
}
.ag-amessage-chat-composer .ag-amessage-chat-primary {
  min-height: 46px;
  padding-inline: 1.25rem;
}
.ag-amessage-chat-replying {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto 0.5rem;
  padding: 0.4rem 0.7rem;
  border-left: 2px solid var(--ag-blue);
  background: var(--ag-tint);
  font-size: 0.8125rem;
}
.ag-amessage-chat-replying span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-amessage-chat-replying a,
.ag-amessage-chat-replying a:hover {
  color: var(--ag-blue);
  text-decoration: underline;
}
.ag-amessage-chat-closed {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--ag-rule);
  background: white;
  color: var(--ag-muted);
  text-align: center;
}

/* ---------- The example conversation ---------- */
.ag-amessage-chat-example {
  position: relative;
}
.ag-amessage-chat-example-tag {
  width: fit-content;
  margin: 0 auto 0.25rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ag-rule);
  background: white;
  font: 0.75rem var(--ag-code);
  color: var(--ag-muted);
}

/* ---------- Nothing open ---------- */
.ag-amessage-chat-nothing {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 2.5rem 1.5rem;
  color: var(--ag-muted);
  text-align: center;
}
.ag-amessage-chat-nothing svg {
  color: var(--ag-blue);
}
.ag-amessage-chat-nothing h2 {
  font: 600 1.5rem / 1.15 var(--ag-display);
  letter-spacing: -0.025em;
  color: var(--ag-ink);
}
.ag-amessage-chat-nothing p {
  max-width: 26rem;
}
.ag-amessage-chat-nothing .ag-amessage-chat-example {
  width: 100%;
  max-width: 32rem;
  margin-top: 1.5rem;
  text-align: left;
}

/* A beacon a new chat is about */
.ag-amessage-chat-beacon-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ag-rule);
  border-left: 3px solid var(--ag-blue);
  background: var(--ag-tint);
  text-decoration: none;
}
.ag-amessage-chat-beacon-card,
.ag-amessage-chat-beacon-card:hover {
  color: var(--ag-ink);
}
.ag-amessage-chat-beacon-card small {
  font-size: 0.75rem;
  color: var(--ag-muted);
}
.ag-amessage-chat-beacon-card:hover strong {
  color: var(--ag-blue);
}

/* ---------- Setting up: proving an address, beside a preview of the inbox ---------- */
.ag-amessage-chat-setup {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 44px);
  background: white;
  color: var(--ag-ink);
}
.ag-amessage-chat-setup-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem 1.25rem;
}
.ag-amessage-chat-setup-title {
  font: 600 clamp(1.9rem, 3.2vw, 2.4rem) / 1.05 var(--ag-display);
  letter-spacing: -0.035em;
}
.ag-amessage-chat-setup-card .ag-amessage-chat-lead {
  margin-top: -0.25rem;
}
.ag-amessage-chat-setup-preview {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ag-rule);
  background: #fbfcfe;
}
.ag-amessage-chat-setup-preview .ag-amessage-chat-pane-body {
  overflow: visible;
}
.ag-amessage-chat-setup-preview .ag-amessage-chat-example {
  max-width: 40rem;
  margin-inline: auto;
}
@media (min-width: 64rem) {
  .ag-amessage-chat-setup {
    grid-template-columns: 30% 1fr;
  }
  .ag-amessage-chat-setup-card {
    padding: 2.75rem 2.5rem;
    border-right: 1px solid var(--ag-rule);
  }
  .ag-amessage-chat-setup-preview {
    border-top: 0;
  }
}
/* Verifying a phone by text: a form, or the code to give the assistant. */
.ag-amessage-chat-phone {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

@media (max-width: 40rem) {
  .ag-amessage-chat-pane-head {
    padding-inline: 1rem;
  }
  .ag-amessage-chat-pane-body {
    padding: 1.25rem 1rem;
  }
  .ag-amessage-chat-composer {
    position: sticky;
    bottom: 0;
    padding: 0.6rem 1rem;
  }
  .ag-amessage-chat-bubble-row {
    max-width: 92%;
  }
}

@media (min-width: 64rem) {
  .ag-amessage-chat-back {
    display: none;
  }
}

/* ---------- Encrypted chats: the words open in this browser; what can't says why, quietly ---------- */
.ag-amessage-chat-sealed {
  color: var(--ag-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ag-amessage-chat-encryption {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ag-rule);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ag-amessage-chat-encryption h2 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.ag-amessage-chat-fingerprint {
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  word-spacing: 0.15em;
  overflow-wrap: anywhere;
}
.ag-amessage-chat-changed {
  display: block;
  color: var(--ag-ink);
  font-weight: 600;
}

/* aMessage's home page, and only what's aMessage's own. The page is the shared Home (65-home.css):
   the hero, the scene's frame, bubbles and caption, the example chats, the steps as tabs and the
   questions. What's here is the street's: the illustrated street that shows under the frame until
   its canvas paints (3 Dec 2026: the street replaced the 3D town). */

/* The street's picture fills the frame, cropped to it rather than squeezed. */
.ag-amessage-home-street {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* On a wide window the street's strip carries the few links, so the night footer steps aside while
   the home is on screen. Next keeps a page it has left hidden with display: none; that copy doesn't
   count. */
@media (min-width: 1024px) {
  .ag-page:has(> main > .ag-home:not([style*="display: none"]) .ag-amessage-home-street)
    > .ag-footer {
    display: none;
  }
}
