/* What Unicom adds to the stylesheet of Agents, which stays as it is: style.css is an exact copy of web/style.css in ~/git/agents. */

/* The green of a terminal, which Agents has only inside xterm. */
:root { --ok: #427b58; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #a6e3a1; } }
:root[data-theme="dark"] { --ok: #a6e3a1; }

/* A conversation stands where Agents has its terminal, and reads like one. */
.term .log { position: absolute; inset: 7px 4px 5px 9px; overflow: auto; padding-right: 8px; color: var(--text); font: 400 14px/1.25 var(--mono); scrollbar-width: thin; }     /* the numbers of the real terminal */
.log article { margin-bottom: 1.25em; padding: 0 8px; }
.log article.mine { padding-block: 5px; background: var(--hover); }
.log-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 1ch; }
.log-head::before { content: "●"; color: var(--ok); }
.log-head.dev::before { color: var(--accent); }
.log article.mine .log-head::before { content: "❯"; color: var(--o1); }
.log-head b { color: var(--blue); font-weight: 650; }
.log-head.dev b { color: var(--accent); }
.log-head em { color: var(--accent); font-weight: 400; }
.log-head time { color: var(--o1); }
.supporter, .log-head em.supporter { color: var(--peach); font-style: normal; font-weight: 500; }
.log-head .who { margin-left: 0; color: var(--blue); font: inherit; font-weight: 650; }
.log-head.dev .who { color: var(--accent); }
.who:hover { text-decoration: underline; text-underline-offset: 2px; }
.hero-where .who { color: inherit; font: inherit; }
.online-tile { cursor: pointer; }
.profile-card { display: flex; align-items: flex-start; gap: 14px; }
.profile-card dl { flex: 1; display: grid; gap: 8px; min-width: 0; margin: 0; }
.profile-card dl div { display: grid; grid-template-columns: 16ch minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.profile-card dt { color: var(--o2); }
.profile-card dd { margin: 0; color: var(--text); }
.profile-card b { color: var(--strong); font-weight: 620; }
.log-head button { margin-left: auto; color: var(--o1); }
.log-head button:hover { color: var(--strong); }
.log .md { padding-left: 2ch; }
.log article.hidden .md { opacity: .4; }
.md { overflow-wrap: anywhere; }
.md > * { margin: 0; }
.md > * + * { margin-top: 1.25em; }
.md ul, .md ol { padding-left: 2ch; list-style: "- "; }
.md a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.md strong { color: var(--strong); font-weight: 650; }
.md code { font: inherit; color: var(--blue); }
/* A quote reads as one: a bar on its left, and the words of someone else one step quieter. */
.md blockquote { margin: 0; padding: 2px 0 2px 1.5ch; color: var(--sub); box-shadow: inset 2px 0 0 var(--s2); }
.md blockquote > * { margin: 0; }
.md blockquote > * + * { margin-top: 1.25em; }
.work .notice.band { flex: none; margin: 0; }
.work .room-say { flex: none; }
.work > .launch { margin-top: 20px; }
.hero h1 a:hover { color: var(--accent); }
.toolbar-meta .chip { height: 20px; padding: 0 7px; gap: 5px; border-radius: 6px; font-size: 12px; }

/* Long titles, where Agents has short names. */
.board-head b, .ask-text b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-item.waiting { grid-row: span 1; }     /* a thread has less to show than a terminal: wider is enough */
.board-item pre { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }     /* whole lines, never one cut in half */
.board-item.waiting pre { -webkit-line-clamp: 5; }
.side-state .count { margin: 0; }
.tabs.filters { margin-bottom: 14px; }
.tabs.filters .tab.on { --c: var(--mauve); --c2: var(--blue); }

/* A section keeps its colour as an agent keeps its logo: the orange is the one of the Claude mark. */
.agent-mark.announcements { color: #d97757; }
.agent-mark.discussions { color: var(--ok); }     /* green in both themes, as the light one already had it: the blue belongs to Messages */
.agent-mark.bugs { color: var(--pink); }
.agent-mark.latest { color: var(--lavender); }
.agent-mark.messages { color: var(--sky); }
.agent-mark.support { color: var(--mauve); }
.side-menu { display: grid; gap: 1px; }
.side-item.on { background: var(--hover); color: var(--strong); }
/* A saved chat: the row opens it, the bin deletes it. */
.side-tab.saved { gap: 0; padding: 0; }
.saved-open { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 2px 0 8px; color: inherit; font: inherit; text-align: left; }
.saved-bin { flex: none; display: grid; place-items: center; width: 26px; height: 100%; border-radius: 6px; color: var(--o1); opacity: 0; transition: opacity 110ms, color 110ms; }
.side-tab.saved:hover .saved-bin, .saved-bin:focus-visible { opacity: 1; }
.saved-bin:hover { color: var(--bad); }
@media (hover: none) { .saved-bin { opacity: 1; } }
.people-found { display: grid; gap: 1px; margin-top: 4px; padding: 3px; border-radius: 8px; background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); }
.people-found button { min-height: 34px; padding: 0 9px; border-radius: 6px; color: var(--text); text-align: left; }
.people-found button:hover:not(:disabled) { background: var(--hover); color: var(--strong); }
.people-found button:disabled { color: var(--o1); }
.side-item .git { flex: none; }
.board-head .git { flex: none; }

/* A state that stays, so not the yellow of what waits for you. */
.notice.band { padding: 8px 11px; margin-bottom: 12px; font-size: 13px; color: var(--text); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.notice.band .icon { color: var(--o2); }
.notice.band button, .notice.band a { flex: none; margin-left: auto; color: var(--c, var(--accent)); font-weight: 600; }
.notice.band a + button { margin-left: 10px; }


/* On a phone the title of a thread needs the whole line. */
@media (max-width: 600px) {
  .toolbar-info { flex: 1 1 calc(100% - 70px); }
}

/* Who wrote comes first, then what it is about. */
.board-about { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 7px; color: var(--strong); font-size: 13.5px; font-weight: 540; line-height: 1.3; }
.hero h1 .tile { margin-right: 6px; }
.side-item .agent-mark { margin-right: 3px; }

/* Things arrive one after another, and answer to the hand. */
.board-item { animation: lift 260ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 26ms); }
.log article { animation: rise-in 240ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 34ms); }
.board-item:active, .ask:active { transform: scale(.985); }
.side-tab { transition: background 110ms, color 110ms; }
.count { animation: lift 240ms var(--ease) backwards; }
::view-transition-group(*) { animation-duration: 240ms; }

/* Who is logged in, top right. */
.main { position: relative; }
/* The account lives at the foot of the tree, where it covers nothing. */
.account { position: relative; flex: 1; min-width: 0; }
.side-foot .account .chip { width: 100%; justify-content: flex-start; padding-right: 6px; background: none; box-shadow: none; }
.side-foot .account .chip .agent-mark { margin-left: auto; }
.side-foot .account-in { flex: 1; min-width: 0; margin-right: 6px; font-size: 12.5px; }
.side-foot .account-menu { top: auto; right: auto; bottom: calc(100% + 6px); left: 0; }
.rail .account { flex: none; margin-top: auto; }
.rail .account-name, .rail .agent-mark.patreon { display: none; }
.rail .account .chip { padding: 0 2px; background: none; box-shadow: none; }
.rail .account-menu { top: auto; right: auto; bottom: 0; left: calc(100% + 6px); }
.account .chip { height: 30px; padding: 0 8px 0 4px; background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); }
.account .chip:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.account-name { max-width: 150px; overflow: hidden; color: var(--strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: absolute; z-index: 30; }
.account-who { display: grid; gap: 1px; padding: 7px 11px 9px; box-shadow: 0 1px 0 var(--line); }
.account-who span { max-width: 260px; color: var(--o2); font-size: 12.5px; }
.agent-mark.patreon { color: #f96854; }
.page-head { padding-right: 0; }
.top-bar .account, .top-bar .account-in { display: none; }
@media (max-width: 860px) {
  .top-bar .account { position: static; display: block; flex: none; }
  .top-bar .account-in { position: static; display: inline-flex; flex: none; align-items: center; height: 28px; margin: 0 4px 0 2px; padding: 0 11px; font-size: 12.5px; line-height: 1; white-space: nowrap; }
  .top-bar .account-name, .top-bar .agent-mark.patreon { display: none; }
  .top-bar .account .chip { padding: 0 2px; background: none; box-shadow: none; }
  .account-menu { top: 46px; right: 8px; }
}
.hero-where .git-branch { max-width: none; }
.unicom-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.log-head button + button { margin-left: 8px; }

/* The owner looking through someone else's eyes. */
.view-as { display: grid; gap: 6px; width: 290px; padding: 9px 8px 8px; box-shadow: 0 1px 0 var(--line); }
.view-as .side-title { padding: 0 3px; }
.view-as .pills { flex-wrap: nowrap; gap: 3px; }
.view-as .pill { flex: 1; height: 28px; padding: 0 4px; font-size: 12.5px; }
.view-as .filter { width: 100%; height: 30px; }
.view-people { display: grid; gap: 1px; max-height: 210px; overflow: auto; scrollbar-width: thin; }
.session-menu .view-people button { height: 30px; padding: 0 7px; }
.session-menu .view-people button.on { background: var(--hover); }
.session-menu .view-people span { flex: 1; min-width: 0; }
.session-menu .view-people em { padding-left: 8px; font-size: 12px; }
.view-people .tag { padding: 4px 7px; }
.chip.waiting .account-name { color: var(--wait-text); }
.account-name { max-width: 210px; }

/* Who is on the frequency, and who is writing. */
.online { flex: none; padding: 11px 0 2px; }
.online .side-title { display: block; padding: 0 9px 6px; }
.online-tiles { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 9px; }
.online-tile { position: relative; animation: lift 300ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.online-tile::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--crust); animation: breathe 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 400ms); }
@keyframes breathe { 50% { opacity: .55; } }
.typing-row { flex: none; min-height: 19px; padding-top: 2px; font: 400 13px/1.3 var(--mono); }
.typing { display: flex; align-items: center; gap: 1ch; padding: 0 8px; color: var(--o2); animation: rise-in 200ms var(--ease) backwards; }
.typing-dots { flex: none; display: inline-flex; gap: 3px; padding: 0 2px; font-style: normal; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: typing 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 150ms; }
.typing-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.side-tab .typing-dots { margin-left: auto; }

