/* carvel page — the Inbox and Topics views and the view tabs of the middle column's head.
   The base rules are Classic's instrument; the Jolly Roger themes set the
   same parts in bone on the night sea below. */

/* On a phone they lie over the shell's one column, which keeps its scroll;
   wider, they take the middle column's cell (web/desk.css). */
#shell { position: relative; }
.page-view {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow-y: auto;
  background: var(--sea);
  color: var(--bone);
}
body[data-page="inbox"] #inbox-page,
body[data-page="topics"] #topics-page,
body[data-page="scoreboard"] #scoreboard-page { display: block; }
@media (max-width: 700px) {
  body:not([data-page="log"]) #shell > .panel { visibility: hidden; }
}

.inbox-body {
  /* The page is a flex column (its talk box sits at the foot), and auto inline
     margins in one size a child to its content: the width is said outright. */
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  /* The pane's own width, which the order rows answer to: a drag of the
     divider, not the window, decides how the six controls sit. */
  container-type: inline-size;
  container-name: inbox;
}

/* ---- the composer at the column's foot: one block -----------------------
   The field, with Send inside its own edge, and one line under it that says
   where the message goes. The talk box is shared with the Topics page, so every
   rule here names the Inbox: the other page keeps the shape it has. */
#inbox-page .talk {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-2);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
#inbox-page .talk > .talk-foot,
#inbox-page .talk .talk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
#inbox-page .talk-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: border-color var(--t-fast) var(--ease);
}
#inbox-page .talk-field:focus-within { border-color: var(--accent-line); }
#inbox-page .talk-field .talk-text {
  width: 100%;
  min-height: 2.25rem;
  padding: var(--s-1) 0;
  background: none;
  border: 0;
  resize: none;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--text);
}
#inbox-page .talk-field .talk-text:focus { outline: none; }
#inbox-page .talk-field .talk-text::placeholder { color: var(--text-3); }
#inbox-page .talk-field .talk-send { grid-area: auto; align-self: end; }
#inbox-page .talk-where { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--text-sm); color: var(--text-2); }
#inbox-page .talk-topic { flex: 0 1 auto; min-width: 0; font-size: var(--text-sm); }
#inbox-page .talk-hint { margin-left: auto; font-size: var(--text-xs); color: var(--text-3); text-align: right; }
@media (max-width: 719px) {
  #inbox-page .inbox-body { flex: 1 0 auto; }
  #inbox-page .talk { margin-top: auto; flex: none; padding: var(--s-2) var(--s-3); }
  #inbox-page .talk-where { flex: 1 1 auto; min-width: 0; }
  #inbox-page .talk-topic { flex: 1 1 8rem; max-width: none; font-size: var(--text-md); }
}

.inbox-lede { margin-bottom: var(--s-8); }
.inbox-headline {
  margin: 0 0 var(--s-2);
  font-family: var(--font-display, var(--font-sans));
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--bone);
}
.inbox-headline-n { color: var(--attn); font-variant-numeric: tabular-nums; }
.inbox-sub { margin: 0; max-width: 52ch; font-size: var(--text-sm); line-height: 1.6; text-wrap: pretty; color: var(--bone-3); }
/* A chip under the count is a jump to the group it counts, and it is drawn only
   when a group holds more than one kind of thing: the count itself is said once,
   by the headline, and once more by the head of the group it is about. */
.inbox-tally { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.inbox-tally-item { display: inline-flex; }
.inbox-tally-jump {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--bone-2);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.inbox-tally-jump:hover { border-color: var(--line-strong); color: var(--bone); }
.inbox-tally-n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bone); }
.inbox-notice { margin: 1.25rem 0 0; font-size: 1rem; color: var(--bone-2); }
.inbox-notice .btn { margin-left: 0.5rem; }

.inbox-mark { position: relative; display: inline-block; width: 1rem; height: 1rem; flex: none; }
.inbox-mark::before, .inbox-mark::after { content: ""; position: absolute; }
.inbox-mark.is-decision { border: 2px solid var(--attn); border-radius: 50%; }
.inbox-mark.is-decision::after { inset: 4px; border-radius: 50%; background: var(--attn); }
.inbox-mark.is-release::before { inset: 1px; border: 2px solid var(--gold-ink, var(--gold)); border-radius: 2px; }
.inbox-mark.is-release::after { inset: 5px; border-radius: 50%; background: var(--gold-ink, var(--gold)); }
.inbox-mark.is-failed::before { inset: 2px; background: var(--danger); transform: rotate(45deg); }
.inbox-mark.is-look { border: 2px solid var(--link, var(--gold)); }
.inbox-mark.is-look::after { inset: 3px; background: var(--link, var(--gold)); }
.inbox-mark.is-answer::before { left: 2px; top: 0; bottom: 0; width: 2px; background: var(--run); }
.inbox-mark.is-answer::after { left: 4px; top: 1px; width: 10px; height: 7px; background: var(--run); }
.inbox-mark.is-fyi { border: 2px solid var(--bone-3); border-radius: 50%; }
.inbox-mark.is-fyi::after { left: 5px; top: 3px; width: 2px; height: 6px; background: var(--bone-3); }
.inbox-mark.is-catch::before, .inbox-mark.is-catch::after { left: 7px; top: -1px; width: 2px; height: 18px; background: var(--bone-2); }
.inbox-mark.is-catch::before { transform: rotate(45deg); }
.inbox-mark.is-catch::after { transform: rotate(-45deg); }
.inbox-mark.is-landed::after { inset: 4px; background: var(--bone-3); }
.inbox-mark.is-review { border: 2px solid var(--bone-2); border-radius: 50%; }
.inbox-mark.is-review::after { inset: 3px; border-radius: 50%; border: 1px solid var(--bone-2); }
.inbox-mark.is-debt { border: 2px dashed var(--bone-2); border-radius: 50%; }

