/* The web client's page styles; the brand tokens they use are inlined by the layout. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* The device's own reading face, as in the Mac app: SF Pro on Apple devices, Segoe UI on Windows, the desktop's elsewhere. Not the
   kit's interface token, whose Outfit only a browser with it installed drew. Segoe UI comes before system-ui, which a Windows CJK
   locale maps to a face that sets Latin poorly. */
body { background: var(--am-color-canvas); color: var(--am-color-text);
  font: var(--am-type-body-weight) var(--am-type-body-size)/var(--am-type-body-line-height) -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
/* Without color-scheme a dark page keeps the browser's white scrollbar, and a browser with no scrollbar-color
   (Safari before 26.2) still draws its own; ::-webkit-scrollbar would pin Safari's overlay scrollbars open. */
:root { color-scheme: light dark; scrollbar-color: var(--am-color-border) transparent; }
/* A theme picked in Settings holds against the computer's (Layout paints it); unpicked follows it. */
:root[data-am-theme="day"] { color-scheme: light; }
:root[data-am-theme="night"] { color-scheme: dark; }
* { scrollbar-width: thin; }
.app { display: flex; height: 100dvh; }
.chat { display: flex; flex: 1; min-width: 0; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; padding: 0 var(--am-space-4); }
.sidebar { display: flex; flex: none; flex-direction: column; width: 260px; padding: var(--am-space-4) var(--am-space-3);
  background: var(--am-color-surface); border-right: var(--am-border-thin) solid var(--am-color-divider); }
.roster { display: flex; flex: 1; flex-direction: column; gap: var(--am-space-1); overflow-y: auto; }
.roster a, .shelf a { display: flex; align-items: center; gap: var(--am-space-2); padding: var(--am-space-2) var(--am-space-3); border-radius: var(--am-radius-control);
  color: var(--am-color-text); font-weight: var(--am-type-label-weight); text-decoration: none; }
.roster a:hover, .shelf a:hover { background: var(--am-color-surface-inset); }
.shelf { display: flex; flex-direction: column; padding-bottom: var(--am-space-2); }
.roster .who { display: flex; flex-direction: column; min-width: 0; }
/* The Mac's AntHead: the brand head at 84%, a little low, on its enamel disc inside a hairline ring. */
.head { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 var(--am-border-thin) var(--am-color-divider);
  background: url(ant-head.png) 50% 69% / 84% no-repeat var(--enamel); }
.head[data-face="vermilion"] { --enamel: var(--am-palette-vermilion); }
.head[data-face="metal"] { --enamel: var(--am-palette-metal); }
.head[data-face="sage"] { --enamel: var(--am-palette-sage); }
.head[data-face="deep-sage"] { --enamel: var(--am-palette-sage-deep); }
.head[data-face="ivory"] { --enamel: var(--am-palette-ivory); }
.head[data-face="brown"] { --enamel: var(--am-palette-muted); }
.shelf svg { flex: none; }
.shelf .count { margin-left: auto; color: var(--am-color-text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.roster a[aria-current], .shelf a[aria-current] { background: var(--am-color-selection); color: var(--am-color-selection-text); }
.roster .role { overflow: hidden; color: var(--am-color-text-muted); font-size: var(--am-type-caption-size);
  font-weight: var(--am-type-caption-weight); text-overflow: ellipsis; white-space: nowrap; }
.account { padding-top: var(--am-space-3); border-top: var(--am-border-thin) solid var(--am-color-divider); }
.account > button { display: flex; align-items: center; gap: var(--am-space-2); width: 100%; padding: var(--am-space-2); font: inherit;
  font-weight: var(--am-type-label-weight); text-align: left; color: var(--am-color-text); background: none; border: 0;
  border-radius: var(--am-radius-control); cursor: pointer; }
.account > button:hover, .account > button:has(+ :popover-open) { background: var(--am-color-surface-inset); }
.avatar { position: relative; display: grid; flex: none; place-items: center; width: 28px; height: 28px; overflow: hidden; border-radius: 50%;
  background: var(--am-color-text-muted); color: var(--am-color-canvas); font-size: var(--am-type-caption-size); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { flex: none; margin-left: auto; }
.account > button:has(+ :popover-open) .account-chevron { transform: rotate(180deg); }
#account-menu { inset: auto auto calc(var(--am-space-4) + var(--am-space-3) + 28px + 3 * var(--am-space-2)) var(--am-space-3);
  width: calc(260px - 2 * var(--am-space-3)); margin: 0; padding: var(--am-space-1); color: var(--am-color-text); background: var(--am-color-surface);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-panel); box-shadow: var(--am-elevation-panel); }
#account-menu a { display: flex; align-items: center; gap: var(--am-space-3); min-height: var(--am-metric-touch-target); width: 100%; padding: var(--am-space-2) var(--am-space-3); font: inherit; text-align: left;
  color: inherit; text-decoration: none; background: none; border: 0; border-radius: var(--am-radius-control); cursor: pointer; }
#account-menu a:hover { background: var(--am-color-surface-inset); }
#account-menu svg { flex: none; }
.account > button:focus-visible, #account-menu a:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.menu { display: none; place-items: center; width: var(--am-metric-touch-target); height: var(--am-metric-touch-target); margin-left: calc(-1 * var(--am-space-2));
  padding: 0; color: var(--am-color-text); background: none; border: 0; cursor: pointer; }
