/* base.css: the prototype's own global styles, plus Relay's local webfonts.
 *
 * The prototype pulled Hanken Grotesk and JetBrains Mono off Google Fonts.
 * Relay ships both as variable woff2 under /fonts and the board has to work
 * with no network, so the @font-face blocks below are Relay's, lifted from
 * tokens.css unchanged. Everything after them is the prototype's <helmet>
 * verbatim: the scrollbars, the keyframes and the reduced-motion block.
 */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2?v=1") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-ext.woff2?v=1") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2?v=1") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext.woff2?v=1") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ⚠️⚠️ WITHOUT THIS EVERY NATIVE CONTROL PAINTS LIGHT. `color-scheme` was
     absent from the whole of web/, so anything the BROWSER draws rather than
     the stylesheet came out in the light palette on a black app: scrollbars
     on elements that opted into the standard scrollbar, select menus, number
     spinners, date pickers. The rack's scrollbar was the visible one
     because it is the only rule setting `scrollbar-width` without a
     `scrollbar-color`, but it was never the only element affected. One
     declaration, and the class of bug closes rather than the instance. */
:root {
  color-scheme: dark;
}
html,
body {
  margin: 0;
  background: #0a0a0a;
}
body {
  overflow: auto;
}
button {
  white-space: nowrap;
  flex: none;
}
a {
  color: #ffb45c;
  text-decoration: none;
}
a:hover {
  color: #ff8a00;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #242424;
  border-radius: 99px;
  border: 3px solid #0a0a0a;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@keyframes om-pageA {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-pageB {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-pop {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes om-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-railin {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes om-modal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
button,
[role="switch"] {
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.11s cubic-bezier(0.22, 0.61, 0.36, 1);
}
button:active,
[role="switch"]:active {
  transform: scale(0.965);
}
/* ⭐ #2054 THE WORKSPACE CARD IS A CLICK TARGET, so it earns the same press the
   suite gives every button: a paint-only :active scale that cannot shift layout
   (see the note below on why :active is safe). Gentler than a button's 0.965
   because the card is large and a big scale reads as a jump, not a press. The
   hover — border + background — is style-hover on the card element itself; this
   rule carries the transition for both and adds the pressed state. */
.wscard {
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.11s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wscard:active {
  transform: scale(0.994);
}
html[data-reduce-motion] .wscard:active {
  transform: none;
}
/* ⭐ #1983 The accessibility preferences from Home > Settings, each an
   attribute component.js sets on <html> and remembers per viewer. Text size is
   a zoom because the design fixes its 13px inline on the root; contrast is a
   filter for the same reason; the focus ring and underlines are the two the
   keyboard and colour-blind readers asked for. */
html[data-text-size="s"] {
  zoom: 0.94;
}
html[data-text-size="l"] {
  zoom: 1.08;
}
html[data-text-size="xl"] {
  zoom: 1.18;
}
html[data-contrast] {
  filter: contrast(1.12) brightness(1.04);
}
html[data-underline] a {
  text-decoration: underline;
}
html[data-focus-ring] :focus-visible {
  outline: 2px solid #ff8a00;
  outline-offset: 2px;
}

html[data-reduce-motion] *,
html[data-reduce-motion] *::before,
html[data-reduce-motion] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html[data-reduce-motion] button:active,
html[data-reduce-motion] [role="switch"]:active {
  transform: none;
}
@keyframes om-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 138, 0, 0.55);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 5px rgba(255, 138, 0, 0);
    opacity: 0.75;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 0, 0);
    opacity: 1;
  }
}
@keyframes om-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── the deploy notice ────────────────────────────────────────────────────────
 * A new version landed, so this page's JS and CSS may be stale. Ported from the
 * shipping shell, which this copy does not load.
 *
 * ⭐ EVERY COLOUR HERE IS A TOKEN, and that is why the port themed itself. The
 * upstream rule uses --surface-2, --accent, --border, --shadow and --text, and
 * this copy defines all five with identical values, so nothing had to be
 * retuned by hand. A literal would have had to be, and would have drifted the
 * first time the palette moved.
 *
 * ⭐ RAISED IS LIGHTER. --surface-2 sits above the #101010 panels on purpose:
 * the suite chrome standard says a raised surface is lighter than what it
 * floats over, and Bridge once ran that inverted and made a panel invisible
 * from inside its own app.
 */