.inbox-kind { font-weight: 700; }
.inbox-kind.is-decision { color: var(--attn); }
.inbox-kind.is-release { color: var(--gold-ink, var(--gold)); }
.inbox-kind.is-failed { color: var(--danger-deck, var(--danger)); }
.inbox-kind.is-look { color: var(--link, var(--gold)); }
.inbox-kind.is-answer { color: var(--run); }
.inbox-kind.is-fyi, .inbox-kind.is-catch, .inbox-kind.is-landed { color: var(--bone-3); }
.inbox-kind.is-review { color: var(--bone-2); }

.inbox-group { margin-top: var(--s-8); }
.inbox-fold { border-top: 1px solid color-mix(in srgb, var(--rope) 70%, transparent); }
.inbox-group + .inbox-fold, .inbox-lede + .inbox-fold { margin-top: var(--s-8); }
.inbox-fold:last-child { border-bottom: 1px solid color-mix(in srgb, var(--rope) 70%, transparent); }
/* One rhythm: every group head is the same block of air carrying the same three
   parts — the name, its count, the one phrase that says what the group is for —
   and the group's own action at the right. The hairline under it is the list's
   own top rule, so a group reads as one block and the next one starts anew. */
.inbox-group-head, .inbox-fold-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  padding: 0 0 var(--s-2);
  border-bottom: 1px solid var(--rope);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--bone);
}
.inbox-group-count { font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bone-3); }
.inbox-group-why { min-width: 0; font-size: var(--text-sm); font-weight: 400; color: var(--bone-3); }
.inbox-rows { border-top: 0; }
.inbox-group .inbox-row:last-child { border-bottom: 0; }

/* Needs you is the only group that is the owner's to do, so it is the only one
   whose head wears the amber; the rows under it stay unmarked, because a row's
   state is said in words. */
.inbox-group.is-needs {
  margin-top: 0;
  padding: 0;
}
.inbox-group.is-needs .inbox-group-head { color: var(--attn); border-bottom-color: color-mix(in srgb, var(--attn) 30%, transparent); }
.inbox-group.is-needs .inbox-group-count { color: var(--attn); }

.inbox-group.is-fyi .inbox-row-title { font-size: 0.875rem; }
.inbox-group.is-fyi .inbox-row-detail { font-size: 0.8125rem; color: var(--bone-3); }
.inbox-group.is-orders .inbox-group-name, .inbox-group.is-look .inbox-group-name, .inbox-group.is-fyi .inbox-group-name { color: var(--bone-2); }

.inbox-fold-head { cursor: pointer; list-style: none; padding: var(--s-3) var(--s-2) var(--s-3) 0; border-bottom: 0; margin: 0; color: var(--bone-2); }
.inbox-fold-head::-webkit-details-marker { display: none; }
.inbox-fold-head::before { content: "▸"; display: inline-block; width: 1rem; color: var(--bone-3); }
.inbox-fold[open] > .inbox-fold-head::before { content: "▾"; }
.inbox-fold-head:hover .inbox-group-name { color: var(--bone); }
.inbox-fold-body { padding-bottom: 0.75rem; }
.inbox-fold-body .inbox-rows { border-top: 0; }
.inbox-fold-body .inbox-row:last-child { border-bottom: 0; }
.inbox-seen-all { margin: 0 0 0.25rem 1.5rem; }
.inbox-fold.is-seen .inbox-row-title { color: var(--bone-3); font-weight: 400; }

.inbox-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rope) 70%, transparent);
}
.inbox-row > .inbox-mark { margin-top: 0.25rem; }
.inbox-row.is-opens { cursor: pointer; }
.inbox-row.is-opens:hover { background: var(--deck); }
.inbox-row-main { min-width: 0; }
/* A past crew row is the whole line, as a button that opens the crew's log. */
.inbox-past-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  background: none;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rope) 70%, transparent);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.inbox-past-row:hover { background: var(--deck); }
.inbox-past-end { font-size: 0.8125rem; color: var(--bone-2); }
.inbox-voyage { font-family: var(--font-mono); font-size: 0.75rem; color: var(--bone-3); }
.inbox-row-head { margin: 0; font-size: 1rem; line-height: 1.4; }
.inbox-row-title {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--bone-2);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
button.inbox-row-title { cursor: pointer; }
button.inbox-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.inbox-row.is-unread .inbox-row-title { font-weight: 700; color: var(--bone); }
.inbox-row-detail { margin: 0.25rem 0 0; max-width: 70ch; font-size: 0.875rem; line-height: 1.55; text-wrap: pretty; color: var(--bone-2); }
.inbox-row-where {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--bone-3);
}
.inbox-project { font-weight: 600; color: var(--bone-2); }
.inbox-topic { color: var(--link, var(--gold)); text-decoration: none; }
.inbox-topic:hover { text-decoration: underline; text-underline-offset: 3px; }
button.inbox-change { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.inbox-refs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--bone-3); overflow-wrap: anywhere; }
.inbox-row-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--bone-3);
}
.inbox-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--attn); }
.inbox-seen { padding: 0.25rem 0.75rem; }
.inbox-read-seen { margin: 0 0 1.25rem; }
.inbox-files { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

.inbox-text { margin: 1.5rem 0 0; }
.inbox-text-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.inbox-text-name { min-width: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--bone-2); overflow-wrap: anywhere; }
.inbox-text-copy { flex: none; }
.inbox-text-acts { display: flex; flex: none; gap: 0.5rem; }
.inbox-page-open { flex: none; }