.scrim { display: none; }
@media (max-width: 720px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; width: min(80vw, 300px); transform: translateX(-100%);
    visibility: hidden; transition: transform var(--am-motion-quick) var(--am-motion-ease), visibility var(--am-motion-quick); }
  .sidebar.open { transform: none; visibility: visible; box-shadow: var(--am-elevation-panel); }
  .menu, .scrim { display: grid; }
  #account-menu { width: calc(min(80vw, 300px) - 2 * var(--am-space-3)); }
  .scrim { position: fixed; inset: 0; z-index: 1; background: rgb(0 0 0 / 0.3); }
}
.bar { display: flex; align-items: center; gap: var(--am-space-2); padding: var(--am-space-4) 0;
  border-bottom: var(--am-border-thin) solid var(--am-color-divider); }
.bar h1 { margin: 0; font-size: var(--am-type-label-size); font-weight: var(--am-type-label-weight); }
/* Said only while the page has lost its Colony: a dot that only ever showed "connected" meant nothing. */
.lamp { display: none; color: var(--am-color-text-muted); font-size: 12px; }
.phx-client-error .lamp, .phx-server-error .lamp { display: inline; }
.thread { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
.transcript { flex: 1; min-height: 0; overflow-y: auto; padding: var(--am-space-6) 0; }
/* A class later in this file would otherwise beat `[hidden]` and leave the jump up over the latest line. */
.scroll-bottom { position: absolute; left: 50%; bottom: var(--am-space-3); transform: translateX(-50%); display: grid;
  place-items: center; width: var(--am-metric-touch-target); height: var(--am-metric-touch-target); padding: 0;
  color: var(--am-color-text); background: var(--am-color-surface); border: var(--am-border-thin) solid var(--am-color-border);
  border-radius: var(--am-radius-pill); box-shadow: var(--am-elevation-key); cursor: pointer; }
.scroll-bottom[hidden] { display: none; }
.scroll-bottom:hover { background: var(--am-color-surface-inset); }
.scroll-bottom:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.scroll-bottom:active { transform: translateX(-50%) translateY(var(--am-motion-pressed-offset)); }
@media (prefers-reduced-motion: reduce) { .scroll-bottom:active { transform: translateX(-50%); } }
.msg { margin: 0 0 var(--am-space-5); white-space: pre-wrap; overflow-wrap: anywhere; max-width: var(--am-metric-body-measure); }
.msg.you { width: fit-content; max-width: 80%; margin-left: auto; padding: var(--am-space-2) var(--am-space-4);
  background: var(--am-color-selection); color: var(--am-color-selection-text); border-radius: var(--am-radius-panel); }
.ant-ref { color: var(--am-color-link); background: var(--am-color-surface-inset); font-weight: var(--am-type-label-weight);
  border-radius: var(--am-radius-small); padding: 0 var(--am-space-1); text-decoration: none; }
a.ant-ref:hover { text-decoration: underline; }
a.ant-ref:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.msg.md { white-space: normal; }
#reply-md:empty { display: none; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md :is(p, ul, ol, pre, blockquote, table) { margin: 0 0 var(--am-space-3); }
.md :is(h1, h2, h3, h4) { margin: var(--am-space-4) 0 var(--am-space-2); font-size: var(--am-type-label-size); font-weight: var(--am-type-label-weight); }
.md a { color: var(--am-color-link); }
/* An Ant's drawing, live page or table, drawn from its fenced block. */
.md .surface { display: block; max-width: 100%; margin: 0 0 var(--am-space-2); border-radius: var(--am-radius-control); }
.md iframe.surface { width: 100%; height: 420px; border: var(--am-border-thin) solid var(--am-color-border); background: #fff; }
.md table.surface { display: block; overflow-x: auto; }
.md img.surface { background: #fff; }
.md button.surface.run { padding: var(--am-space-3) var(--am-space-4); color: var(--am-color-text); background: var(--am-color-surface); border: var(--am-border-thin) solid var(--am-color-border); font: inherit; cursor: pointer; }
.md button.surface.run:hover { background: var(--am-color-surface-inset); }
/* A file an Ant shared: a document glyph, its name (opens it) and Download, on one quiet card. */
.md .file { display: inline-flex; align-items: center; gap: var(--am-space-3); max-width: 100%; padding: var(--am-space-2) var(--am-space-3);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); background: var(--am-color-surface); }
.md .file::before { content: ""; flex: none; width: 14px; height: 18px; border: 1.5px solid currentColor; border-radius: 2px 6px 2px 2px; opacity: .6; }
.md .file a:first-of-type { overflow: hidden; min-width: 0; color: var(--am-color-text); font-weight: var(--am-type-label-weight); text-overflow: ellipsis; white-space: nowrap; }
.md .file a[download] { flex: none; font-size: var(--am-type-caption-size); }
.md .file a { text-decoration: none; }
.md .file a:hover { text-decoration: underline; }
.md code { font: var(--am-type-code-size)/var(--am-type-code-line-height) var(--am-font-code); padding: 0 var(--am-space-1);
  background: var(--am-color-selection); border-radius: 4px; }
.md pre { overflow-x: auto; padding: var(--am-space-3); background: var(--am-color-selection); border-radius: var(--am-radius-control); }
.md pre code { padding: 0; background: none; }
.md blockquote { padding-left: var(--am-space-3); border-left: 3px solid var(--am-color-divider); color: var(--am-color-text-muted); }
.md table { border-collapse: collapse; }
.md :is(th, td) { padding: var(--am-space-1) var(--am-space-2); border: var(--am-border-thin) solid var(--am-color-divider); }
.msg.error { color: var(--am-color-error); }
.status { margin: 0 0 var(--am-space-5); color: var(--am-color-text-muted); font-size: var(--am-type-caption-size); }
.composer { position: relative; display: flex; align-items: flex-end; gap: var(--am-space-2); padding: var(--am-space-3) 0 var(--am-space-4); }
.composer > button { display: grid; place-items: center; width: var(--am-metric-control-height); height: var(--am-metric-control-height);
  border: 0; border-radius: var(--am-radius-control); background: var(--am-color-action); color: var(--am-color-action-text); cursor: pointer; }
.composer > button:hover { background: var(--am-color-action-hover); }
.composer > button:disabled { background: var(--am-color-disabled-surface); color: var(--am-color-disabled-text); cursor: default; }
.composer:has(textarea:placeholder-shown) > .steer, .composer:not(:has(textarea:placeholder-shown)) > .stop { display: none; }
.lock { margin: 30vh auto 0; max-width: 28rem; text-align: center; }
.lock a { display: inline-block; padding: var(--am-space-2) var(--am-space-4); border-radius: var(--am-radius-control);
  background: var(--am-color-action); color: var(--am-color-action-text); text-decoration: none; }
.lock a:hover { background: var(--am-color-action-hover); }
/* Attachments: the apps' 148px card (AttachmentCard.swift), over the draft. */
.attach { position: relative; display: grid; flex: none; place-items: center; width: var(--am-metric-control-height); height: var(--am-metric-control-height);
  color: var(--am-color-text); background: var(--am-color-surface); border: var(--am-border-thin) solid var(--am-color-border);
  border-radius: var(--am-radius-control); cursor: pointer; }
.attach:hover { background: var(--am-color-surface-inset); }
.attach:focus-within { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.draft { display: flex; flex: 1; min-width: 0; flex-direction: column; overflow: hidden; background: var(--am-color-surface);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); }
.draft:has(textarea:focus) { border-color: var(--am-color-focus); }
.draft textarea { flex: none; min-height: calc(var(--am-metric-control-height) - 2 * var(--am-border-thin)); max-height: 40vh; resize: none; field-sizing: content;
  padding: calc(var(--am-space-3) - var(--am-border-thin)) var(--am-space-4); font: inherit; color: inherit; background: transparent; border: 0; outline: none; }
.cards { display: flex; flex-wrap: wrap; gap: var(--am-space-2); margin: 0; padding: 6px 4px 2px; list-style: none;
  max-height: min(40vh, 330px); overflow-y: auto; }
@media (max-width: 720px) { .cards { flex-wrap: nowrap; overflow: auto hidden; } }
.cards li { position: relative; display: flex; flex: none; flex-direction: column; width: 148px; overflow: hidden; background: var(--am-color-surface);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); }
.cards :is(img, .badge) { display: grid; place-items: center; width: 146px; height: 96px; object-fit: cover; background: var(--am-color-canvas); }
.cards .badge { font-size: var(--am-type-caption-size); font-weight: var(--am-type-label-weight); letter-spacing: 0.06em; }
.cards strong, .cards .size, .cards .failed { padding: 0 var(--am-space-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards strong { padding-top: 7px; font-size: var(--am-type-caption-size); }
.cards .size, .cards .failed { min-height: 12px; padding-bottom: 8px; color: var(--am-color-text-muted); font-size: var(--am-type-caption-size); }
.cards .failed { color: var(--am-color-error); white-space: normal; }
.cards progress { width: calc(100% - 2 * var(--am-space-3)); margin: 0 var(--am-space-3) 8px; height: 4px; }
.composer .cards button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  font-size: 14px; line-height: 1; color: var(--am-palette-ivory); background: color-mix(in srgb, var(--am-palette-graphite) 85%, transparent); border: 0; border-radius: 50%; cursor: pointer; }
.cards button::after { content: ""; position: absolute; inset: -12px; }
@media (hover: hover) { .composer .cards button { opacity: 0; } .cards li:is(:hover, :focus-within) button { opacity: 1; } }
.cards button:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.chat.phx-drop-target-active .composer { outline: var(--am-border-control) dashed var(--am-color-focus); outline-offset: 2px; }
.shots { display: flex; flex-wrap: wrap; gap: var(--am-space-2); }
.shots:empty { display: none; }
.shots:not(:empty) { margin-bottom: var(--am-space-2); }
.shots img { width: 146px; height: 96px; object-fit: cover; background: var(--am-color-canvas); border: var(--am-border-thin) solid var(--am-color-border);
  border-radius: var(--am-radius-control); }
.chips { display: flex; flex-wrap: wrap; gap: var(--am-space-1); margin: var(--am-space-2) 0 0; padding: 0; list-style: none; }
.chips li { max-width: 100%; padding: 0 var(--am-space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--am-type-caption-size);
  background: var(--am-color-surface-inset); color: var(--am-color-text); border-radius: var(--am-radius-small); }
.card { margin: 0 0 var(--am-space-5); padding: var(--am-space-4); background: var(--am-color-surface);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-panel); }
.card h2 { margin: 0 0 var(--am-space-1); font-size: var(--am-type-label-size); font-weight: var(--am-type-label-weight); }
.card .status { margin-bottom: var(--am-space-3); }
/* What an Ability asks to do (an email's address and body), kept as written and scrolled when long. */
.card .detail { margin: 0 0 var(--am-space-3); max-height: 16rem; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--am-color-text-muted); }
.card form { display: flex; gap: var(--am-space-2); margin-bottom: var(--am-space-3); }
.card input { flex: 1; min-width: 0; height: var(--am-metric-control-height); padding: 0 var(--am-space-4); font: inherit; color: inherit;
  background: var(--am-color-canvas); border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); outline: none; }