/* What arrives while reading, and where reading stopped. */
.log article.landed { animation: landed 900ms var(--ease) backwards; }
@keyframes landed { from { opacity: 0; transform: translateY(8px); background: color-mix(in srgb, var(--accent) 20%, transparent); } 50% { background: color-mix(in srgb, var(--accent) 12%, transparent); } }
.log-new { display: flex; align-items: center; gap: 1ch; margin: 0 8px 1.25em; color: var(--accent); }
.log-new::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.log-below { position: sticky; bottom: 4px; left: 50%; display: inline-flex; align-items: center; gap: 6px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; color: var(--crust); background: var(--accent); font: 600 12.5px/1.4 var(--sans, inherit); animation: lift 200ms var(--ease) backwards; }
.log-head i { color: var(--o1); font-style: normal; }
.log-tools { display: inline-flex; gap: 8px; margin-left: auto; opacity: 0; transition: opacity 110ms; }
.log article:hover .log-tools, .log article:focus-within .log-tools { opacity: 1; }
@media (hover: none) { .log-tools { opacity: 1; } }
/* What can be done with a message: words in yellow. Quote stays grey until words of its message are selected,
   because then it quotes only those. */
.log-head .log-tools button { margin-left: 0; color: var(--wait-text); transition: color 110ms; }
.log-head .log-tools button.quote { color: var(--o1); }
.log-head .log-tools button.quote.on { color: var(--wait-text); }
.log-head .log-tools button:hover, .log-head .log-tools button.quote.on:hover { color: var(--strong); }