/* The window a Look row's HTML file opens in: 85% of the viewport wide and 80%
   high, centred over a dim backdrop, with the drawn page filling the rest. It is
   a modal <dialog>, so the veil is the dialog itself and the backdrop is clear. */
.inbox-page-window-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--dim-veil);
}
.inbox-page-window-backdrop::backdrop { background: transparent; }
.inbox-page-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 85vw;
  height: 80vh;
  overflow: hidden;
  background: var(--deck);
  border: 1px solid var(--signal-green);
  border-radius: 10px;
  box-shadow: 0 1.25rem 3rem var(--shade);
}
.inbox-page-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rope); }
.inbox-page-title { min-width: 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-page-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.inbox-text-body { padding: 1rem 1.25rem; background: var(--ink-08); border: 1px solid var(--rope); border-radius: 0.5rem; overflow-x: auto; }
.inbox-text-body pre { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.5; color: var(--bone); white-space: pre; }
.inbox-text-body.topic-md { font-size: 1rem; line-height: 1.6; color: var(--bone); }
.inbox-text-more { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--bone-2); }

.inbox-row.is-compact { padding: 0.5rem; align-items: center; }
.inbox-row.is-compact > .inbox-mark { margin-top: 0; }
.inbox-row.is-compact .inbox-row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.75rem; }
.inbox-row.is-compact .inbox-row-head { font-size: 0.875rem; }
.inbox-row.is-compact .inbox-row-title { font-weight: 400; }
.inbox-row.is-compact.is-unread .inbox-row-title { font-weight: 600; }
.inbox-row.is-compact .inbox-row-where { margin-top: 0; }
/* A fold of one kind names it in its head; Seen mixes kinds, so its rows keep the word. */
.inbox-fold:not(.is-seen) .inbox-kind { display: none; }

.inbox-answer { margin-top: 0.75rem; }
.inbox-answer-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inbox-answer .question-other-box { margin-top: 0.5rem; }
.inbox-answer .question-other-input { flex: 1 1 14rem; }
.inbox-answer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.5rem; }
.inbox-answer-note {
  flex: 0 1 22rem;
  min-width: 0;
  padding: 0.375rem 0.625rem;
  background: var(--deck-2);
  border: 1px solid var(--rope);
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--bone);
}
.inbox-answer-note::placeholder { color: var(--bone-3); }
.inbox-answer-terms { font-size: 0.75rem; color: var(--bone-3); }
.inbox-answer .question-later-picker { margin-top: 0.5rem; }
.inbox-answer-detail { margin-top: 0.5rem; max-width: 70ch; font-size: 0.875rem; color: var(--bone-2); }
.inbox-answer-details { font-weight: 600; }
html .inbox-answer .inbox-answer-details[aria-expanded="true"] { border-color: var(--attn); color: var(--attn); }

/* The chip is a gauge of five notches filled up to the layer, so the depth reads
   by shape; layer 5 runs only on the owner's grant, so it takes the colour of
   what waits for the owner. */