.card input:focus { border-color: var(--am-color-focus); }
.card button { height: var(--am-metric-control-height); padding: 0 var(--am-space-4); font: inherit; color: inherit; cursor: pointer;
  background: none; border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); }
.card button[type=submit] { border: 0; background: var(--am-color-action); color: var(--am-color-action-text); }
.card button[type=submit]:hover { background: var(--am-color-action-hover); }
.card button:disabled { background: var(--am-color-disabled-surface); color: var(--am-color-disabled-text); cursor: default; }
.card > a { color: var(--am-color-link); }
/* An Ability's sign-in: the code to confirm, and its page as the card's main key. */
.card .code { margin: 0 0 var(--am-space-2); font: 700 1.375rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; user-select: all; }
.card > a.key { display: inline-flex; align-items: center; height: var(--am-metric-control-height); margin-bottom: var(--am-space-3); padding: 0 var(--am-space-4); border-radius: var(--am-radius-control); background: var(--am-color-action); color: var(--am-color-action-text); text-decoration: none; }
.card > a.key:hover { background: var(--am-color-action-hover); }
.items { margin: 0 0 var(--am-space-3); padding: 0; list-style: none; }
.items li { display: flex; align-items: center; gap: var(--am-space-3); padding: var(--am-space-3) 0; border-top: var(--am-border-thin) solid var(--am-color-divider); }
.items li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.items li .status { display: block; margin: 0; }
/* Mac Settings: a quiet header, a section rail, and one compact group of rows. */
/* A popup over the page it opened from, as Feedback's sheet is; a phone gets the whole screen. */
.settings-scrim { position: fixed; inset: 0; z-index: 5; background: rgb(0 0 0 / 0.3); }
#settings { position: fixed; z-index: 6; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow-y: auto;
  width: min(960px, calc(100vw - 2 * var(--am-space-6))); height: min(760px, calc(100dvh - 2 * var(--am-space-6)));
  background: var(--am-color-canvas); border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-panel); box-shadow: var(--am-elevation-panel); }