/* Images and files inside a conversation. */
.md img { display: block; max-width: min(100%, 520px); max-height: 360px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.post-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-left: 2ch; }
.post-files .chip { max-width: 100%; font: 400 12.5px/1.3 var(--mono); }
.composer .post-files { padding: 0 8px 7px; }
.post-image img { display: block; width: 180px; height: 104px; object-fit: cover; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }

/* Where every text is written. */
.composer { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 8px; background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 120ms; }
.composer:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.composer.over { box-shadow: inset 0 0 0 2px var(--accent); }
.composer-bar { display: flex; align-items: center; gap: 2px; height: 30px; padding: 0 3px 0 5px; box-shadow: 0 1px 0 var(--line); }
.composer-bar > button:not(.icon-button) { height: 22px; padding: 0 8px; border-radius: 5px; color: var(--o2); font-size: 12.5px; }
.composer-bar > button.on { color: var(--strong); background: var(--hover); }
.composer-note { flex: 1; min-width: 0; padding: 0 8px; overflow: hidden; color: var(--o1); font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.composer textarea { width: 100%; min-height: 54px; max-height: 45vh; padding: 8px 10px; border: 0; outline: 0; resize: vertical; color: var(--text); background: none; box-shadow: none; font: 400 14px/1.3 var(--mono); }
.room-say { align-items: flex-end; }
.room-say .composer textarea { flex: none; max-height: 32vh; }     /* its height follows the text, and the conversation above keeps most of the page */
/* A new thread wants room: a wider window and a taller box. */
.dialog.compose { width: min(720px, 100%); }
.dialog.compose .composer textarea { min-height: min(240px, 34vh); }
.post-edit { display: grid; gap: 6px; margin: 4px 0 0 2ch; }
.post-edit-title { width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--strong); background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1 var(--mono); }
.post-edit-actions { display: flex; justify-content: flex-end; gap: 6px; }
.field .composer { width: 100%; }