.inbox-group.is-debt .inbox-row { align-items: center; padding-block: 0.375rem; }
.inbox-group.is-debt .inbox-row > .inbox-mark { margin-top: 0; }
.inbox-group.is-debt .inbox-row-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.75rem; }
.inbox-group.is-debt .inbox-row-head { display: flex; align-items: center; gap: 0.75rem; min-width: 0; font-size: 0.9375rem; line-height: 1.35; }
.inbox-group.is-debt .inbox-row-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--bone); }
.inbox-group.is-debt .inbox-debt-actions { margin-top: 0; }
.inbox-group.is-debt .inbox-debt-proof { margin: 0; font-size: 0.8125rem; line-height: 1.3; white-space: nowrap; }
.inbox-group.is-debt .inbox-debt-show { margin-left: 0.5rem; }
.inbox-group.is-debt .inbox-row-main > :is(.inbox-oneline, .inbox-oneline-error) { grid-column: 1 / -1; }
.inbox-debt-layer {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.125rem 0.625rem 0.125rem 0.5rem;
  border: 1px solid var(--bone-3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bone-2);
}
.inbox-gauge { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.75rem; }
.inbox-gauge i { width: 3px; height: 0.375rem; border: 1px solid currentColor; box-sizing: border-box; opacity: 0.7; }
.inbox-gauge i:nth-child(2) { height: 0.4375rem; }
.inbox-gauge i:nth-child(3) { height: 0.5625rem; }
.inbox-gauge i:nth-child(4) { height: 0.6875rem; }
.inbox-gauge i:nth-child(5) { height: 0.75rem; }
.inbox-gauge i.is-on { background: currentColor; opacity: 1; }
.inbox-debt-layer[data-layer="5"] { color: var(--attn); border-color: var(--attn); }
.inbox-debt-why { max-width: 70ch; color: var(--bone-2); }
.inbox-debt-why-label { font-weight: 700; color: var(--bone-2); }
.inbox-from { color: var(--bone-3); }
.inbox-from strong { font-weight: 700; color: var(--bone-2); }
.inbox-work { display: inline-flex; align-items: baseline; gap: 0.375rem; font-weight: 600; color: var(--bone-2); }
.inbox-work::before { content: ""; flex: none; align-self: center; width: 0.5rem; height: 0.5rem; border: 2px solid currentColor; box-sizing: border-box; }
.inbox-work.is-landed::before { background: currentColor; }
.inbox-work.is-unmerged { color: var(--attn); }
.inbox-work.is-dropped { color: var(--bone-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.inbox-work.is-dropped::before { border-style: dashed; }
.inbox-debt-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.inbox-debt-proof { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--bone-2); }
.inbox-debt-proof strong { color: var(--bone); }
.inbox-debt-show { margin-left: 0.25rem; padding: 0.125rem 0.625rem; }

/* A name in a narrow column and its answer beside it, so a glance down the
   names reads the page; on a phone each name sits above its answer. */
.inbox-read-kind.is-debt { gap: 0.625rem; }
.inbox-gap-part {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rope);
}
.inbox-gap-part:first-of-type { border-top: 0; padding-top: 0; }
.inbox-gap-part-name { margin: 0.125rem 0 0; font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--bone); }
.inbox-gap-part-body { min-width: 0; }
.inbox-gap-work-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; text-wrap: balance; color: var(--bone); }
.inbox-gap-reading, .inbox-gap-text, .inbox-gap-means p, .inbox-gap-proof { margin: 0; max-width: 62ch; font-size: 1rem; line-height: 1.6; text-wrap: pretty; color: var(--bone); }
.inbox-gap-means { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; }
.inbox-gap-reading { margin-top: 0.5rem; color: var(--bone-2); }
.inbox-gap-label { font-weight: 700; color: var(--bone-2); }
.inbox-gap-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--bone-3); }
.inbox-gap-facts .inbox-crew { font-weight: 600; color: var(--bone-2); }
.inbox-gap-proof strong { font-weight: 700; }
.inbox-gap-block { margin-top: 0.875rem; }
.inbox-gap-block > .inbox-gap-label { display: block; margin-bottom: 0.25rem; font-size: 0.8125rem; }
.inbox-gap-missing { margin: 0; max-width: 62ch; font-size: 0.875rem; font-style: italic; line-height: 1.5; color: var(--bone-2); }
.inbox-gap-line {
  margin: 0;
  max-width: 62ch;
  padding: 0.875rem 1.125rem;
  background: var(--ink-08);
  border: 1px solid var(--rope);
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--bone);
}
.inbox-gap-list { max-width: 62ch; margin: 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--bone); }
.inbox-gap-list li + li { margin-top: 0.25rem; }
.inbox-gap-controls { display: flex; flex-direction: column; gap: 0.75rem; }
.inbox-debt-actions.is-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem 2rem; margin-top: 0; }
.inbox-gap-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.inbox-gap-help { margin: 0; max-width: 28ch; font-size: 0.875rem; line-height: 1.5; color: var(--bone-2); }
@media (max-width: 700px) {
  .inbox-gap-part { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 0; }
  .inbox-gap-help { max-width: none; }
}

/* A small panel that sits where the press was, so the question and its answer
   stay together. */
.inbox-oneline {
  flex-basis: 100%;
  max-width: 40rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.875rem 0.875rem;
  background: var(--deck-2);
  border: 1px solid var(--rope);
  border-radius: 0.5rem;
}
.inbox-oneline-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 700; color: var(--bone); }
.inbox-oneline-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.inbox-oneline-input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.4375rem 0.625rem;
  background: var(--sea);
  border: 1px solid var(--bone-3);
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--bone);
}
.inbox-oneline-input:focus-visible { outline: 2px solid var(--link, var(--gold)); outline-offset: 1px; }
.inbox-oneline-input::placeholder { color: var(--bone-3); }
.inbox-oneline-error { margin: 0.375rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--danger-deck, var(--danger)); }
.inbox-oneline-error:empty { display: none; }

.inbox-broken { padding: 0.125rem 0.625rem; }
.inbox-broken-mark { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; color: var(--danger-deck, var(--danger)); }
.inbox-broken-mark time { font-weight: 400; font-variant-numeric: tabular-nums; }
.inbox-broken-mark::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; background: currentColor; transform: rotate(45deg); }

/* The quote is the loudest line: it is what the owner asked for. The reading
   and the examples sit under it, quieter, as the order's own test. */
.order-words { margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid var(--rope); }
.order-words-label { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--bone); }
.order-words-quote { position: relative; margin: 0 0 0.75rem; padding: 0 0 0 1.5rem; }
.order-words-quote::before { content: "“"; position: absolute; left: 0; top: -0.25rem; font-size: 1.625rem; line-height: 1; color: var(--bone-3); }
.order-words-quote p { margin: 0; max-width: 62ch; font-size: 1rem; line-height: 1.5; text-wrap: pretty; color: var(--bone); }
.order-words-date { display: block; margin-top: 0.25rem; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--bone-2); }
.order-words-reading { margin: 0.875rem 0; max-width: 70ch; font-size: 0.875rem; line-height: 1.55; color: var(--bone-2); }
.order-words-reading .order-words-label { display: inline; margin-right: 0.375rem; color: var(--bone); }
.order-words-examples { margin: 0; padding-left: 1.5rem; max-width: 70ch; font-size: 0.875rem; line-height: 1.55; color: var(--bone); }
.order-words-examples li + li { margin-top: 0.5rem; }
.order-words code { font-family: var(--font-mono); font-size: 0.8125rem; }