.settings-close { display: inline-flex; align-items: center; justify-content: center; width: var(--am-metric-touch-target); height: var(--am-metric-touch-target);
  color: var(--am-color-text-muted); border-radius: var(--am-radius-control); }
.settings-close:hover { background: var(--am-color-surface-inset); color: var(--am-color-text); }
#settings-title:focus { outline: none; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4);
  padding: var(--am-space-6) var(--am-space-10); border-bottom: var(--am-border-thin) solid var(--am-color-divider); }
.settings-eyebrow { margin: 0 0 var(--am-space-1); color: var(--am-color-text-muted); font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.settings-heading h2 { margin: 0; font-size: 1.4375rem; line-height: 1.3; font-weight: 600; }
.settings-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: var(--am-space-8);
  max-width: 980px; margin: 0 auto; padding: 30px var(--am-space-10); }
.settings-nav { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; min-height: var(--am-metric-touch-target); padding: var(--am-space-2) 10px;
  color: var(--am-color-text-muted); font-size: .8125rem; line-height: 1.4; text-decoration: none; border-radius: var(--am-radius-control); }
.settings-nav a[aria-current] { background: var(--am-color-surface-raised); color: var(--am-color-text); font-weight: 600; }
.settings-nav a:not([aria-current]):hover { background: var(--am-color-surface-inset); color: var(--am-color-text); }
#settings :is(a, button):focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.settings-content { grid-column: 2; grid-row: 1; }
.settings-panel[hidden] { display: none; }
#settings h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.4; font-weight: 600; }
#settings .status { font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
#settings .card { margin: 0; padding: 14px var(--am-space-4); border-color: var(--am-color-divider); box-shadow: var(--am-elevation-panel); }
#settings .settings-content > .card { margin-bottom: var(--am-space-6); }
#settings .card > :last-child { margin-bottom: 0; }
#settings .card strong, #settings .card h3 { font-size: .8125rem; font-weight: 600; }
#settings .card h3 { margin-bottom: 3px; }
#settings .card button { font-size: .8125rem; min-height: var(--am-metric-touch-target); }
#settings .items li { min-height: 66px; padding: 14px 0; }
#settings .items li:first-child { border-top: 0; padding-top: 0; }
#settings .items li:last-child { padding-bottom: 0; }
#settings .items li .status { margin-top: 3px; }
.usage-sharing-row { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4); }
.usage-sharing-row .status { margin: 0; }
.card .usage-switch { display: flex; flex: none; align-items: center; gap: var(--am-space-2); min-height: var(--am-metric-touch-target); height: auto; padding: var(--am-space-2); border: 0; }
.switch-track { display: block; width: 40px; height: 24px; padding: 3px; border-radius: var(--am-radius-pill); background: var(--am-color-text-muted); }
.switch-track::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--am-color-surface); }
.usage-switch[aria-checked="true"] .switch-track { background: var(--am-color-success); }
.usage-switch[aria-checked="true"] .switch-track::after { transform: translateX(16px); }
/* General's rows: the Mac's segmented keys, and usage sharing as the card's last row. */
#settings .segmented { display: flex; flex: none; gap: var(--am-space-2); }
#settings .segmented button { padding: 0 12px; white-space: nowrap; background: var(--am-color-surface); }
/* Too narrow for the words and the keys side by side, the keys drop under the words, as on the Mac. */
#settings #prefs li > span:first-child { flex: 1 1 14rem; }
#settings .segmented button[aria-pressed="true"] { background: var(--am-color-selection); color: var(--am-color-selection-text); border-color: var(--am-color-focus); font-weight: 600; }
#prefs { margin: 0; }
#prefs + #usage-sharing { margin-top: 14px; padding-top: 14px; border-top: var(--am-border-thin) solid var(--am-color-divider); }
#settings #sign-out { margin: 0; }
#settings #sign-out button { background: none; color: inherit; border: var(--am-border-thin) solid var(--am-color-border); }
#settings .card.items { padding-top: 14px; padding-bottom: 14px; }
#enter-to-send::after { content: "Off"; }
#enter-to-send[aria-checked="true"]::after { content: "On"; }
/* The iPhone row sits over the device list, split as the Mac's rows are. */
#device-list .card > .items:first-child:not(:only-child) { margin-bottom: 14px; padding-bottom: 14px; border-bottom: var(--am-border-thin) solid var(--am-color-divider); }
#settings .items li { flex-wrap: wrap; }
#settings .items li > button { flex: none; }
#settings .items li > a { display: inline-flex; align-items: center; min-height: var(--am-metric-touch-target); padding: 0 var(--am-space-4); font-size: .8125rem;
  color: inherit; text-decoration: none; border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); }