/* The owner's switch, and small notes in the account menu. */
.account-note { display: block; padding: 6px 11px 4px; color: var(--o1); font-size: 12px; }
.closed-band { padding: 7px 14px; color: var(--wait-text); background: color-mix(in srgb, var(--wait, var(--accent)) 16%, transparent); font-size: 13px; }
.dialog-note .icon { vertical-align: -2px; }

/* Agents can leave its tools as bare icons, known by heart. These have consequences, so they keep their words. */
@container (min-width: 760px) { .toolbar-actions .button:not(.primary) span { display: inline; } }

@media (max-width: 600px) {
  .toolbar-actions { flex: 1 1 100%; flex-wrap: wrap; gap: 4px; }
  .toolbar-actions .button:not(.primary) span { display: inline; }
  .room-say { flex-direction: column; align-items: stretch; }
  .room-say .button { align-self: flex-end; height: 32px; }
  .room-say .composer textarea { max-height: 24svh; }     /* Send stays on a phone screen under a long quote */
  .composer-note { visibility: hidden; }
  .log-tools { opacity: 1; }
  .work .term { flex: 1 0 38svh; }     /* Agents has only a key row below its terminal; here the reply box and Send must fit too */
}

/* Support: the chat, drawn like every other conversation. */
.project.support .term .log { padding-bottom: 6px; }
.support-empty { margin: 0; padding: 4px 8px; color: var(--o1); }
.support-chat-message { margin-bottom: 1.25em; padding: 0 8px; }
.support-chat-message.mine { padding-block: 5px; background: var(--hover); }
.support-chat-message .log-head::before { color: var(--ok); }
.support-chat-message.mine .log-head::before { content: "❯"; color: var(--o1); }
.support-chat-answer { padding-left: 2ch; overflow-wrap: anywhere; }
.support-chat-answer.is-plain { white-space: pre-wrap; }
.support-chat-answer > * { margin: 0; }
.support-chat-answer > * + * { margin-top: .9em; }
.support-chat-answer ul, .support-chat-answer ol { padding-left: 2ch; }
.support-chat-answer a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.support-chat-answer strong { color: var(--strong); font-weight: 650; }
.support-chat-answer :not(pre) > code { color: var(--blue); }
.support-chat-answer table { border-collapse: collapse; }
.support-chat-answer th, .support-chat-answer td { padding: 3px 10px; text-align: left; box-shadow: inset 0 -1px 0 var(--line); }
.support-chat-table { overflow-x: auto; }
.support-chat-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.support-chat-path kbd { padding: 0 6px; border-radius: 5px; color: var(--strong); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); font: inherit; }
.support-chat-path-separator { color: var(--o1); }
.support-chat-code { border-radius: 6px; background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.support-chat-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 3px 10px; color: var(--o1); box-shadow: 0 1px 0 var(--line); font-size: 12.5px; }
.support-chat-code-bar button:hover { color: var(--strong); }
.support-chat-code pre { margin: 0; padding: 8px 10px; overflow-x: auto; }
.support-chat-code code { color: var(--text); font: inherit; white-space: pre; }
.support-chat-code :is(.hljs-keyword, .hljs-selector-tag, .hljs-type) { color: var(--mauve); }
.support-chat-code :is(.hljs-string, .hljs-regexp, .hljs-template-tag) { color: var(--ok); }
.support-chat-code :is(.hljs-number, .hljs-literal, .hljs-symbol, .hljs-variable) { color: var(--peach); }
.support-chat-code :is(.hljs-comment, .hljs-quote) { color: var(--o1); font-style: italic; }
.support-chat-code :is(.hljs-title, .hljs-section, .hljs-function) { color: var(--blue); }
.support-chat-code :is(.hljs-attr, .hljs-attribute, .hljs-property, .hljs-name) { color: var(--sapphire); }
.support-chat-code :is(.hljs-built_in, .hljs-meta, .hljs-params) { color: var(--pink); }
.support-chat-sources { margin: 5px 0 0; padding-left: 2ch; color: var(--o1); font-size: 12.5px; }
.support-chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-left: 2ch; }
.support-chat-suggestions button { padding: 3px 9px; border-radius: 6px; color: var(--strong); text-align: left; box-shadow: inset 0 0 0 1px var(--line); font: 450 12.5px/1.35 var(--sans); transition: background 110ms; }
.support-chat-suggestions button:hover { background: var(--hover); }
.support-foot { flex: none; display: flex; align-items: flex-start; gap: 14px; padding: 1px 2px 2px; color: var(--o1); font-size: 11.5px; line-height: 1.35; }
.support-foot > span { flex: 1; min-width: 0; }
.support-chat-credit { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: inherit; }
.support-chat-credit:hover { color: var(--strong); }
.support-chat-credit img { display: block; }
@media (max-width: 600px) { .support-foot { flex-direction: column; gap: 4px; } }