/* Gaps listed is the tag that asks something of the owner, so it takes the
   colour of what waits; none and listed stay in bone. */
.order-proof { font-weight: 700; }
.order-proof.has-gaps { color: var(--attn); border-color: var(--attn); }
.order-proof.is-missing { font-style: italic; }
.order-proof.is-listed { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  .inbox-body { padding: 1.5rem 0.75rem 3rem; }
  .inbox-lede { margin-bottom: var(--s-6); }
  .inbox-headline { font-size: 1.625rem; }
  .inbox-sub { font-size: var(--text-sm); }
  .inbox-group.is-needs { padding: 0; }
  .inbox-row { grid-template-columns: 1.25rem minmax(0, 1fr); }
  .inbox-row-side { grid-column: 2; }
  .inbox-row-side .inbox-seen { margin-left: auto; }
  /* A past row has no mark: it keeps its name and its ending side by side, and
     the fold's field takes the whole line with its count under it. */
  .inbox-past-row { grid-template-columns: minmax(0, 1fr) auto; }
  .inbox-past-row .inbox-row-side { grid-column: auto; }
  .inbox-past-search { flex-basis: 100%; }
  .inbox-answer-note { flex-basis: 100%; order: 1; font-size: 1rem; }
  .inbox-answer .question-other-input { flex-basis: 100%; }
}
@media (max-width: 700px), (pointer: coarse) {
  .tab, .inbox-seen, .inbox-read-seen, .inbox-seen-all, .inbox-retry, .inbox-answer .btn, .inbox-fold-head, .inbox-order-bar .btn,
  .inbox-debt-actions .btn, .inbox-debt-show, .inbox-order-bar .order-older-toggle, .inbox-broken, .inbox-oneline .btn, .inbox-text-copy, .inbox-page-open { min-height: 2.75rem; }
  .inbox-answer-note, .inbox-oneline-input { min-height: 2.75rem; }
}

html[data-skin="jolly"] {
  & :is(.inbox-order-bar, .inbox-group.is-debt .inbox-row-main) .btn { padding-block: 0.1875rem; line-height: 1.2; }
}

.inbox-group-tool { margin-left: auto; align-self: center; }
.inbox-group.is-orders .inbox-group-head { color: var(--bone-2); }
/* ---------- a Needs you row that is an order: one grid for the whole list ----
   The order's name is the row's strongest text, two lines at most; under it
   whose order it is, and the model, the effort and the machine it would run on;
   and at the row's right its one press. The row's wrappers are display:contents,
   so its cells are items of one grid and the eye runs down a column. Every
   track is a fraction of the pane, never a content width, so no order's own
   words can move another row's column.

   A pane with no room for that quiet line keeps the taller shape: the picks on
   a line of their own under the name, because a pick a phone cannot hit is not
   a control (the @container block below answers to the pane, not the window). */
.inbox-order, .inbox-order-bar, .inbox-order .order-owner {
  display: contents;
}
.inbox-row.is-release > .inbox-row-main { display: contents; }
/* A release row is a line of a list, not a card: no mark, and no frame. */
.inbox-row.is-release > .inbox-mark { display: none; }
.inbox-row.is-release {
  /* One height for the row's controls, written once: a phone's touch height, or
     the desk's. Every cell below asks this name, so the two widths cannot
     disagree about how tall a pick is. */
  --order-row-control: 1.625rem;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas:
    "name  name"
    "picks picks"
    "crew  id"
    "acts  acts";
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  padding-block: 0.5rem;
}
/* The head rides inside the row's main, which is display:contents: the name is
   an item of the list's one grid, and it takes the row's whole width. */
.inbox-row.is-release .inbox-row-head { grid-area: name; display: block; min-width: 0; }
/* Two lines are held whether the name needs them or not, so a short name can
   never make its row shorter than the next one's. The height is a whole number
   of pixels, so three rows of the same list round to the same place; a longer
   name is cut after two lines and ends in an ellipsis at either width. */