.update-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  /* Off screen and transparent until .show, so the slide-in has somewhere to
   * come from. translateX keeps it centred while translateY does the moving. */
  transform: translate(-50%, -160%);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    opacity 0.28s ease;
}

.update-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ⚠️ ONE FLEX ITEM FOR THE SENTENCE, NOT SEVERAL BARE TEXT RUNS. The upstream
 * rule carries this warning and it is worth keeping: the row is a flex
 * container, so every loose run beside the icon becomes its own item and each
 * wraps to its own line, turning one sentence into four. */
.update-toast .ut-msg {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.update-toast .ut-txt {
  white-space: nowrap;
}
.update-toast .ut-txt b {
  font-weight: 600;
  color: var(--accent-soft, var(--accent));
}

.update-toast .icn {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

.update-toast .ut-refresh {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #14100a;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  flex: none;
}

.update-toast .ut-refresh:hover {
  filter: brightness(1.08);
}

.update-toast .ut-x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted, #adadad);
  cursor: pointer;
}

.update-toast .ut-x:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.update-toast .ut-x .icn {
  width: 13px;
  height: 13px;
  color: currentColor;
}

/* A phone has no room for the sentence, and the button already says Refresh. */
@media (max-width: 560px) {
  .update-toast {
    left: 12px;
    right: 12px;
    top: 12px;
    transform: translateY(-160%);
  }
  .update-toast.show {
    transform: translateY(0);
  }
  .update-toast .ut-txt {
    white-space: normal;
  }
}

/* CONTROLS STAY ON ONE ROW, ON THE RIGHT, AT EVERY WIDTH.
 *
 * These rows are a grid on a wide screen and a flexbox under 1000px, because
 * `rowDisp` switches them. They also carried `flex-wrap: wrap`, so the narrow
 * form let the controls fall to a SECOND LINE and, with nothing pushing them
 * across, sit on the LEFT. Rows measured 119px against 102px, and WHICH rows
 * wrapped depended on how long the title happened to be, so a list looked
 * ragged rather than obviously broken. That is the whole of the reported
 * "layout shift", and it is not a stuck click state: base.css only ever gave
 * :active a transform, which is paint-only and cannot move anything.
 *
 * NOWRAP ALONE IS NOT ENOUGH, and this is the half that is easy to miss. A
 * flex child will not shrink below its own content by default, so removing the
 * wrap just moved the damage sideways: four rows began overflowing
 * horizontally instead. `min-width: 0` is what lets the title give up space,
 * and it has to sit on the CHILD, not on the row.
 *
 * The controls are the last child on every one of these rows, so pinning the
 * last child right is ONE rule rather than 28 template edits. The 28 row
 * templates are all different literals and are deliberately left alone. */
.rowflex {
  flex-wrap: nowrap;
}
.rowflex > * {
  min-width: 0;
}
.rowflex > *:last-child {
  margin-left: auto;
  flex: none;
}

/* ── THE BADGE, AND WHY IT IS ONE RULE ────────────────────────────────────────
 *
 * Reported as a flag badge overflowing its card, and it was never one badge:
 * the template carries 91 elements with the pill radius, 82 of them real
 * badges, and NOT ONE had an overflow guard of any kind. Eleven set
 * white-space: nowrap, which without a max-width makes it WORSE: the text
 * refuses to wrap and the badge grows straight out of its container.
 *
 * ⭐ One rule rather than 82 template edits, the same reasoning as .rowflex
 * above. A badge that cannot shrink is the default in flex and grid both, so
 * min-width: 0 is the half that actually does the work; max-width: 100% is
 * what stops it leaving the parent when nothing else can give.
 *
 * ⚠️ text-overflow needs its own container to be a block-ish box with hidden
 * overflow, and most of these badges are inline-flex with an icon beside the
 * words. So the ellipsis is put on the CHILDREN too, where the words actually
 * live, and the container only promises not to escape. */
.badge {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.badge > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* An icon inside a badge is never the thing to shrink: it is 11 or 12 pixels
   and squeezing it to nothing loses the only non-text signal the badge has. */
.badge > svg {
  flex: none;
  overflow: visible;
}

/* ── THE MESSAGE LIST, AND WHY IT COULD NOT SCROLL ──────────────────────────
 *
 * ⚠️⚠️ `justify-content: flex-end` WITH `overflow-y: auto` MAKES THE TOP OF THE
 * CONTENT UNREACHABLE. It is the obvious way to pin a short conversation to the
 * bottom of its panel and it does that correctly, but once the messages are
 * taller than the box the overflow goes off the BLOCK-START edge, and overflow
 * in that direction cannot be scrolled to. Measured on the running board before
 * this rule existed: forty messages totalling 3,449px inside a 332px container
 * reporting scrollHeight 332. Not "the history is not loaded" — the history was
 * loaded, rendered, and walled off.
 *
 * ⭐ `margin-top: auto` ON THE FIRST CHILD DOES THE SAME JOB AND SCROLLS. The
 * auto margin absorbs the spare space when there is any, so a two-message room
 * still sits at the bottom, and when the content outgrows the box there is no
 * spare space, the margin collapses to nothing, and the container overflows
 * downward like an ordinary scroller.
 *
 * ⚠️ It is a RULE rather than an inline style because the first child is drawn
 * by an sc-for and there is no element to hang it on. */
.chatscroll {
  justify-content: flex-start;
}
.chatscroll > *:first-child {
  margin-top: auto;
}

/* ── chat composer: the WYSIWYG contenteditable (#2141) ──────────────────────
 * The box shows formatting live and serialises to markdown on input (chatmd.js).
 * It is a contenteditable, not a textarea, so its rules live here rather than
 * inline: a placeholder needs a pseudo-element, and the fused toolbar + link
 * popover need classes. Both chat surfaces (page and dock) share these. */
.chatcompose {
  overflow-y: auto;
  outline: none;
  word-break: break-word;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.chatcompose[data-empty]:before {
  content: attr(data-ph);
  color: #6a6a6a;
  pointer-events: none;
}
.chatcompose::-webkit-scrollbar {
  width: 8px;
}
.chatcompose::-webkit-scrollbar-track {
  background: transparent;
}
.chatcompose::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border: 2px solid #141414;
  border-radius: 999px;
}
.chatcompose b,
.chatcompose strong {
  font-weight: 700;
}
.chatcompose code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}
.chatcompose pre {
  margin: 4px 0;
  background: #0d0d0d;
  border: 1px solid #242424;
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.chatcompose blockquote {
  margin: 4px 0;
  padding-left: 9px;
  border-left: 2px solid #3a3a3a;
  color: #b4b4b4;
}
.chatcompose ul,
.chatcompose ol {
  margin: 4px 0;
  padding-left: 22px;
}
.chatcompose a {
  color: #8fb3ff;
}

/* ── #2141: rendered markdown INSIDE A SENT BUBBLE (.chat-md) ─────────────────
 * The composer styles above are the input; these are the message once it is
 * sent, on all three surfaces (page, dock, thread) since every bubble renders
 * through mdChatNode. Colours are chosen to read on BOTH bubble colours (a dark
 * "theirs" bubble and the orange "mine" one) without knowing which is which:
 * links inherit the bubble's own text colour and underline, and code/quote use
 * translucent panels that sit correctly on either background. */
/* #2157: a link in a sent bubble has to READ as a link on both bubble colours
 * (the bright orange "mine" and the dark "theirs"), so native blue is wrong on
 * one of them. It inherits the bubble's text colour but is set apart by a
 * heavier weight and a clear offset underline drawn in a slightly translucent
 * currentColor, which lands legibly on either ground without a second hue. */
.chat-md a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
  text-underline-offset: 2.5px;
}
.chat-md a:hover {
  text-decoration-color: currentColor;
}
.chat-md code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86em;
  background: rgba(127, 127, 127, 0.22);
  padding: 1px 5px;
  border-radius: 4px;
}
.chat-md pre {
  margin: 5px 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
}
.chat-md pre code {
  background: none;
  padding: 0;
  font-size: 11px;
}
.chat-md blockquote {
  margin: 5px 0;
  padding: 2px 0 2px 9px;
  border-left: 2px solid currentColor;
  opacity: 0.85;
}
.chat-md ul,
.chat-md ol {
  margin: 4px 0;
  padding-left: 22px;
}
.chat-md p {
  margin: 0 0 4px;
}
.chat-md p:last-child {
  margin-bottom: 0;
}
/* #2188 a long chat message collapses to an expandable artifact, so a wall of
 * pasted text or code does not fill the room. Colours inherit the bubble like
 * .chat-md, so it reads on both the orange "mine" and the dark "theirs". */