/* Search, and a tree that reaches everything. */
.side-more { width: 100%; padding: 4px 9px 5px; border-radius: 6px; color: var(--o1); font-size: 12.5px; text-align: left; }
.side-more:hover { color: var(--strong); background: var(--hover); }
.search-box { width: 100%; margin-bottom: 12px; }
.search-results { display: grid; gap: 7px; }
.search-results .ask { width: 100%; max-width: none; }
.search-results .ask-text { min-width: 0; }
.search-results .ask-text > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
.search-results em { flex: none; }
mark { border-radius: 3px; color: inherit; background: color-mix(in srgb, var(--wait) 40%, transparent); }

/* Sections as a list: one line for each thread, what it is about first. */
.rows { display: grid; border-radius: 10px; overflow: hidden; background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); }
.row { display: grid; grid-template-columns: 10px 16px minmax(0, 1fr) auto minmax(0, 15ch) 5ch 6ch; align-items: center; gap: 10px; min-height: 38px; padding: 0 13px; color: var(--o2); font-size: 12.5px; box-shadow: inset 0 -1px 0 var(--line); transition: background 110ms; animation: lift 220ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 16ms); }
.row.bare { grid-template-columns: 10px 16px minmax(0, 1fr) auto 5ch 6ch; }
.row.chat { grid-template-columns: 10px minmax(0, 22ch) minmax(0, 1fr) auto 6ch; }
.row-preview { min-width: 0; overflow: hidden; color: var(--o2); text-overflow: ellipsis; white-space: nowrap; }
.row:last-child { box-shadow: none; }
.row:hover { background: var(--hover); }
.row .dot { justify-self: center; }
.row-title { min-width: 0; overflow: hidden; color: var(--strong); font-size: 14.5px; font-weight: 540; text-overflow: ellipsis; white-space: nowrap; }
.row.fresh .row-title { font-weight: 680; }
.row.closed .row-title { color: var(--o2); font-weight: 450; }
.row-marks { display: inline-flex; align-items: center; gap: 7px; color: var(--o1); white-space: nowrap; }
.row-marks em { color: var(--o2); font-style: normal; }
.row.waiting .row-marks em { color: var(--wait-text); }
.row-marks .count { margin: 0; }
.row-by { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.row-replies { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-when { text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  .row, .row.bare { grid-template-columns: 10px 16px minmax(0, 1fr) auto 6ch; gap: 8px; padding: 0 10px; }
  .row-by, .row-replies, .row-preview { display: none; }
  .row.chat { grid-template-columns: 10px minmax(0, 1fr) auto 6ch; }
}

/* Latest and the thread page: the title leads, the author follows. */
.board-head b { flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--strong); font-size: 14.5px; font-weight: 640; line-height: 1.25; white-space: normal; }
.board-head { align-items: flex-start; padding-bottom: 3px; }
.board-head .agent-mark, .board-head > .icon { flex: none; margin-top: 2px; color: var(--o2); }
.board-about { -webkit-line-clamp: 1; margin-bottom: 6px; color: var(--o2); font-size: 12px; font-weight: 450; }
.board-about .typing-dots { margin-right: 6px; vertical-align: middle; }
.hero h1 { flex: 1 1 100%; min-width: 0; gap: 8px; color: var(--strong); font-size: 18px; font-weight: 640; line-height: 1.25; white-space: normal; }
.hero h1 > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.hero h1 .agent-mark, .hero h1 > .icon { flex: none; }
.hero-where { flex: 1 1 100%; flex-wrap: wrap; row-gap: 2px; }
.hero-where .tile { transform: scale(.8); margin-right: -3px; }
.project > .hero { padding-right: 0; }
.project.support .hero h1 { font-size: 15px; }
.support-chat-sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* The dot of a row also changes read and unread. */
.row-read { display: grid; place-items: center; width: 18px; height: 18px; margin: 0 -4px; border-radius: 50%; }
.row-read:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }

/* The owner's side of a report. */
.report-code { color: var(--accent); font-family: var(--mono); font-size: 12.5px; }
.facts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.fact { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 1px 8px; border-radius: 6px; color: var(--sub); background: var(--hover); font-size: 12px; }
.fact.bad { color: var(--bad); }
.fact.derived, .fact.unknown { color: var(--o2); }
.fact.own { color: var(--accent); }
.fact.add { color: var(--o2); background: none; box-shadow: inset 0 0 0 1px var(--line); }
.fact.own:hover, .fact.add:hover { color: var(--strong); }
.triage { flex: 1 1 0; min-height: 0; overflow: auto; display: grid; align-content: start; gap: 14px; padding: 2px 4px 12px 2px; }
.triage h3 { margin: 0 0 6px; color: var(--strong); font-size: 13.5px; font-weight: 640; }
.triage section { display: grid; gap: 7px; }
.triage-state { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--o2); font-size: 13px; }
.triage-state b { color: var(--strong); }
.triage-row { display: grid; grid-template-columns: 14ch minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.triage-row span { color: var(--o2); }
.triage-row p { margin: 0; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.triage-do { display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .triage-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* A new report. */
.report-form { display: grid; gap: 12px; max-width: 760px; }
.report-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.report-drop { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--o2); background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 13px; }
.report-drop:hover { color: var(--strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.button.danger { color: var(--bad); }
@media (max-width: 600px) { .report-kind { grid-template-columns: minmax(0, 1fr); } }

/* The way back from the desktop page on a phone. Its size comes from the page, against the zoom. */
.back-to-mobile { position: fixed; top: .35em; right: .45em; z-index: 40; display: grid; place-items: center; padding: .42em; border-radius: .6em; color: var(--text); background: var(--mantle); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }

/* Who pays stands out a little: a star and a warmer row, and no one else loses anything. */
.star { flex: none; color: var(--peach); font-size: 11.5px; font-style: normal; }
.row.backed { background: color-mix(in srgb, var(--peach) 5%, transparent); }
.row.backed:hover { background: color-mix(in srgb, var(--peach) 9%, var(--hover)); }

.brand { min-width: 0; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The bell: what is new, on the page. */
.bell { position: relative; flex: none; }
.bell .icon-button { position: relative; }
.bell .count { position: absolute; top: -3px; right: -5px; min-width: 16px; margin: 0; padding: 1px 4px; font-size: 10.5px; }
.bell-menu { top: 50px; left: 12px; width: min(320px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; }
.top-bar .bell-menu { top: 44px; right: 8px; left: auto; }
.bell-menu a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); font-size: 13.5px; }
.bell-menu a:hover { background: var(--hover); color: var(--strong); }
.bell-menu a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bell-menu time { flex: none; color: var(--o1); font-size: 12px; }
.bell-menu p { margin: 0; padding: 10px; color: var(--o2); font-size: 13.5px; }