.inbox-row.is-release .order-sentence {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: calc(2 * 1.4em);
  min-height: var(--order-row-control);
  width: 100%;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
.inbox-row.is-release :is(.order-pick-pair, .inbox-order-model) { grid-area: picks; min-width: 0; }
.inbox-row.is-release .order-owner-crew { grid-area: crew; min-width: 0; }
.inbox-row.is-release .order-owner-id { grid-area: id; min-width: 0; }
/* A wait is a sentence, and a sentence is never cut at the pane's edge: it
   takes the whole line above the press and wraps, marked in the amber that says
   it waits for the owner. The mark is the rule's own word, so the line's text
   stays the reason: a reader hears "Waits on ...", which is the whole story. */
/* The row's own area, written in the one rule that lays its actions out: a
   second rule for the same cell would let the press be placed by whichever
   rule a reader met first. A wait takes the whole line above the press, so
   the actions wrap. */
.inbox-row.is-release .inbox-row-acts {
  grid-area: acts;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.inbox-row.is-release .inbox-row-acts > .order-release-line.order-row-wait {
  display: block;
  flex: 1 1 100%;
  overflow: visible;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-2);
}
.order-wait-why { white-space: normal; overflow-wrap: anywhere; text-wrap: pretty; }
.inbox-row.is-release .inbox-row-acts > .order-release-line.order-row-wait::before {
  content: "Waiting";
  margin-right: var(--s-2);
  font-weight: 700;
  color: var(--attn);
}
/* The words take the room the buttons leave and end in an ellipsis, so they
   never set the row's height. */
.inbox-row.is-release .inbox-row-acts > .order-release-line {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* A held order's word takes the amber that says the hold is the owner's. */
.inbox-row.is-release .inbox-row-acts > .order-release-line .order-held-mark {
  color: var(--attn);
  font-weight: 700;
  letter-spacing: 0;
}
.inbox-row.is-release .inbox-row-acts > .order-release-line .order-held-mark { text-transform: none; }
.inbox-row.is-release .inbox-row-acts > .order-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
}
/* The press is the row's one strong control: the page's solid primary, filled,
   where the eye ends on the card. Dismiss is quiet words beside it. */
.inbox-row.is-release .order-actions > .btn[data-row="release"] {
  padding-inline: var(--s-3);
  background: var(--solid);
  box-shadow: none;
  font-weight: 700;
  color: var(--text-on-solid);
}
.inbox-row.is-release .order-actions > .btn[data-row="release"]:hover {
  background: var(--solid-hover);
  box-shadow: none;
}
.inbox-row.is-release .order-actions > .btn[data-row="release"][disabled] { opacity: 0.4; }
.inbox-row.is-release .order-actions > .btn[data-row="dismiss"] {
  padding-inline: var(--s-2);
  background: none;
  box-shadow: none;
  color: var(--text-3);
}
.inbox-row.is-release .order-actions > .btn[data-row="dismiss"]:hover {
  background: none;
  box-shadow: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The row whose order is open in the popup wears the selection's ink: it is the
   one row the page is talking about. */
.inbox-row.is-release.is-details { background: color-mix(in srgb, var(--accent) 7%, transparent); }
/* A press that is on its way dims its row, so the owner sees the press land even
   when the release takes a moment. */
.inbox-row.is-release { transition: opacity var(--t-med) var(--ease), background-color var(--t-med) var(--ease); }
.inbox-row.is-release.is-leaving { opacity: 0.4; }
/* The order's time is in its own popup, not a column of the list. */
.inbox-row.is-release > .inbox-row-side { display: none; }
/* The folds and the odds and ends keep a line of their own under the controls. */
.inbox-row.is-release :is(.order-review, .order-older, .inbox-files, .inbox-row-where) {
  grid-column: 1 / -1;
}
/* The pick draws one line whatever it carries: the whole model spec is on the
   pick's title and in the card the name opens, never on a second line that
   would set the row's height. */
.inbox-row.is-release :is(.order-pick-pair, .inbox-order-model) {
  min-height: var(--order-row-control);
  max-width: 100%;
}
.inbox-row.is-release .order-pick-pair { width: 100%; max-width: 100%; }
.inbox-row.is-release .order-pick-pair .order-picker > button { min-height: var(--order-row-control); }
.inbox-row.is-release .order-pick-pair .order-picker { min-width: 0; max-width: none; flex: 1 1 auto; }
/* The effort keeps a floor that reads `Default` whole: a level cut to `Defa…`
   is a control the owner cannot read, and the model's own name has its hover. */
.inbox-row.is-release .order-pick-pair .order-pick-effort { flex: none; min-width: 5.5rem; }
.inbox-row.is-release .order-picker > button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row.is-release .order-owner-crew, .inbox-row.is-release .order-owner-id {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The model and effort picks are searchable: the wrapper is the bar's item,
   the button shows the value, and a popover holds the field and the list. */
.order-picker { position: relative; display: inline-flex; min-width: 0; max-width: 15rem; }
.order-picker[hidden] { display: none; }
.order-picker > button {
  min-width: 0;
  max-width: 15rem;
  padding: 0.125rem 0.5rem;
  overflow: hidden;
  background: var(--deck-2);
  border: 1px solid var(--rope);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.8125rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bone);
  cursor: pointer;
}
.order-picker > button:hover { border-color: var(--rope); background: var(--deck-3); }
.order-picker > button:disabled { opacity: 1; color: var(--bone-3); cursor: default; }
.order-picker-pop {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* As wide as the longest name in the list: the owner must be able to tell
     one model of a family from another. The room it may use is set where it is
     placed (web/app-order-pick.js), which knows the box that scrolls it; 100vw
     does not, because that box draws a scrollbar of its own. */
  width: max-content;
  min-width: max(16rem, 100%);
  padding: 0.375rem;
  background: var(--deck-2);
  border: 1px solid var(--rope);
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 3rem var(--shade);
}
.order-picker-pop.is-up { top: auto; bottom: calc(100% + 0.25rem); }
.order-picker-search {
  width: 100%;
  padding: 0.25rem 0.375rem;
  background: var(--deck-3);
  border: 1px solid var(--rope);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--bone);
}
.order-picker-search:focus-visible { outline: 2px solid var(--glow); outline-offset: 0; }
/* The rows keep their height and the list scrolls: a flex column would
   otherwise squeeze every row to fit the max-height. */
.order-picker-list { display: flex; flex-direction: column; min-height: 0; max-height: 12rem; overflow-y: auto; }
.order-picker-list > * { flex: none; }
.order-picker-option {
  padding: 0.1875rem 0.375rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  /* The whole spec is the point of the row: it wraps under itself rather than
     ending in an ellipsis, at any width. */
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--bone-2);
  cursor: pointer;
}
.order-picker-option[aria-selected="true"] { color: var(--bone); }
.order-picker-option[aria-disabled="true"] { color: var(--bone-3); cursor: default; }
.order-picker-option.is-active { background: var(--deck-3); box-shadow: inset 2px 0 0 var(--glow-line); color: var(--bone); }
.order-picker-none { padding: 0.1875rem 0.375rem; font-size: 0.75rem; color: var(--bone-3); }
.order-picker.effort-select { max-width: 6rem; }
.order-picker.effort-select > button { font-size: var(--fs-11, 0.6875rem); }
/* A thumb takes a row whole: on a phone and under a coarse pointer every row
   of an open pick is a target, so the list keeps 2.75rem rows and scrolls
   inside the room the pick placed itself in (web/app-order-pick.js). */
