.pp-body {
  display: flex;
  flex-direction: column;
}
/* 10px between its pieces (the search box, a clone row, a hint); a labelled section brings its own
   spacing (stratum-ui's LabelledSection: 20px above its label, 28px between sections). */
.pp-body > * + :not(.stratum-labelled-section) {
  margin-top: 10px;
}
.pp-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* A newly picked row scrolls clear of the sticky header and the composer over the list's end. */
.pp-body .stratum-session-row {
  scroll-margin-top: 96px;
  scroll-margin-bottom: calc(var(--stratum-app-shell-bottom-chrome, 0px) + 12px);
}
/* The thread scrolls in its own element with the bottom bar pinned below it — not the document
 * scroll other vanilla pages use on mobile. */
.session-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Mobile: the shell's main area is unbounded in native-scroll mode, so bound to the viewport (less a
   banner above the page: the shell's page height). */
@media (max-width: 767px) {
  .session-page {
    height: var(--stratum-app-shell-page-height, calc(var(--vh, 1vh) * 100));
    overflow: hidden;
  }
}

/* The thread's scroller, and what floats over its end (the jump-to-latest button). */
.session-scroll-wrap {
  /* Not positioned: panels opened from the thread (tool details) dock to the main column, over the
     composer, and so does stratum-ui's JumpToLatest. */
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Always scrolls itself. It keeps stratum-ui's .stratum-app-page class (the shell's wheel forwarding finds it), and
 * out-ranks AppPage.css's mobile document-scroll rule. */
.session-scroll-wrap .session-scroll.stratum-app-page {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  /* SessionPage keeps the reader's place itself when older messages load above (it shifts the scroll
     by what they added), in every browser. Chrome's own scroll anchoring would shift it again, past
     the end - which then follows the latest message, losing a jumped-to line. */
  overflow-anchor: none;
  /* The width a reply's table may widen to (cqw below). */
  container-type: inline-size;
}

/* A reply's table may widen past the text column to the scroller's whole width, edge to edge, centred on the column
   (which is centred in the scroller); one narrower than the column stays on its left edge, and one wider than the
   scroller scrolls sideways, unfaded, as media's row of images. Positioned by translate: its full-screen view is
   portalled out, so it isn't caught by it. A CSV code block shown as a table widens the same way, with its buttons. */
.session-thread .stratum-chat-msg--assistant > .stratum-chat-msg-body > .stratum-md > :is(.stratum-md-table-box, .stratum-md-codeblock--table) {
  width: max-content;
  min-width: 100%;
  max-width: 100cqw;
  left: 50%;
  translate: -50%;
}
.session-thread .stratum-chat-msg--assistant > .stratum-chat-msg-body > .stratum-md > .stratum-md-table-box > .stratum-md-table-wrap,
.session-thread .stratum-chat-msg--assistant > .stratum-chat-msg-body > .stratum-md > .stratum-md-codeblock--table > .stratum-md-table-box > .stratum-md-table-wrap {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Capped and centered on desktop, like the sessions list; 20px gutters on mobile, and 16px under the
   header, as every page's content (stratum-ui's PageContent). */
.session-thread {
  max-width: 760px;
}
/* Layout containment keeps Safari from repainting the whole thread on each keystroke in the composer (53 ms a key on
   a long session, 4 ms with it); not paint containment, which would clip the wide tables above. On the thread's
   children, not the thread: a contained box positions the BottomPanels opened in it, which must dock to the screen. */
.session-thread > :not(.stratum-bottom-panel, :has(> .stratum-bottom-panel)) {
  contain: layout;
}
.session-thread {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 20px 24px;
}
@media (min-width: 768px) {
  .session-thread {
    padding: 16px 36px 24px;
  }
  .session-thread {
    margin-inline: auto;
  }
}