.chat-artifact {
  display: block;
}
.chat-artifact .chat-artifact-body {
  display: block;
  max-height: 216px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.chat-artifact.open .chat-artifact-body {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.chat-artifact-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2.5px;
}
.chat-artifact-toggle:hover {
  opacity: 1;
}

/* #2167: an inline deeplink card. A to-do or issue reference written in a
 * message (WK-01:PJ-02:TD-01) renders as this compact card, which resolves its
 * title and, clicked, jumps to the item and flashes it. A left stripe carries
 * the kind (orange for a to-do, soft red for an issue) so it reads at a glance
 * without a filled background fighting the bubble. */
.chat-ref-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: baseline;
  max-width: 320px;
  margin: 1px 0;
  padding: 3px 9px 3px 8px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #6a6a6a;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.92em;
  line-height: 1.3;
  color: #e2e2e2;
}
.chat-ref-card:hover {
  border-color: #3a3a3a;
  background: #181818;
}
.chat-ref-card:focus-visible {
  outline: 2px solid #ff8a00;
  outline-offset: 1px;
}
.chat-ref-card[data-kind="todo"] {
  border-left-color: #ff8a00;
}
.chat-ref-card[data-kind="issue"] {
  border-left-color: #ff8f8f;
}
.chat-ref-card[data-kind="message"] {
  border-left-color: #8fb3ff;
}
/* #2178 a note reference card, in the Knowledge accent so a NT- card reads as a
 * different kind of thing from a to-do (orange) or an issue (red). */