@media (max-width: 700px), (pointer: coarse) {
  .order-picker-option { display: flex; align-items: center; min-height: 2.75rem; padding: 0.375rem 0.5rem; }
  .order-picker-list { max-height: min(12rem, 45vh); }
  .order-picker-none { min-height: 2.75rem; display: flex; align-items: center; }
  .order-picker-search { min-height: 2.75rem; font-size: 1rem; }
}
/* A bulk row's pick is small print. */
.release-all-row .order-picker > button { font-family: var(--font-mono); font-size: var(--fs-11, 0.6875rem); }
/* Model and machine shrink before the bar wraps: at 1440 px a row with the
   picker held 806 px of controls in a 765 px bar, and its small print took a third line. */
.inbox-order-bar:has(.inbox-order-machine) .inbox-order-model { flex: 1 1 8rem; }
.inbox-order-machine { max-width: 13rem; }
.inbox-order-machine:disabled { opacity: 1; color: var(--bone-3); }
.inbox-group .release-all-row { margin: 0 0 0.75rem; }

/* ---- a pane with room: the card and the list, composed -------------------
   The pane answers, not the window: from 30 rem the order's card puts its one
   quiet line under the name — whose order it is, its id, the model with its
   effort and the machine, all at rest — and the press ends its last line. From
   the same width the Orders group's six cells sit on one line on shared columns
   instead of wrapping the machine and the id onto a second one. */
@container inbox (min-width: 30rem) {
  .inbox-row.is-release {
    --order-row-control: 2rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.45fr) minmax(0, 2.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "name  name  name  name"
      "crew  id    picks host"
      "acts  acts  acts  acts";
    column-gap: var(--s-3);
    row-gap: var(--s-2);
    padding-block: var(--s-4);
  }
  /* The name is the card's strongest text and it starts where the column does. */
  .inbox-row.is-release .order-sentence {
    width: 100%;
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.45;
    height: calc(2 * 1.45em);
    text-align: left;
  }
  /* The quiet line under it: read as words, not as two boxes fighting the name. */
  .inbox-row.is-release :is(.order-owner-crew, .order-owner-id) {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-3);
  }
  .inbox-row.is-release .order-owner-crew { font-weight: 700; color: var(--text-2); }
  .inbox-row.is-release .order-pick-pair { width: auto; max-width: 100%; border-color: transparent; }
  .inbox-row.is-release .order-pick-pair:hover,
  .inbox-row.is-release .order-pick-pair:focus-within { border-color: var(--line); }
  .inbox-row.is-release .order-pick-pair .order-picker { flex: 0 1 auto; }
  .inbox-row.is-release .order-picker > button {
    padding-inline: var(--s-2);
    background: none;
    border-color: transparent;
    box-shadow: none;
    font-size: var(--text-sm);
    color: var(--text-2);
  }
  .inbox-row.is-release .order-picker > button:hover {
    background-color: var(--surface-2);
    border-color: var(--line);
    box-shadow: inset 0 0 0 1px var(--line), none;
    color: var(--text);
  }
  .inbox-row.is-release .inbox-row-acts { justify-content: flex-end; }

  /* The Orders group's one line with room for the words. */
  .orders-line {
    grid-template-columns: 10px minmax(0, 5.5rem) minmax(0, 5rem) minmax(0, 1fr) minmax(0, 5.5rem) 3rem;
    gap: 0 var(--s-3);
  }
  .orders-line-machine { display: block; }
}

/* An order that just left Needs you fades into its line here, rather than
   appearing: the release reads as one movement from one group to the other. */
@keyframes inbox-arrive {
  from { opacity: 0; transform: translateY(-5px); background-color: color-mix(in srgb, var(--accent) 15%, transparent); }
  to { opacity: 1; transform: none; background-color: transparent; }
}
.orders-item.is-arriving { animation: inbox-arrive var(--t-slow) var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .orders-item.is-arriving { animation: none; }
  .inbox-row.is-release { transition: none; }
}

.orders-item { border-bottom: 1px solid color-mix(in srgb, var(--rope) 70%, transparent); }
.orders-item:last-child { border-bottom: 0; }
/* One line, six shared columns: the dot, the crew, the voyage, the state in
   words, the machine and the id. The pane's own width decides how generous the
   tracks are, never which cell wraps: the machine and the id keep their column
   at every width, and a reason that needs a second line takes one. */