#settings .items li > a:hover { background: var(--am-color-surface-inset); }
@media (max-width: 1000px) {
  .settings-layout { grid-template-columns: 128px minmax(0, 1fr); gap: var(--am-space-5); padding: var(--am-space-6); }
  .settings-heading { padding: var(--am-space-5) var(--am-space-6); }
}
@media (max-width: 720px) {
  #settings { inset: 0; transform: none; width: auto; height: auto; border: 0; border-radius: 0; }
  .settings-heading { padding: var(--am-space-4); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: var(--am-space-6); padding: var(--am-space-4); }
  .settings-content { grid-column: 1; grid-row: 2; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; gap: var(--am-space-1); }
  .settings-nav a { flex: 1 1 5rem; min-width: 0; justify-content: center; font-size: .875rem; }
  #settings .status { font-size: .875rem; }
  #settings .card strong, #settings .card h3, #settings .card button { font-size: .875rem; }
}
@media (max-width: 420px) { .usage-sharing-row { flex-wrap: wrap; } }
/* Feedback: a button at the top bar's end, like the Mac's title bar, and a sheet over the page. */
.feedback { margin-left: auto; }
.feedback > button, .sheet button { height: var(--am-metric-control-height); padding: 0 var(--am-space-4); font: inherit; color: var(--am-color-text);
  background: none; border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); cursor: pointer; }
.feedback > button { height: auto; padding: var(--am-space-1) var(--am-space-3); font-size: var(--am-type-caption-size); }
.feedback > button:hover, .sheet button:hover { background: var(--am-color-surface-inset); }
.feedback .scrim { display: block; position: fixed; inset: 0; z-index: 3; background: rgb(0 0 0 / 0.3); }
.sheet { position: fixed; top: 10vh; left: 50%; z-index: 4; width: min(480px, calc(100vw - 2 * var(--am-space-4))); max-height: 80vh; overflow-y: auto;
  transform: translateX(-50%); padding: var(--am-space-5); background: var(--am-color-surface); border: var(--am-border-thin) solid var(--am-color-border);
  border-radius: var(--am-radius-panel); box-shadow: var(--am-elevation-panel); color: var(--am-color-text);
  font-size: var(--am-type-body-size); line-height: var(--am-type-body-line-height); }
.sheet h2 { margin: 0 0 var(--am-space-4); font-size: var(--am-type-label-size); font-weight: var(--am-type-label-weight); }
.sheet fieldset { display: flex; flex-direction: column; gap: var(--am-space-3); margin: 0; padding: 0; border: 0; }
.sheet .kinds { display: flex; flex-wrap: wrap; gap: var(--am-space-2); white-space: nowrap; }
.sheet label { display: flex; align-items: center; gap: var(--am-space-2); }
/* The kinds are the Mac's two pills: the radio stays for keyboard and screen readers, out of sight. */
.sheet .kinds label { position: relative; padding: var(--am-space-1) var(--am-space-4); border: var(--am-border-thin) solid var(--am-color-border);
  border-radius: var(--am-radius-pill); cursor: pointer; }
.sheet .kinds label:has(:checked) { background: var(--am-color-surface-inset); border-color: var(--am-color-text); font-weight: 600; }
.sheet .kinds label:has(:focus-visible) { outline: 2px solid var(--am-color-focus); outline-offset: 2px; }
.sheet .kinds input { position: absolute; opacity: 0; pointer-events: none; }
.sheet .included { display: flex; flex-direction: column; gap: var(--am-space-3); }
.sheet .included h3 { margin: 0; color: var(--am-color-text-muted); font-size: var(--am-type-caption-size); font-weight: 600; }
.sheet .include { justify-content: space-between; gap: var(--am-space-3); cursor: pointer; }
.sheet .include > span:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sheet .include small { color: var(--am-color-text-muted); font-size: var(--am-type-caption-size); }
.sheet .shot img { display: block; width: 72px; height: 46px; object-fit: cover; object-position: top left; border: var(--am-border-thin) solid var(--am-color-border); border-radius: 3px; }
/* The web's switch (settings' green track) drawn on the checkbox itself, knob and all, so the form posts it. */
.sheet input[role="switch"] { flex: none; appearance: none; width: 40px; height: 24px; margin: 0; border-radius: var(--am-radius-pill); cursor: pointer;
  background: radial-gradient(circle at 12px 50%, var(--am-color-surface) 8.5px, transparent 9px) var(--am-color-text-muted); }
.sheet input[role="switch"]:checked { background: radial-gradient(circle at 28px 50%, var(--am-color-surface) 8.5px, transparent 9px) var(--am-color-success); }
.sheet input[role="switch"]:disabled { opacity: 0.4; cursor: default; }
.sheet input[role="switch"]:focus-visible { outline: 2px solid var(--am-color-focus); outline-offset: 2px; }
.sheet textarea { resize: vertical; padding: var(--am-space-3); font: inherit; color: inherit; background: var(--am-color-canvas);
  border: var(--am-border-thin) solid var(--am-color-border); border-radius: var(--am-radius-control); outline: none; }
.sheet textarea:focus { border-color: var(--am-color-focus); }
.sheet summary { color: var(--am-color-text-muted); font-size: var(--am-type-caption-size); cursor: pointer; }
.sheet pre { max-height: 150px; overflow: auto; margin: var(--am-space-2) 0 0; padding: var(--am-space-3); white-space: pre-wrap; overflow-wrap: anywhere;
  font: var(--am-type-code-size)/var(--am-type-code-line-height) var(--am-font-code); background: var(--am-color-surface-inset); border-radius: var(--am-radius-control); }