.chat-ref-card[data-kind="note"] {
  border-left-color: #5fd0c4;
}
/* #2167: brief flash on a message you jumped to from a message-link card. */
@keyframes chatMsgFlash {
  0% {
    background: rgba(255, 138, 0, 0.22);
  }
  100% {
    background: transparent;
  }
}
[data-flash="1"] {
  animation: chatMsgFlash 1.8s ease-out;
  border-radius: 8px;
}
.chat-ref-card.loading {
  color: #9a9a9a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86em;
}
.chat-ref-card .crc-kind {
  flex: none;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #949494;
}
.chat-ref-card .crc-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.chat-ref-card .crc-status {
  flex: none;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.chat-ref-card .crc-open {
  color: #ffce8a;
  background: rgba(255, 138, 0, 0.14);
}
.chat-ref-card .crc-done,
.chat-ref-card .crc-closed,
.chat-ref-card .crc-resolved {
  color: #8fe0b0;
  background: rgba(62, 207, 142, 0.14);
}

/* the markdown toolbar button, lit when the caret is inside that formatting */
.chat-fmt.active {
  color: #ffb45c !important;
  background: #2a1c0a !important;
  border-color: #5a3d17 !important;
}

/* the custom link popover (Slack-style), anchored inside the composer shell */
.chat-linkpop {
  position: absolute;
  left: 12px;
  bottom: 58px;
  z-index: 20;
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #161616;
  border: 1px solid #2e2e2e;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.chat-linkpop[hidden] {
  display: none;
}
.chat-linkpop .lp-ttl {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #949494;
  font-weight: 700;
}
.chat-linkpop input {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: 12px;
  color: #ececec;
  background: #101010;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}
.chat-linkpop input:focus {
  border-color: #3a3a3a;
}
.chat-linkpop .lp-row {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 2px;
}
.chat-linkpop .lp-apply {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #140a00;
  background: #ff8a00;
  border: 1px solid #ff8a00;
  border-radius: 7px;
  padding: 6px 13px;
  cursor: pointer;
}
.chat-linkpop .lp-apply:disabled {
  background: #1c1c1c;
  border-color: #262626;
  color: #4a4a4a;
  cursor: default;
}
.chat-linkpop .lp-cancel {
  font: inherit;
  font-size: 11.5px;
  color: #adadad;
  background: #171717;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
  padding: 6px 13px;
  cursor: pointer;
}

/* the fused input shell: one bordered box holding toolbar + editor + bottom bar */
.chat-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 11px;
  overflow: hidden;
}
/* #2157: focus lands on the whole fused shell as ONE clean on-brand border.
 * The contenteditable fills the shell, so the accessibility focus ring (a 2px
 * offset outline, default on) drew a rectangle INSIDE the shell that ran
 * parallel to the toolbar divider and the bottom bar: it read as stray lines.
 * The shell border below is the focus indicator instead, so the inner editor's
 * own ring is suppressed (the container still shows focus clearly). */
.chat-shell:focus-within {
  border-color: #ff8a00;
}
.chat-shell .chatcompose:focus,
html[data-focus-ring] .chat-shell .chatcompose:focus-visible {
  outline: none;
}
.chat-shell .chat-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px 9px;
  border-bottom: 1px solid #202020;
  background: #171717;
}
.chat-shell .chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
}