.session-earlier {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* A user message's attached images, above its text. */
.session-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.session-thumb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
}
.session-thumb--video {
  position: relative;
}
.session-thumb-play {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  fill: #fff;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.session-thumb img,
.session-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.session-thumb--missing {
  font-size: 12px;
  color: var(--ink-3);
  cursor: default;
}

/* The composer (and on mobile the nav) lie over the end of the thread (AppShellAccessory), so it
   scrolls clear of them - by exactly their height, not the content inset's extra room for a list's
   end. */
.session-scroll-wrap .session-scroll.stratum-app-page {
  padding-bottom: var(--stratum-app-shell-bottom-chrome, 0px);
}

/* Tool details panel: stratum-ui's ToolPanel (stratum-ui/src/chat/chat.css), whose classes rinkagu's file and task
   panels share. */
/* A file that couldn't be shown: each folder it looked in, or file it could be, on a line of its own. */
.file-panel-line {
  display: block;
  overflow-wrap: anywhere;
}

/* A commit call's Diff view: each commit's hash and message, then its patch, a gap between commits. */
.commit-diff > .tsk-meta {
  margin: 0 0 8px;
}
.commit-diff + .commit-diff {
  margin-top: 16px;
}


/* The model in the header subtitle: plain header text over a native <select> (SelectOverlay), as stratum's
   PageHeaderActions. */
.session-model-trigger {
  cursor: pointer;
}
.session-model:hover .session-model-trigger {
  text-decoration: underline;
}

/* An Agent tool call's details (claude/AgentDetails.tsx) in the tool panel. */
.agent-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.agent-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agent-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Find in session: every occurrence of the query in the thread in soft yellow, the current match in
   solid orange, as a browser's find does. */
::highlight(session-match) {
  background-color: color-mix(in srgb, #ffd60a 40%, transparent);
}
::highlight(session-match-active) {
  background-color: var(--accent-alt);
  color: #1c1c1e;
}

/* Above the composer: the query, its matches, and the way back to the live end. */
.session-find {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}
.session-find-input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  /* 16px: iOS zooms the page into smaller inputs on focus. */
  font-size: 16px;
  color: var(--ink);
}
.session-find-input::placeholder {
  color: var(--ink-4);
}
.session-find-count {
  flex-shrink: 0;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.session-find-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.session-find-btn:hover:not(:disabled) {
  background: var(--surface-2);
}
.session-find-btn:disabled {
  color: var(--ink-4);
  cursor: default;
}
.session-find-btn svg {
  width: 16px;
  height: 16px;
  /* Icons that leave their weight to the caller (i-x) match the chevrons' 2px. */
  stroke-width: 2;
}
.session-find-btn--up svg {
  transform: rotate(180deg);
}

/* "N running" at the bottom of the thread: the Thinking line's look, as a button for the Tasks panel. */
.session-running-indicator {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* A queued message's images, sent from another device (only the one that sent them has them). */
.session-queued-images {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

/* A message waiting for Claude to take it: muted, with Send now and Discard in its meta. */
.session-queued .stratum-chat-msg-body {
  opacity: 0.55;
}


/* The Drafts page's list: spaced as the thread's messages. */
.session-drafts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 8px;
}
/* A streamed file (StreamedFile) in a file panel or the Files page: the player across the view, an image at most its
   own size. */
.streamed-video {
  border-radius: 12px;
}
.streamed-audio {
  width: 100%;
}
.streamed-image {
  max-width: 100%;
  height: auto;
  align-self: flex-start;
}
/* A new session's draft: where it starts, picked from the list that fills the page, changeable until
   the first message. In a session's thread column (.session-thread), lined up with the composer. */
.new-session-draft {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.new-session-draft-hint {
  margin: 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* The draft's place while the hub says which hosts there are: the search box's size. */
.new-session-draft-skeleton {
  width: 100%;
}
/* A paged list page (the Activity tabs): its rows the page's full width, as the Work page's are. */
.paged-content {
  display: flex;
  flex-direction: column;
}
.paged-skeleton-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}
.paged-skeleton-row + .paged-skeleton-row {
  border-top: 1px solid var(--line);
}
/* A banner over the list (Commits: a host that can't track commits): room before the list. */
.paged-content > .stratum-status-banner {
  margin-bottom: 16px;
}
/* The search box over the list: room before it. */
.paged-content > * + :not(.stratum-status-banner) {
  margin-top: 16px;
}
/* The last search's results, while the next one's load. */
.paged-stale {
  opacity: 0.5;
  transition: opacity 0.15s;
}
/* A row's Sent and Received: links to each side's turn, in the accent so they read as links in the grey meta line. */
.handoffs-link {
  color: var(--accent);
  text-decoration: none;
}

.handoffs-link:hover {
  text-decoration: underline;
}
/* A meeting's transcript in a readable column. */
/* As wide as media's novel reader sets its text (.read-main's 720px less its 20px sides), the transcript set as it is. */
.meeting-page {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
/* Its sections space themselves (28 px); the transcript sits as the read page's text does, 30 px down. */
.meeting-page > .stratum-live-transcript,
.meeting-page-loading > .stratum-reading-text {
  padding-top: 30px;
}

/* While the meeting loads: its sections, and the recording's shape in the rail. */
.meeting-page-loading {
  display: flex;
  flex-direction: column;
}
.meeting-media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Resume in the header subtitle: reads as the text around it, underlined on hover. */
.meeting-resume {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.meeting-resume:hover {
  text-decoration: underline;
}

/* Actions in the header subtitle: plain header text over a native <select>, as on a session's page. */
.meeting-actions-trigger {
  cursor: pointer;
}
.meeting-actions:hover .meeting-actions-trigger {
  text-decoration: underline;
}

/* Me and Them volumes under the recording, a label and its slider a row each. */
.meeting-mix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.meeting-mix-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.meeting-mix-label {
  font-size: 13px;
  color: var(--ink-3);
}

/* A meeting's people: their names in a wrapping line, and the edit sheet's picks in a column. */
.meeting-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
}
.meeting-people-picks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
/* The header's "Recording · 12:34": its running time doesn't change its width. */
.meetings-recording-action {
  font-variant-numeric: tabular-nums;
}
/* A view's top blocks (the day's tile, its meter and buttons), evenly apart: each brings no space of its own. The
   labelled sections below space themselves. */
.health-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.health-number {
  font-variant-numeric: tabular-nums;
}
.health-log-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.health-photos {
  padding: 10px 10px 8px;
}
.health-chart {
  padding: 12px 14px 8px;
}
/* The page's blocks (chart, total, sources, search, transactions) evenly apart: each brings no space of its own. */
.spending-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.spending-page > .stratum-settings-group {
  margin-bottom: 0;
}
.spending-window {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.spending-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* A placeholder row while the proposals load: a row's padding and lines, so the page doesn't jump when they come. */
.proposal-skeleton-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}

/* A proposal's action in its meta line, colored by what came of it. */
.proposal-happened--proposed,
.proposal-happened--approved {
  color: var(--accent);
}
.proposal-happened--done {
  color: var(--ok);
}
.proposal-happened--failed {
  color: var(--warn);
}

/* A proposal's draft (a ticket comment): the ticket and its change, then the comment as it posts, kept as written. */
.proposal-draft {
  display: block;
  margin-top: 6px;
}
.proposal-draft-change {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.proposal-draft-body {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-left: 2px solid var(--line);
  white-space: pre-wrap;
  color: var(--ink);
}
/* A playbook change's fields, one per line: what a Yes changes. */
.playbook-change {
  white-space: normal;
}
.playbook-change-line {
  display: block;
}
.playbook-change-field {
  font-weight: 600;
  color: var(--ink-2);
}
.playbook-change-problem {
  color: var(--warn);
}
.proposal-draft-body code {
  font-size: 0.92em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
}

/* What a Yes on a draft will do, under the note box. */
.proposal-sheet-hint {
  margin: 8px 2px 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* What a later check found on a proposal: a line of its own under the reason, quieter than it. */
.proposal-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.proposal-note-link {
  color: var(--accent);
  cursor: pointer;
}
.proposal-note-link:hover {
  text-decoration: underline;
}

/* A row and its own actions menu beside it, outside the row's link: an active item's Close, Park and Reply, and on a
   phone a waiting proposal's Yes, No and Reply. */
.work-active-row {
  display: flex;
  align-items: center;
}
.work-active-row > .stratum-session-row {
  flex: 1;
  min-width: 0;
}
.work-active-row > .stratum-icon-menu {
  flex: none;
  margin-right: 6px;
}
/* A work item's item.md (on the Files page, or in a session's file panel): its proposals and sessions, then the
   file. Their labelled sections space themselves (as on every page), so no gap of its own between them: only a little
   room above the file. */
.files-work-item {
  display: flex;
  flex-direction: column;
}
.files-work-item > :last-child {
  margin-top: 12px;
}

/* An item's state in its page's header: in flight (the accent), parked (quiet), done (green). */
.work-item-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.work-item-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}
.work-item-state--open {
  color: var(--accent);
}
.work-item-state--open .work-item-state-dot {
  background: var(--accent);
}
.work-item-state--done {
  color: var(--ok);
}
.work-item-state--done .work-item-state-dot {
  background: var(--ok);
}
/* The page's own scroller is bounded by the shell (its nested scroll on this route). */
.files-page {
  height: 100%;
}
/* The tree's column, its search field on top: the rail beside the file on desktop, the page's body on a phone. No
   top padding of its own: the page's content padding (RailLayout's on desktop) is the gap above the field. */
.files-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px var(--stratum-app-shell-content-inset-bottom, 16px);
}
@media (max-width: 767px) {
  /* Rows flush with the header's content (the page's own side padding), not 8px inside it. */
  .files-tree {
    padding-left: 0;
    padding-right: 0;
  }
}
/* The repo's branch over its changes: a line of muted text, as a search's labels. */
.files-branch {
  padding: 2px 6px;
  font-size: 12px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
/* A changed file's diff, or its loading lines, in the page under the header. */
.files-diff {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.files-diff-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
/* The rail's Files / Changes tabs: the room under their underline a page header leaves under its own. */
/* The rail's tabs and the folder's search, pinned as the list scrolls under them (stratum-under-header). Its padding
   below keeps a gap over what scrolls under it, given back by the margin so the list starts where it did. */
.files-explorer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
  margin-bottom: -8px;
}
/* The history's branch pick: plain text in the muted line, underlined on hover (an action in meta text). */
.files-history-filter-trigger {
  cursor: pointer;
  color: var(--ink-2);
}
.files-history-filter:hover .files-history-filter-trigger {
  text-decoration: underline;
}
.files-history-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 6px;
}
/* A commit's message past its first line, over its diff. */
.files-commit-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink-2);
}
@media (min-width: 768px) {
  /* Over the rail's own top padding, so nothing shows above it while pinned. */
  .files-explorer-top {
    margin-top: -20px;
    padding-top: 20px;
  }
}
/* A commit's #123 in the header's subtitle: reads as the subtitle's text, underlined on hover. */
.files-commit-ref {
  color: inherit;
  text-decoration: none;
}
.files-commit-ref:hover {
  text-decoration: underline;
}
/* A commit's whole message in the title's panel: its lines as written. */
.files-commit-message {
  margin: 0;
  white-space: pre-wrap;
}
/* A phone's header bar: the folder's path, then its search field - a little room under its border when the tabs follow. */
.files-header-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.files-header-bar:has(+ .stratum-tabs) {
  padding-bottom: 6px;
}
/* Under a header that ends at its search field (no tabs: a folder in no repository), the list starts as close as it does
   under the tabs' underline (48 px from the field to the first name, against 27 under the tabs, 2026-11-01). */
@media (max-width: 767px) {
  .files-tree--under-search {
    margin-top: -14px;
  }
}
/* A commit's author in the header's subtitle: its text, underlined on hover - a tap away from the commit's details. */
.files-commit-author {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.files-commit-author:hover {
  text-decoration: underline;
}
/* The View menu in the header's subtitle: its text, underlined on hover, over the browser's own menu. */
.files-view-trigger {
  cursor: pointer;
}
.files-view-menu:hover .files-view-trigger {
  text-decoration: underline;
}
/* Pinned folders and recent files over the tree, a little room between them and its first row. */
.files-tree-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* A work item row's stage in its meta line, in the colors of its page header's state badge. */
.work-item-stage--open {
  color: var(--accent);
}
.work-item-stage--done {
  color: var(--ok);
}
/* Title in normal case at one size, like the tool panel's (ClaudeChatDemo.css). */
.tsk-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.tsk-title-count {
  font-weight: 400;
  color: var(--ink-3);
}
.tsk-section {
  margin: 10px 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tsk-section:first-child {
  margin-top: 0;
}

/* The task list, with launched tasks under their agent. Each row's vertical midpoint is where its
   connector meets it; nested lists make each line run from its own parent to its last child. */
.tsk-tree {
  --tsk-gap: 6px;
  --tsk-indent: 22px;
  --tsk-row-mid: 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 8px;
}
.tsk-tree > .stratum-button {
  align-self: center;
  margin-top: 6px;
}
.tsk-children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tsk-children .tsk-children {
  padding-left: var(--tsk-indent);
}
.tsk-branch {
  position: relative;
  padding-top: var(--tsk-gap);
}
.tsk-children .tsk-children > .tsk-branch::before {
  content: '';
  position: absolute;
  left: calc(var(--tsk-indent) / -2 - 1px);
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}
.tsk-children .tsk-children > .tsk-branch:last-child::before {
  bottom: auto;
  height: calc(var(--tsk-gap) + var(--tsk-row-mid));
  width: calc(var(--tsk-indent) / 2 - 2px);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}
.tsk-children .tsk-children > .tsk-branch:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--tsk-indent) / -2 - 1px);
  top: calc(var(--tsk-gap) + var(--tsk-row-mid));
  width: calc(var(--tsk-indent) / 2 - 2px);
  border-top: 1px solid var(--line);
}

.tsk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: calc(var(--tsk-row-mid, 28px) * 2);
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tsk-row:active {
  background: var(--surface-2);
}
.tsk-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  /* The sprite's chevron points down. */
  transform: rotate(-90deg);
}
.tsk-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tsk-name,
.tsk-facts {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsk-name {
  font-size: 14.5px;
  font-weight: 500;
}
.tsk-facts {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* A task's details. */
.tsk-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* A shell task's details, cut to fit the panel (FitHeight): spaced as the page around them. */
.tsk-fit {
  gap: 12px;
}
.tsk-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.tsk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The session header's "2 running": plain header text, tappable. */
.session-running {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.session-running:hover {
  text-decoration: underline;
}

/* Stop, in a task's status line: plain text, tappable, like the session header's items. */
.tsk-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.tsk-link:hover {
  text-decoration: underline;
}
.move-session-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* The proposals under their `work proposals add` row, set apart from the tool rows around them. */
.chat-proposals {
  margin: 8px 0;
}
/* The skills and instructions lists, and one skill's page: one skill's text keeps a readable column on desktop, the
   lists' rows take the page's full width, as the Work page's do. */
.skills-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
}
.skills-content.skills-list {
  max-width: none;
}
/* 16px between its pieces (the search box, a skill's description and text); a labelled section
   brings its own spacing (stratum-ui's LabelledSection: 20px above its label, 28px between). */
.skills-content > * + :not(.stratum-labelled-section) {
  margin-top: 16px;
}
@media (min-width: 768px) {
  .skills-content {
    margin-inline: auto;
  }
}
.skills-skeleton-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}
.skills-skeleton-row + .skills-skeleton-row {
  border-top: 1px solid var(--line);
}

/* One skill: what it's for, in the secondary ink, then its SKILL.md and other files. */
.stratum-md.skill-description {
  color: var(--ink-2);
}

/* The agent in the header subtitle: plain header text over a native <select> (SelectOverlay), as the session page's model. */
.context-agent-trigger {
  cursor: pointer;
}
.context-agent:hover .context-agent-trigger {
  text-decoration: underline;
}
/* The search box over a Work tab's lists (Active, Done): room before the first section's label, as Commits leaves
   before its rows. */
.work-search {
  margin-bottom: 16px;
}
/* The queue at a glance above the groups: the tiles in a row (two by two on a phone), then the kind chart. */
.work-tickets-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.work-tickets-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

/* Who a ticket waits on, in its row's meta: us in the accent, a reminder due in the warning, our fix in flight in the
   second accent, the requester grey, kept open and auto-resolving green. */
.work-ticket-state--us {
  color: var(--accent);
}
.work-ticket-state--reminder-due {
  color: var(--warn);
}
.work-ticket-state--fix-in-flight {
  color: var(--accent-alt);
}
.work-ticket-state--requester {
  color: var(--ink-3);
}
.work-ticket-state--kept-open,
.work-ticket-state--auto-resolving {
  color: var(--ok);
}

/* What it asks for: plain when it needs us, quieter when it's someone else's or a notice. */
.work-ticket-kind {
  color: var(--ink-2);
}
.work-ticket-kind--quiet {
  color: var(--ink-3);
}

/* The "Worked on by me" view: its window and outcome tabs side by side, wrapping on a phone; where each ticket ended
   up, resolved by the user green, redirected in the second accent, still open in the accent, the rest plain. */
.work-mine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.work-mine-outcome--resolved-by-you {
  color: var(--ok);
}
.work-mine-outcome--redirected {
  color: var(--accent-alt);
}
.work-mine-outcome--open {
  color: var(--accent);
}
/* A playbook's own fields, label beside value at desktop width and above it on a phone. */
.work-playbook-fields {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}
.work-playbook-fields dt {
  color: var(--ink-3);
}
.work-playbook-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .work-playbook-fields {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .work-playbook-fields dd {
    margin-bottom: 8px;
  }
}

/* Its comment template, folded under the fields. */
.work-playbook-comment {
  padding: 0 16px 12px;
  font-size: 14px;
}
.work-playbook-comment > summary {
  cursor: pointer;
  color: var(--ink-3);
}
/* The list's rows take the page's full width, as the Work page's do. */
.sessions-content {
  display: flex;
  flex-direction: column;
}
/* The offline and reconnecting banners sit apart from the list below them. */
.sessions-content > .stratum-status-banner {
  margin-bottom: 16px;
}

.sessions-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* Active filters as removable pills. */


/* A row the keyboard moves to scrolls clear of the sticky header (and its filter bar) and, on
   mobile, the bottom nav. */
.sessions-content .stratum-session-row {
  scroll-margin-top: 140px;
  scroll-margin-bottom: calc(var(--stratum-app-shell-bottom-chrome, 0px) + 12px);
}
/* Skeleton placeholders sit in a row's text line, keeping its height. */
.settings-skeleton {
  display: inline-block;
  vertical-align: middle;
}
/* One line of a meter skeleton: the bar, then its caption. */
.settings-skeleton-line {
  display: flex;
  align-items: center;
  min-height: 1lh;
}
.settings-skeleton-line + .settings-skeleton-line {
  margin-top: 4px;
}
.viewport-debug {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 8px;
  z-index: 1000;
  margin: 0;
  padding: 8px 10px;
  font: 11px/1.4 ui-monospace, Menlo, monospace;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  pointer-events: none;
}

/* Invisible elements whose measured heights read out CSS viewport units and the safe-area inset. */
.viewport-debug-probes {
  position: fixed;
  top: 0;
  left: -10px;
  width: 1px;
  visibility: hidden;
  pointer-events: none;
}
.viewport-debug-probes > div {
  position: absolute;
  top: 0;
  width: 1px;
}
.viewport-debug-safe {
  height: env(safe-area-inset-bottom, 0px);
}
@layer stratum {
/* The base every app built on stratum-ui imports once (`import 'stratum-ui/app.css'`), in dev and in a build: the
   document sized from --vh (trackViewportHeight; iOS Safari's moving toolbar makes 100vh unreliable), still on desktop,
   and on a phone scrolling #root on the routes AppShellLayout's scrollMode makes native (it sets
   html.stratum-native-scroll).
   Not in styles.css: the Safari extension mounts components into other sites' pages. */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: calc(var(--vh, 1vh) * 100);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

#root {
  height: 100%;
}

/* On a phone a native route scrolls #root, which index.html marks .stratum-native-scroll-root (scrollTarget.ts finds it
   by that), the body pinned: iOS 26 Safari misplaces fixed elements (the bottom nav) while the document itself scrolls,
   and #root is shallow enough to keep iOS's text selection working (media's index.css has the whole history). */
@media (max-width: 767px) {
  html.stratum-native-scroll body {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }
  html.stratum-native-scroll .stratum-native-scroll-root {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

}
/* Harmony on mobile: the AEA app draws white bars (status bar, address bar) outside the web view, so
   the page fades to white at its top and bottom edges rather than meeting them abruptly. Light mode only. */
.aea-edge-fade {
  display: none;
}
@media (max-width: 767px) and (prefers-color-scheme: light) {
  .aea-edge-fade {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
    z-index: 1000;
  }
  .aea-edge-fade-top {
    top: 0;
    background: linear-gradient(to bottom, #fff, rgb(255 255 255 / 0));
  }
  .aea-edge-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, #fff, rgb(255 255 255 / 0));
  }
}