.sheet .failed { margin: 0; color: var(--am-color-error); font-size: var(--am-type-caption-size); }
.sheet .actions { display: flex; justify-content: flex-end; gap: var(--am-space-2); }
.sheet button.key { border: 0; background: var(--am-color-action); color: var(--am-color-action-text); }
.sheet button.key:hover:not(:disabled) { background: var(--am-color-action-hover); }
.sheet button:disabled { background: var(--am-color-disabled-surface); color: var(--am-color-disabled-text); cursor: default; }
.bar h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .feedback > button { min-height: var(--am-metric-touch-target); } }

/* Scout's trail, paced as the apps pace it (ScoutTrail.swift): a dot that hesitates, then darts, with a faint tail, on one
   fixed loop. Both paths follow the inherited dash offset; under reduced motion the dot rests where it hesitates. */
.scout { margin-right: var(--am-space-2); vertical-align: middle; stroke: var(--am-color-link);
  stroke-linecap: round; stroke-dashoffset: -25; animation: scout 4.8s linear infinite; }
.scout .tail { stroke-width: 2; stroke-dasharray: 0 88 12 0; opacity: 0.42; }
.scout .dot { stroke-width: 6; stroke-dasharray: 0 100; }
@keyframes scout { 0% { stroke-dashoffset: 0; } 26%, 31.7% { stroke-dashoffset: -25; } 43.75% { stroke-dashoffset: -53; } 100% { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .scout { animation: none; } }

/* The Space (/space): the canvas full-bleed behind floating controls, and the chat column turned into the panel on the right. */
.app.space :is(.sidebar, .scrim, .bar) { display: none; }
.space-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; touch-action: none; cursor: grab; }
.space-canvas.panning { cursor: grabbing; }
.canvas-gl, .canvas-clip { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas-clip { overflow: hidden; pointer-events: none; }
.canvas-widgets { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.space-pill { position: fixed; z-index: 3; display: flex; align-items: center; gap: var(--am-space-1); padding: 6px; background: var(--am-color-surface);
  border: var(--am-border-thin) solid var(--am-color-divider); border-radius: 14px; box-shadow: var(--am-elevation-key); }
.space-key, .space-ask { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--am-color-text); text-decoration: none;
  background: none; border: 0; border-radius: var(--am-radius-control); cursor: pointer; }
.space-key:hover, .space-ask:hover { background: var(--am-color-surface-inset); }
.space-key:focus-visible, .space-ask:focus-visible, .space-sol:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: -2px; }
.space-pill [data-tip] { position: relative; }
.space-pill [data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; background: var(--am-color-text); color: var(--am-color-canvas); border-radius: 6px; font-size: var(--am-type-caption-size);
  white-space: nowrap; pointer-events: none; }
.space-name, .space-people { top: var(--am-space-4); }
.space-name { left: var(--am-space-4); gap: 10px; padding-left: 8px; }
.space-name img { width: 30px; height: 30px; }
.space-name .space-key { width: 32px; height: 32px; }
.space-name [data-tip]:hover::after { bottom: auto; top: calc(100% + 10px); }
.space-people { right: var(--am-space-4); padding: 6px 10px; }
.space-tools { bottom: var(--am-space-4); left: 50%; transform: translateX(-50%); }
.space-ask { display: flex; width: auto; gap: var(--am-space-2); padding: 0 14px 0 10px; font: inherit; font-weight: var(--am-type-label-weight); }
.space-ask[aria-pressed="true"] { background: var(--am-color-text); color: var(--am-color-canvas); }
.space-sol { position: absolute; z-index: -1; right: -6px; bottom: calc(100% - 14px); width: 64px; height: 64px; padding: 0; background: none; border: 0;
  cursor: pointer; transition: transform 180ms var(--am-motion-ease); }