.orders-line {
  display: grid;
  /* No room for the machine's name at a narrow pane: the five things the row is
     for stay, and the machine is one press away in the order's own popup. */
  grid-template-columns: 10px minmax(0, 5rem) minmax(0, 5.5rem) minmax(0, 1fr) 2.4rem;
  align-items: baseline;
  gap: 0 var(--s-2);
  width: 100%;
  padding: 0.625rem 0.5rem;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  color: var(--bone-2);
}
button.orders-line { cursor: pointer; }
button.orders-line:hover { background: var(--deck); }
.orders-line > .lamp { align-self: center; }
.orders-line-crew { font-weight: 700; color: var(--bone); }
.orders-line-voyage { font-family: var(--font-mono); font-size: 0.8125rem; }
.orders-line-state { min-width: 0; color: var(--bone-3); overflow-wrap: anywhere; }
.orders-line-machine { display: none; font-size: 0.75rem; color: var(--bone-3); }
.orders-line :is(.orders-line-crew, .orders-line-voyage, .orders-line-machine, .orders-line-id) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.orders-line-id { margin-left: 0; text-align: right; }
/* The chips an order earns are a note under its line, not a seventh column the
   id has to make room in. */
.orders-line-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; padding: 0 0.5rem 0.5rem 1.625rem; }
.orders-line-tags .order-model-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--w-regular);
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.4;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orders-item[data-live="run"] > .orders-line > .dot {
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: pulse-ok 1.8s var(--ease) infinite;
}
.orders-item[data-live="job"] > .orders-line > .dot {
  background: var(--attn);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--attn) 55%, transparent);
  animation: pulse-attn 2s var(--ease) infinite;
}
.orders-item[data-live="run"] .orders-line-state { color: var(--ok); font-weight: 700; }
.orders-item[data-live="job"] .orders-line-state { color: var(--attn); font-weight: 700; }
.orders-item[data-live="run"] .orders-line-tags .order-model-badge {
  color: var(--ok);
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 32%, transparent);
}
.orders-item[data-live="job"] .orders-line-tags .order-model-badge {
  color: var(--attn);
  background: var(--attn-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--attn) 32%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .orders-item[data-live] > .orders-line > .dot { animation: none; }
}
.orders-line-id { margin-left: auto; }
/* The review's verdict under its order's line: the counts read at a glance,
   the kept findings and the Helm's calls one press away. */
.order-review { margin: 0 0.5rem 0.5rem; max-width: 46rem; font-size: 0.8125rem; color: var(--bone-3); }
.order-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.125rem 0; cursor: pointer; list-style-position: inside; }
.order-review-head:hover { color: var(--bone-2); }
.order-review-word { font-weight: 700; color: var(--bone-2); }
.order-review-verdict { color: var(--bone-2); }
.order-review.is-failed .order-review-verdict, .order-review.is-timeout .order-review-verdict, .order-review.is-lost .order-review-verdict { color: var(--danger-deck, var(--danger)); }
.order-review-model, .order-review-id { font-family: var(--font-mono); font-size: 0.75rem; }
.order-review-id { margin-left: auto; }
.order-review-body { padding: 0.25rem 0 0.375rem 1.25rem; }
.order-review-body:empty { display: none; }
.order-review-finding { margin: 0 0 0.25rem; line-height: 1.4; }
.order-review-severity { font-weight: 700; color: var(--bone-2); }
.order-review-call { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--run); }

@media (max-width: 700px) {
  /* The time rides in the row's corner, so it takes no line of its own. */
  .inbox-row.is-debt { position: relative; }
  .inbox-row.is-debt .inbox-row-side { position: absolute; top: 0.5rem; right: 0.5rem; }
  .inbox-row.is-debt .inbox-row-head { padding-right: 4.5rem; }
  /* A phone has no hover: the sentence wraps whole, and the controls under it
     take the touch height the bar's buttons take. */
  .order-sentence { flex-basis: 100%; min-height: 2.75rem; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  /* A row of the list keeps its height on a phone too: the touch height is the
     one the row's control height takes, and a pick keeps one line, its whole
     name in its title and in the card. */
  .inbox-row.is-release { --order-row-control: 2.75rem; }
  .order-picker > button, .order-picker { max-width: none; }
  /* On a phone the button wraps its spec instead of cutting it, so a long name
     is never only in the title; a row of the list is the one place it cannot,
     because a wrapped spec is what set a row's height. */
  .order-picker > button { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  .inbox-row.is-release .order-picker > button { white-space: nowrap; overflow-wrap: normal; text-overflow: ellipsis; }
  .inbox-order-bar .inbox-row-where { flex-basis: 100%; flex-wrap: wrap; margin: 0; white-space: normal; }
  .inbox-group.is-debt .inbox-row-main { grid-template-columns: minmax(0, 1fr); }
  .inbox-group.is-debt .inbox-row-head { display: block; }
  .inbox-group.is-debt .inbox-row-title { display: inline; overflow: visible; white-space: normal; text-wrap: pretty; }
  .inbox-group.is-debt .inbox-debt-layer { display: inline-flex; margin-right: 0.5rem; vertical-align: 0.0625rem; }
  .inbox-group.is-debt .inbox-debt-proof { white-space: normal; }
}