/* #2151: read receipts. The ticks sit under a sent message; hovering them opens
 * a small popover naming who read it (each name in that person's chat colour)
 * and when. CSS-only hover, so it needs no state. */
.chat-ticks {
  display: inline-flex;
}
.chat-receipt-pop {
  display: none;
  position: absolute;
  bottom: 18px;
  right: 0;
  z-index: 40;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  max-width: 240px;
  padding: 6px 9px;
  background: #1c1c1c;
  border: 1px solid #383838;
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}
.chat-ticks:hover .chat-receipt-pop {
  display: flex;
}
.chat-receipt-pop .crp-head {
  font-size: 10.5px;
  color: #949494;
}
.chat-receipt-pop .crp-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 10.5px;
  color: #cfcfcf;
  white-space: nowrap;
}
.chat-receipt-pop .crp-row b {
  font-weight: 600;
}
.chat-receipt-pop .crp-when {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #818181;
}

/* ── #2143 menu overlay redesign ─────────────────────────────────────────────
 * Hero entry cards for Home and Dashboard, grouped rows with a one-line purpose
 * and a per-group accent (the --acc CSS var set inline from the view model), a
 * current-view marker and hover polish. The board name in the User space header
 * is brand orange. */
.menu-group {
  --acc: #8a8a8a;
}
.menu-sectitle {
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #949494;
  font-weight: 700;
  margin-bottom: 10px;
}
.menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
}
.menu-brand {
  margin-left: 8px;
  color: #ff8a00;
}
.menu-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.menu-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
  background: #171717;
  border: 1px solid #232323;
  border-radius: 11px;
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s,
    transform 0.12s;
}
.menu-hero:hover {
  background: #1e1e1e;
  border-color: var(--acc);
  transform: translateY(-1px);
}
.menu-hero .menu-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--acc);
  background: rgba(255, 255, 255, 0.06); /* fallback for no color-mix */
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid #2e2e2e; /* fallback */
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}
.menu-hero .menu-nm {
  font-size: 15px;
  font-weight: 700;
  color: #f4f4f4;
}
.menu-hero .menu-ds {
  font-size: 11.5px;
  color: #9a9a9a;
  line-height: 1.45;
}

.menu-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px 10px 13px;
  background: #171717;
  border: 1px solid #232323;
  border-radius: 9px;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.menu-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s;
}
.menu-row:hover {
  background: #1e1e1e;
  border-color: var(--acc);
}
.menu-row:hover::before,
.menu-row.current::before {
  transform: scaleX(1);
}
.menu-row .menu-ic {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #202020;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  margin-top: 1px;
  transition:
    background 0.14s,
    color 0.14s;
}
.menu-row:hover .menu-ic,
.menu-row.current .menu-ic {
  background: rgba(255, 255, 255, 0.06); /* fallback */
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  color: var(--acc);
}
.menu-txt {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-nm {
  font-size: 13px;
  font-weight: 600;
  color: #ececec;
  display: flex;
  align-items: center;
  gap: 7px;
}
.menu-ds {
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.4;
}
.menu-badge {
  flex: none;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
}
.menu-row.current,
.menu-hero.current {
  border-color: var(--acc);
  background: #191919; /* fallback */
  background: color-mix(in srgb, var(--acc) 8%, #171717);
}
.menu-cur {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  flex: none;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); /* fallback */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent);
}
.menu-row .menu-cur {
  margin-left: auto;
  margin-top: 6px;
}
.menu-hero .menu-cur {
  position: absolute;
  top: 14px;
  right: 14px;
}