.space-sol img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.15)); }
.space-sol:hover { transform: translateY(-6px) rotate(-4deg); }
/* The head ducks away while the panel is open: on any narrower window it would sit over the draft. */
.app.asking .space-sol { display: none; }
.space-zoom { right: var(--am-space-4); bottom: var(--am-space-4); gap: 0; }
.space-zoom output { min-width: 52px; text-align: center; font-size: var(--am-type-caption-size); color: var(--am-color-text-muted); font-variant-numeric: tabular-nums; }
/* The head's contours are espresso, so at night the small head sits on an ivory disc and the mascot gets an ivory rim. */
@media (prefers-color-scheme: dark) {
  :root:not([data-am-theme="day"]) .space-name img { padding: 2px; background: var(--am-palette-ivory); border-radius: 50%; }
  :root:not([data-am-theme="day"]) .space-sol img { filter: drop-shadow(0 0 0.8px var(--am-palette-ivory)) drop-shadow(0 0 0.8px var(--am-palette-ivory)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.4)); }
}
:root[data-am-theme="night"] .space-name img { padding: 2px; background: var(--am-palette-ivory); border-radius: 50%; }
:root[data-am-theme="night"] .space-sol img { filter: drop-shadow(0 0 0.8px var(--am-palette-ivory)) drop-shadow(0 0 0.8px var(--am-palette-ivory)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.4)); }
.app.space .chat { position: fixed; z-index: 2; top: 84px; right: var(--am-space-4); bottom: 84px; width: min(380px, calc(100% - 2 * var(--am-space-4)));
  height: auto; flex: none; max-width: none; margin: 0; padding: 0; background: var(--am-color-surface); border: var(--am-border-thin) solid var(--am-color-divider);
  border-radius: 18px; box-shadow: var(--am-elevation-panel); visibility: hidden; opacity: 0; transform: translateX(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
/* Opening shows the panel at once, so the draft can take focus in the same frame; closing still fades. */
.app.space.asking .chat { visibility: visible; opacity: 1; transform: none; transition: opacity 160ms ease, transform 160ms ease, visibility 0s; }
.app.space .transcript { padding: var(--am-space-4); }
.app.space .composer { padding: var(--am-space-3); }
@media (max-width: 760px) { .space-ask span { display: none; } .space-ask { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .app.space .chat, .app.space.asking .chat, .space-sol { transition: none; } }
/* Today: one quiet 640px column, sized 22/15/14/12.5; rows have no dividers. Checked rows slide out, like Things. */
.today { flex: 1; overflow-y: auto; width: 100%; max-width: 640px; margin: 0 auto; padding: var(--am-space-4) 0 var(--am-space-8);
  display: flex; flex-direction: column; gap: 22px; font-size: 14px; }
/* Feedback's sheet sits inside the heading, so the heading tints only its own icon and wraps before it overflows. */
.today-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.today-head > svg { flex: none; color: var(--am-color-action); }
.today-head h1 { margin: 0; color: var(--am-color-text); font-size: 22px; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; }
.today-head time { color: var(--am-color-text-muted); font-size: 13.5px; }
.today-brief { display: flex; flex-direction: column; gap: 4px; margin-top: -10px; }
.today-note { font-size: 15px; line-height: 1.6; max-width: 65ch; text-wrap: pretty; }
.today-note p { margin: 0; }
.today-note a { color: var(--am-color-link); font-weight: 600; text-underline-offset: 2px; }
.today .meta { margin: 0; color: var(--am-color-text-muted); font-size: 12px; }
.schedule ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 4px; list-style: none; border-radius: 12px;
  background: color-mix(in srgb, var(--am-color-text) 5%, transparent); }
.schedule li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; transition: opacity .2s; }
.schedule li time, .schedule .tm { color: var(--am-color-text-muted); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.schedule .title::before { content: ""; display: inline-block; width: 3px; height: 13px; margin-right: 8px; border-radius: 2px; vertical-align: -2px; background: var(--am-color-unread); }
.schedule .rel { color: var(--am-color-text-muted); font-size: 12px; white-space: nowrap; }
.schedule li.next { background: var(--am-color-surface-raised); box-shadow: 0 1px 2px rgb(28 28 28 / .06); }
.schedule li.next .title { font-weight: 600; }
.schedule li.next .rel { color: var(--am-color-unread); font-weight: 600; }
.schedule li.past { opacity: .5; }
.today-group h2 { margin: 0; padding: 0 6px 4px; font-size: 13px; font-weight: 650; }
.today-group.need h2 { display: flex; justify-content: space-between; color: var(--am-color-link); }
.today-group.need h2 a { color: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.today-group.need h2 a:hover { text-decoration: underline; }
.today-group.need li { grid-template-columns: minmax(0, 1fr) auto; padding-left: 36px; }
.today-group ul { margin: 0; padding: 0; list-style: none; }
.today-group li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; min-height: 40px; padding: 8px 6px;
  border-radius: 10px; transition: opacity 350ms var(--am-motion-ease), transform 350ms var(--am-motion-ease), background .2s, box-shadow .2s; }
.today-group li:hover:not(.open) { background: color-mix(in srgb, var(--am-color-text) 4%, transparent); }
.today-group li.open { margin: 6px 0; background: var(--am-color-surface-raised); box-shadow: var(--am-elevation-panel); }
.today-group li.leaving { opacity: 0; transform: translateX(12px); }
.today-group li > div { display: flex; flex-direction: column; min-width: 0; }
.today-group .title { all: unset; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
.today-group .title:focus-visible { outline: 2px solid var(--am-color-focus); outline-offset: 1px; }
.today-group .why { margin-top: 1px; color: var(--am-color-text-muted); font-size: 12.5px; }
.today-group .waited { color: var(--am-color-link); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.today-group .late { color: var(--am-color-error); font-size: 12.5px; font-weight: 600; }
.today-group .due { color: var(--am-color-text-muted); font-size: 12.5px; }
.today-group .detail { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 4px; font-size: 13.5px; }
.today-group .detail p { margin: 0; }
.today-group .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.today-group .act { min-height: 32px; padding: 0 14px; border: 0; border-radius: var(--am-radius-pill); font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--am-color-action-text); background: var(--am-color-action); cursor: pointer; }
.today-group .act + .act { color: var(--am-color-text); background: none; box-shadow: inset 0 0 0 1px var(--am-color-border); }
.today-group .acts a { color: var(--am-color-link); font-size: 12.5px; }
.today-group .detail label { display: flex; flex-direction: column; gap: 2px; }
.today-group .detail small { color: var(--am-color-text-muted); font-size: 11.5px; }
.today-group .draft { box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid var(--am-color-border); border-radius: 9px; resize: none;
  field-sizing: content; min-height: 3lh; color: inherit; background: var(--am-color-canvas); font: inherit; line-height: 1.5; outline: none; }
.today-group .draft:not([readonly]) { outline: 2px solid var(--am-color-focus); resize: vertical; }
.check { width: 18px; height: 18px; margin: 1px 0 0 1px; padding: 0; border: var(--am-border-control) solid var(--am-color-border);
  border-radius: 5px; background: none; cursor: pointer; transition: background .15s, border-color .15s; }
.check:hover { border-color: var(--am-color-text-muted); }
.check.checked { background: var(--am-color-action); border-color: var(--am-color-action); }
.check:focus-visible { outline: var(--am-border-control) solid var(--am-color-focus); outline-offset: 2px; }
.all-clear { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--am-color-success-surface) 45%, transparent); }
/* With your Ants: grey records of what an Ant holds, never counted; an answer opens in place. */
.today-group.ants h2 { color: var(--am-color-text-muted); }
.today-group.ants h2 span { font-weight: 500; }
.today-group.ants li { display: block; padding-left: 36px; }
.today-group.ants .title { color: var(--am-color-text-muted); }
.today-group.ants .answer { max-height: 50vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.today-group.ants .who { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.today-group.ants .who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.today-group.ants .who.working { color: var(--am-color-unread); }
.today-group.ants .who.working::before { animation: held-pulse 1.6s ease-in-out infinite; }
.today-group.ants .who.done { color: var(--am-color-success); }
@keyframes held-pulse { 50% { opacity: .3; } }
/* The Undo bar fades out on its own after 5 s; a new check is a new bar, so its clock starts over. */
.undo { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); pointer-events: none; }
.undo .bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 0; border-radius: 999px; font-size: 13px; pointer-events: auto;
  color: var(--am-color-canvas); background: var(--am-color-text); box-shadow: var(--am-elevation-panel); animation: undo-out 5s forwards; }
.undo .bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo button { flex: none; padding: 6px 12px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; color: inherit;
  background: color-mix(in srgb, var(--am-color-canvas) 18%, transparent); cursor: pointer; }
@keyframes undo-out { 0%, 92% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
.recents { margin-top: 4px; }
.hand { display: flex; padding: 12px 8px 8px; isolation: isolate; }
.rc { position: relative; display: flex; flex: 1 1 0; flex-direction: column; gap: 6px; min-width: 0; min-height: 150px; margin-left: -10px; padding: 12px 13px;
  border: 1px solid var(--am-color-divider); border-radius: 12px; background: var(--tint); box-shadow: var(--am-elevation-panel); color: var(--am-color-text);
  text-decoration: none; transform: rotate(var(--r)); transition: transform 200ms var(--am-motion-ease); }
.rc:first-child { margin-left: 0; }
/* The card before covers 10px of each later one, so its words start past the overlap. */
.rc + .rc { padding-left: 23px; }
.rc:nth-child(1) { --r: -2.5deg; --tint: var(--am-color-surface-raised); z-index: 4; }
.rc:nth-child(2) { --r: 1.5deg; --tint: color-mix(in srgb, var(--am-color-text) 6%, var(--am-color-surface-raised)); z-index: 3; }
.rc:nth-child(3) { --r: -1deg; --tint: color-mix(in srgb, var(--am-color-surface-metal) 45%, var(--am-color-surface-raised)); z-index: 2; }
.rc:nth-child(4) { --r: 2deg; --tint: color-mix(in srgb, var(--am-color-success-surface) 40%, var(--am-color-surface-raised)); z-index: 1; }
/* Metal is the same light tone in both themes, so at night only a trace of it keeps the third card dark. */
@media (prefers-color-scheme: dark) { :root:not([data-am-theme="day"]) .rc:nth-child(3) { --tint: color-mix(in srgb, var(--am-color-surface-metal) 12%, var(--am-color-surface-raised)); } }
:root[data-am-theme="night"] .rc:nth-child(3) { --tint: color-mix(in srgb, var(--am-color-surface-metal) 12%, var(--am-color-surface-raised)); }
.rc:is(:hover, :focus-visible) { transform: translateY(-8px); z-index: 10; }
.rc:focus-visible { outline: 2px solid var(--am-color-focus); outline-offset: 2px; }
.rc .kind { display: inline-flex; align-items: center; gap: 5px; color: var(--am-color-text-muted); font-size: 12px; font-weight: 600; }
.rc b { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow-wrap: anywhere; }
.rc .answered { display: inline-flex; align-items: center; gap: 6px; color: var(--am-color-success); font-size: 12px; font-weight: 600; }
.rc .answered::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rc .when { margin-top: auto; color: var(--am-color-text-muted); font-size: 12px; }
@media (max-width: 720px) {
  .hand { gap: 10px; padding: 12px 6px 10px; overflow-x: auto; scroll-padding-inline: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rc, .rc + .rc { flex: 0 0 148px; margin-left: 0; padding-left: 13px; scroll-snap-align: start; transform: rotate(calc(var(--r) * .5)); }
}
/* On a phone, Today, Inbox and the Ants drawer sit under the thumb, as in the mockup; Undo rides above them.
   The fanned Recents cards stack only among themselves (the hand isolates them), so none rises over the bar. */
.tabs { display: none; }
@media (max-width: 720px) {
  .tabs { position: fixed; z-index: 1; inset: auto 0 0; display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--am-color-surface); border-top: var(--am-border-thin) solid var(--am-color-divider); }
  .tabs > * { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 2px; min-height: var(--am-metric-touch-target);
    padding: 4px 0; color: var(--am-color-text-muted); font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabs [aria-current="page"] { color: var(--am-color-link); }
  .tabs .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; padding: 1px 5px; border-radius: 999px;
    color: var(--am-color-text-inverse); background: var(--am-color-link); font-size: 10.5px; line-height: 15px; text-align: center; }
  .today { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .undo { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .today-group li, .schedule li, .rc { transition: none; } .today-group.ants .who::before { animation: none; } }
/* Your plan's meter: the share left over a bar in the action color at every level, as on the Mac. */
#plan .card + .card { margin-top: 14px; }
#plan .plan-head { display: flex; justify-content: space-between; gap: var(--am-space-4); margin: 0 0 10px; }
#plan .plan-head strong:last-child { font-size: .9375rem; }
#plan .plan-bar { display: block; height: 6px; margin-bottom: 10px; border-radius: var(--am-radius-pill); background: var(--am-color-surface-inset); overflow: hidden; }
#plan .plan-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--am-color-action); }
