/* ============================================================
   Lunicle — content styles inside the lunula shell.

   Every colour routes through the toolkit's flat `--t-<token>`
   palette (painted on :root by the shell's applyTheme on every
   theme change), so the board, the issue windows and the modals
   follow whichever theme the user picks — Lunamux Dark by
   default — in both appearances. The fallbacks are the original
   hand-written "Lunamux Dark" values, so the content is legible
   for the beat before the shell's first paint.

   NOTE: the --green* custom-property names are historical, kept
   from the pre-toolkit stylesheet (in step with lunamux-web) —
   they hold "primary/accent/dim text", not green.
   ============================================================ */

:root {
  --bg:        var(--t-bg, #04090f);          /* ground */
  /* NOTE on tokens: a lunamux pane's INTERIOR is painted in --t-surface
     (white-ish under Lemonade, raised navy under the dark themes) against
     --t-bg/--t-canvas chrome. Window interiors here (board, issue) use
     --panel for that reason, with --bg supplying the quieter tone for the
     columns sitting on them. Measured, not assumed: under Lemonade,
     --t-canvas equals --t-bg (the soft yellow) and --t-surface is the
     near-white — the reverse of what the names suggest. */
  --panel:     var(--t-surface, #070f1a);     /* surface — window interiors */
  --panel-2:   var(--t-surface-alt, #0b1626); /* raised surface */
  --green:     var(--t-text, #4dc8f5);        /* primary text */
  --green-hi:  var(--t-accent, #66d9ff);      /* bright accent */
  --green-dim: var(--t-text-dim, #5f7590);    /* secondary / comments */
  --border:    var(--t-border, rgba(77, 200, 245, .20));
  --border-hi: var(--t-accent-soft, rgba(77, 200, 245, .45));
  --glow:      var(--t-glow, rgba(77, 200, 245, .35));
  --red:       var(--t-danger, #ff5f57);
  --yellow:    var(--t-warn, #febc2e);        /* validation */
  --ok:        var(--t-add, #4dd6c0);         /* positive / "has this" */
  --head:      var(--t-text-bright, #eaf3fb); /* headings and field text */
  --body:      var(--t-text, #cfe0ee);        /* running text */
  /* The role-split halves of the four signal colours (toolkit's `…On` /
     `…Text` tokens). A colour used as a FIELD and the same colour used as
     TYPE have opposite requirements, and until the toolkit split them a
     single token had to satisfy both — which is how a palette ends up
     pre-darkened everywhere to survive its worst context.

       --*-on   → type that sits ON a fill of that colour.
       --*-text → that colour rendered AS type on an ordinary surface.

     Each falls back to the undivided token, so a theme that hasn't declared
     the pair renders exactly as it did before. */
  --yellow-on:   var(--t-warn-on, #1a1400);
  --yellow-text: var(--t-warn-text, var(--t-warn, #febc2e));
  --red-text:    var(--t-danger-text, var(--t-danger, #ff5f57));
  --ok-text:     var(--t-add-text, var(--t-add, #4dd6c0));
  --accent-on:   var(--t-accent-on, #000000);
  /* The accent as TYPE. `--green-hi` is the accent's fill value — right for a
     rail, a drop-target wash or a focus ring, and wrong for 11px text: under a
     light brand theme whose accent is a bright amber, accent-on-pale lands
     around 1.9:1. Anything that renders the accent as glyphs reads this
     instead. Falls back to `--green-hi`, so a theme that hasn't declared the
     pair keeps exactly the colour it had. */
  --green-hi-text: var(--t-accent-text, var(--t-accent, #66d9ff));

  /* ── The CHROME zone ─────────────────────────────────────────────
     Everything above maps the toolkit's CONTENT tokens, which is correct for
     the board and the issue windows: those live inside a pane, and a pane's
     interior is the content zone.

     Lunicle's top strip does not live there. It is chrome — the same band
     that carries the tab strip in Lunamux — and the toolkit gives chrome its
     own tokens precisely because a theme may paint the two zones
     differently. Reading `--t-accent` up there was not a shade being
     slightly off; it was the wrong zone, and it went unnoticed only because
     every theme so far kept the two accents identical.

     Framna is the theme that exposed it: its chrome accent is signal green
     and its content accent is amber. So the same top strip came out green in
     Lunamux (a tab strip, correctly on chrome tokens) and amber in Lunicle —
     one bar, two colours, across two apps sharing one theme.

     Each falls back to its content counterpart, so a theme that does not
     split its zones renders exactly as it did before. */
  --chrome-accent:      var(--t-chrome-accent, var(--t-accent, #66d9ff));
  /* The chrome accent AS TYPE — glyphs and labels, where the fill value is
     chosen for a field and can be far too light to read. The same role split
     as `--green-hi-text` above. */
  --chrome-accent-text: var(--t-chrome-accent-text, var(--chrome-accent));
  --chrome-text:        var(--t-chrome-text, var(--t-text, #cfe0ee));
  --chrome-text-dim:    var(--t-chrome-text-dim, var(--t-text-dim, #5f7590));
  --chrome-head:        var(--t-chrome-text-bright, var(--t-text-bright, #eaf3fb));
  --chrome-track:       var(--t-chrome-track, var(--t-surface-alt, #0b1626));
  --chrome-border:      var(--t-chrome-border, var(--t-border, rgba(77, 200, 245, .20)));

  /* The two CONTENT font faces, wired to lunula's per-surface content tokens
     (LNL-118). lunula paints `--dt-font-mono` / `--dt-font-prop` on
     documentElement when a user picks a Monospaced / Proportional (main-content)
     font in the Appearance panel, or when a deployment brand defaults one; those
     tokens are otherwise UNSET, so each `var()` here falls through to a stack
     named in full below.

       --mono  → code / fixed-width surfaces (`code`, `pre`, ticket numbers,
                 copyable server URLs) — anything alignment-sensitive.
       --prose → running content (issue titles, card text, dialog copy, fields,
                 the rendered description). This is the `body` default below, so
                 every content element inherits it unless it opts back into
                 `--mono`.

     `--prose`'s fallback is PROPORTIONAL, and it is not a taste of ours: it is
     the toolkit's own `.dt-pane-content` stack spelled out. Since LNL-160 every
     Lunicle surface is a pane, and `.dt-pane-content` paints
     `var(--dt-font-prop, <that sans stack>)` over whatever `body` carries — so
     on an unbranded instance the app's content face has BEEN that sans stack
     ever since, and the monospace this used to fall through to (the terminal
     look Lunicle was born with) survived only where a pane's cascade could not
     reach: the surfaces mounted on `<body>`. Those are the value pickers
     (`.lunicle-dropdown-menu`) and the @-mention / ticket menus, and they came
     out fixed-width beside the proportional field that opened them — LNL-176.
     Naming the toolkit's stack here is what makes a menu and the pane behind it
     agree. A brand or an Appearance pick still wins outright, through the
     `--dt-font-prop` both this and `.dt-pane-content` read first. */
  --mono:  var(--dt-font-mono, ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace);
  --prose: var(--dt-font-prop, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Transparent rather than painted: inside the lunamux.dev iframe the
     surrounding page's background shows through, so the embed has no seam.
     Opened directly, the html background below supplies the ground. */
  background: transparent;
  color: var(--green);
  /* Prose is the content default; code/fixed-width surfaces opt back into
     `--mono` (see the `code, pre` rule below and .sprint-plan-key/.copy-value).
     What this actually decides is the surfaces mounted on `<body>` — the value
     pickers, the mention menus — because everything else is inside a pane, and
     `.dt-pane-content` paints the same face over them from the same token. */
  font-family: var(--prose);
  /* Reads the toolkit's prose-size var so an Appearance pick — or a
     deployment brand's `defaultProseFontSizePx` — actually reaches the
     content. The 15px fallback is the size Lunicle always shipped, so an
     unbranded, un-overridden instance is unchanged. Without this the family
     was themeable but the size was not, and a brand that asked for larger
     type got the same 15px. */
  font-size: var(--dt-font-prop-size, 15px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html { background: var(--bg); }

/* Code and other fixed-width surfaces opt back out of the prose default (LNL-118).
   `body` sets `--prose`, which every element inherits; these semantic elements —
   inline code and code fences in a rendered description, the delete-confirm phrase
   echo (a bare <code>, see Modal.kt), keyboard/sample runs — are alignment- or
   glyph-sensitive and must track the Monospaced (main-content) font instead, so a
   brand that lifts prose to a proportional face leaves them monospaced — as does
   the unbranded default, now that `--prose` falls through to the toolkit's
   proportional stack. Class-based mono surfaces (.sprint-plan-key, .copy-value)
   name `--mono` directly and are unaffected. */
code, pre, kbd, samp { font-family: var(--mono); }

/* ============================================================
   Scrollbars

   Painted from the palette rather than left to the browser. A native
   scrollbar takes its colour from `color-scheme`, which the shell's
   applyTheme sets from the *appearance* (Auto/Dark/Light) — not from the
   lightness of the palette on screen (see isDarkActive). Lunicle seeds
   appearance to Dark (main.kt), so a light theme like Lemonade paints a
   near-black track across the bottom of the board: light palette, dark
   scrollbar. Driving them off --t-* instead keeps them with whatever is
   actually on screen, whichever way that mismatch falls.

   Both spellings, and they are not redundant: scrollbar-color is the
   standard one (Firefox, Chrome 121+), ::-webkit-scrollbar is what Safari
   still needs. Neither the toolkit nor this stylesheet styled scrollbars
   before, so this fills a gap rather than overriding anything — which is
   also why it is unscoped: the shell's own scrolling chrome has the same
   problem, and a thumb that changed colour at the pane border would be
   worse than either tone alone.

   --green-dim (text-dim) for the thumb, not --border-hi: the border tokens
   are translucent by design and a .45-alpha thumb reads as a smudge. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--green-dim) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
/* Inset via a transparent border rather than a smaller thumb: background-clip
   keeps the fill off the border box, so the thumb has breathing room without
   the track having to be painted to supply it. */
::-webkit-scrollbar-thumb {
  background: var(--green-dim);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green); }
::-webkit-scrollbar-corner { background: transparent; }

/* ============================================================
   Windows — Lunicle's content inside the lunula shell.

   The old page shell (layout grid, top bar, sticky footer) is
   gone: the toolkit owns the app frame, the top bar and the
   bottom bar now. What is left to lay out is the INSIDE of two
   window kinds — the board pane and the issue panes — plus the
   bits Lunicle contributes to the toolkit's chrome slots.
   ============================================================ */

/* The board window's content: switcher row on top, board taking
   the rest, scrolling in both directions inside the pane. */
.board-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  min-width: 0;
  /* The surface tone — what a lunamux pane's interior is painted in
     (white-ish under Lemonade, raised navy under the dark themes). Without
     this the board interior kept the window-chrome tone and the columns
     supplied the surface one — the same two colours, inverted, which read
     as off against every lunamux pane. See the :root token note. */
  background: var(--dt-window-bg, var(--panel));
}

/* The board's toolbar: one row under the pane header (LNL-160).

   It went up into the pane titlebar for a while and came straight back down. The
   header is a filled field when the pane is focused — `accent` + `accentOn` — and
   nothing may be filled inside a filled field: a tinted pill on an accent band is
   a material no theme declares, and no token pairs an accent with a lighter one.
   The controls were also taller than the band, so it stopped reading as a title
   bar at all.

   So the header is identity and pane controls, exactly as the toolkit paints it
   everywhere else, and everything the board needs lives one row down. Two scopes
   share that row and the GAP is what separates them — no box, no divider:

     board scope, leading   — the filter and the sprint picker. They change what
                              THIS pane shows.
     project scope, trailing — analytics and settings. They open something new.
*/
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 46px;
  padding-bottom: 12px;
  /* Named as a container so the two project entries can shed their labels when
     the PANE is narrow rather than when the window is — a board sharing a tab
     with two others is narrow at any window size, which a media query cannot
     see. See the query at the end of this block. */
  container-type: inline-size;
  container-name: board-pane;
}

/* The filter, with its magnifier inside it. A quiet `surfaceAlt` field: the
   board behind it is `bg` with `surfaceAlt` cards, so a field in the same tone
   as a card reads as a recess in the same material rather than as a new one. */
.board-filter-box {
  flex: 0 1 320px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid transparent;
  color: var(--green-dim);
}
.board-filter-box:focus-within {
  border-color: var(--border-hi);
}
.board-filter-box > .icon { width: 14px; height: 14px; flex: 0 0 auto; }

/* The input itself carries no chrome — the box around it is the field. */
.board-toolbar .board-filter {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  color: var(--head);
}
.board-toolbar .board-filter:focus { outline: none; box-shadow: none; }

/* The sprint scope, outlined rather than filled — it is the one control here
   that is a CHOICE with a current value, and the hairline says "there is a list
   behind this" where the filter's fill says "type into me". That reading is the
   toolkit's `.dt-menu-trigger` now, at the same 30px and 8px radius the filter
   box beside it uses, so all this has left to say is how wide it may get.
   Absent entirely on a board with no sprints; see BoardWindow.render. */
.board-toolbar .picker {
  max-width: 200px;
}

/* The two project entries, at the trailing edge. The gap between this group and
   the controls to its left is the only thing dividing the two scopes. */
.board-toolbar-project {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

/* One entry: icon, label, and the mark that says it opens a pane.
   No fill and no outline at rest — they are entries in a row, not buttons on a
   toolbar, and two more outlined boxes beside the picker would make the row read
   as four controls of equal weight when only two of them are about this view. */
.board-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--green-dim);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.board-tool-btn:hover { background: var(--panel-2); color: var(--head); }
.board-tool-btn > .icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* The new-window mark. Quiet on purpose: it is a hint about what the click does,
   not a second icon competing with the first — and it is the ONLY thing telling
   these two apart from the board controls beside them, so it is not optional. */
.board-tool-open {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: .42;
}

/* Narrow pane: the labels go and the entries become squares.

   Order of sacrifice, and it is deliberate: the grouping/scope picker goes
   first, then the two labels. The filter never collapses — it is the control
   people actually use, and a magnifier that has to be clicked before it can be
   typed into is a filter with a step in front of it. */
@container board-pane (max-width: 520px) {
  .board-tool-btn { padding: 0; width: 30px; justify-content: center; gap: 0; }
  .board-tool-label { display: none; }
  /* Two classes: `.icon` sets `display: inline-flex` and is declared further
     down this file, so a one-class selector here loses on source order and the
     mark stayed on beside the bare glyph. */
  .board-tool-btn > .board-tool-open { display: none; }
  .board-toolbar .picker { display: none !important; }
}

/* The frame a project surface gets when it is a PANE rather than a modal — a
   body and a footer, and nothing else (see PaneShell). The pane chrome around it
   already draws the border and carries the title and the ×. */
.pane-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pane-shell-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
/* The footer keeps the modal's button row but loses its top border: inside a
   pane the row already sits against the pane's own bottom edge. */
.pane-shell-footer { flex: none; }

.settings-pane-host,
.analytics-pane-host {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--dt-window-bg, var(--panel));
}

/* The settings pane's top gap, which was being paid twice: the host above pads
   14px and `.modal-body` (inherited from the modal these views were born as)
   pads another 12 inside it. 26px of nothing between the pane's own title bar
   and the tab strip read as the strip having come loose from the pane rather
   than belonging to it. The bar above is already a hard divider — the strip
   needs separating from it, not floating below it. Scoped to this pane: the
   analytics pane has no fixed band under its title and wants its air. */
.settings-pane-host { padding-top: 8px; }
.settings-pane-host > .pane-shell > .pane-shell-body { padding-top: 0; }

.board-pane .board {
  flex: 1;
  min-height: 0;
  /* The board scrolls sideways only; the vertical scroll belongs to each lane
     (.column-list below). Scrolling the whole board vertically carried the
     column heads off the top with the cards, so a long column left you reading
     nameless lists — the heads have to stay put while their own cards move. */
  overflow-x: auto;
  overflow-y: hidden;
}

/* An issue window's content: the body bands take the slack, the
   footer buttons stay pinned at the bottom of the pane. */
.issue-window-host { height: 100%; }

.issue-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  min-width: 0;
  /* Surface interior, same reasoning as .board-pane: an issue window is a
     document being read, and documents live on the content surface. */
  background: var(--dt-window-bg, var(--panel));
}

/* The body reuses the modal-large band layout (.modal-body /
   .issue-fields / .issue-scroll / .editor-host below) — the
   issue window IS the old issue dialog, re-housed.

   With one deliberate difference: here the body itself is the scroll region,
   so the identity band scrolls away with everything else. In the dialog that
   band is pinned (see .issue-fields), which was right for a dialog sized to
   the viewport but wrong for a pane the user can make short: a tall header —
   byline, watchers, four field cells, two chip rows — could claim the whole
   pane, leaving the description nothing to scroll in and no way to reach it. */
.issue-window .modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* The scrollbar's gutter, moved up here from .issue-scroll along with the
     scrolling itself. */
  padding-right: 14px;
}

/* The reading face is no longer a scroll region of its own — it just flows in
   the body's, under the fields. */
.issue-window .issue-scroll {
  flex: none;
  overflow-y: visible;
  padding-right: 0;
}

/* The editor still takes the pane's slack, but it no longer shrinks without
   limit: below this the body overflows and the fields above scroll away
   instead, which is the whole point. Deliberately overrides the `min-height: 0`
   that the shared rule sets for the dialog. */
.issue-window .modal-body.editing .editor-host {
  min-height: 280px;
}

/* The loading state (LNL-135): shown in place of the whole body until the first
   fetch returns, so the window never flashes the default-empty read face — a
   byline reading "A deleted account", a title reading "Untitled" — for the
   second the round-trip takes. Toggled from IssueWindow.render; hidden here by
   default so it never shows on a loaded window. */
.issue-loading {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.issue-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* Track in a faded ink, the top arc in full ink, so the rotation reads. Uses
     the theme's own text colour rather than a fixed grey — legible in light and
     dark alike. */
  border: 3px solid color-mix(in srgb, currentColor 22%, transparent);
  border-top-color: currentColor;
  box-sizing: border-box;
  animation: lnl-spin 0.8s linear infinite;
}

@keyframes lnl-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .issue-spinner { animation-duration: 1.6s; }
}

.issue-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* The bar's padding, rebalanced around the maximised board. The pane's
   border sits 12px in from the frame edge (4px maximised-pane inset + the
   8px frame pad), and that 12 is the measure the bar's content has to
   agree with on every side: the same 12 above the text (the inset and the
   frame pad supply it — the bar adds nothing on top), 12 below it, and 12
   from the left edge to the brand icon so the brand lines up with the
   pane's border rather than floating at its own indent. The toolkit's own
   2px/16px is tuned for a bar inside busier chrome; here the bar borders
   the pane directly and the pane sets the grid.

   Doubled ancestor selector for the same reason as .dt-modal-backdrop
   below: the toolkit's sheet is injected after this one, so a bare
   .dt-bottombar here would lose the tie. */
.dt-app-frame-bottombar .dt-bottombar {
  padding: 0 12px 12px;
}

/* The "+" menu's rows, back in the chrome's proportional face.
   The toolkit gives .dt-hover-menu-item `font: inherit` and mounts the menu
   on the body, so Lunicle's mono body font — meant for the CONTENT, the board
   and the issue windows — leaked into it, and "New issue"/"New project" came
   out fixed-width while every other piece of chrome (sidebar, top bar,
   tooltips) stayed proportional. Naming the family here on the menu box, not
   the item, is enough: `font: inherit` then picks it up. Same fallback stack
   the toolkit's own sidebar rule carries, so a theme that sets
   --dt-font-sidebar still wins and the menu matches the sidebar either way.

   Scoped to the CHROME zone, which is the toolkit's marker for a menu raised
   from the top bar. Unscoped it also caught this app's own value dropdowns —
   the board's statuses and sprints, which are content — and rendered a
   project's vocabulary in the sidebar's face. See `.lunicle-dropdown-menu`. */
.dt-hover-menu.dt-menu-chrome,
/* Every `.dt-pane-menu` in this app is the toolkit's own — the theme manager's
   category filter, the pane kebabs — and all of them are chrome, so they take
   the chrome face for the reason above with no zone test to make. Named as a
   CHILD OF BODY, which is where the toolkit mounts it, purely to outrank the
   toolkit's own `font-family: inherit`: that rule is injected as an inline
   <style> at runtime and lands after this file, so a lone `.dt-pane-menu`
   would tie on specificity and lose on order. */
body > .dt-pane-menu {
  font-family: var(--dt-font-sidebar, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif);
}

/* The "Restore default layout" block in the settings pane's You tab (LNL-160). A clear
   step down from the e-mail field's hint above it, so the three things this tab
   holds — name, address, layout — read as three and not as one run-on column. */
.profile-layout-section { margin-top: 22px; }

/* Hints used as prose, in the settings pane's You tab (LNL-185).

   `.field-hint` is a caption on the control ABOVE it — `margin: 6px 0 0`, no
   bottom margin — which is right everywhere it is the last thing in its group.
   Twice in this tab it is not: a hint is a whole sentence of prose and the next
   thing is a button ("Restore default layout" under the layout blurb, "Cancel
   this change" under the code hint), and with no gap at all the button read as
   glued to the paragraph explaining it.

   Same shape and same 22px as `.admin-general .field-hint` further down — a
   container-scoped bottom margin with a `:last-child` reset — because it is the
   same problem there: a hint that is prose rather than a caption, in a settings
   surface. One idiom and one number, so the next person to hit this is not
   flipping a coin between two. The reset is what keeps the margin honest: the
   display-name group's hint IS the last thing in its group, and stays at 0.

   Scoped to this tab, not global: the sign-in card has the same hint-then-button
   adjacency but lives in a flex column whose `gap` already spaces it, with
   `.signin-code .field-hint` zeroed on purpose — a global bottom margin would
   stack on that gap. And on the hint rather than as `.field-hint + .btn`,
   because `+` keys on strict adjacency: an inline error, a spinner or a wrapper
   slipped between the two would silently take the spacing away again. */
.settings-you-tab .field-hint { margin: 6px 0 22px; }
.settings-you-tab .field-hint:last-child { margin-bottom: 0; }

/* The brand/identity line, at the top of the SIDEBAR (LNL-160).

   It has moved four times and each move was the same argument losing ground: it
   began on a sticky footer, went to the topbar's leading edge, was pushed to the
   bottom bar when the project navigator took that edge (LNL-84), then to the
   topbar's centre slot when the bottom bar went. Every one of those put the
   app's name on a strip that is about *what is open*. The sidebar header is the
   one surface in this chrome that is about the app itself — it is where Lunamux
   keeps its own — so that is where it is now, above the tabs-and-panes tree it
   introduces.

   The toolkit's `.dt-sidebar-header` supplies the padding; this is the row
   inside it. */
.sidebar-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  /* A hairline under it, so the identity reads as a header over the tree rather
     than as the tree's first row. */
  padding-bottom: 10px;
  border-bottom: 1px solid var(--chrome-border);
}

.sidebar-brand-name {
  color: var(--chrome-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  /* The toolkit's sidebar header upper-cases its contents, which is right for the
     section labels beneath it and wrong for a product name: "LUNICLE" reads as
     one more heading over the tree rather than as the thing the tree belongs to. */
  text-transform: none;
}

/* The deployment attribution, on its own line beneath the product name: two
   facts, and stacking them keeps a wide brand wordmark from squeezing the name
   it is meant to sit under. */
.sidebar-brand-host {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand-hosted-by {
  color: var(--chrome-text-dim);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The "Open full site" link shown in the sidebar's brand line when the tracker is
   embedded in another site (see main.kt's fullSiteLink). Rides beside the brand
   line at the same weight, accented so it is obviously the clickable part, and
   set off from the brand by a separator pipe. */
.topbar-full-site-link {
  display: flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--chrome-text);
  text-decoration: none;
}

.topbar-full-site-link::before {
  content: "";
  width: 1px;
  height: 14px;
  margin: 0 8px 0 4px;
  background: var(--chrome-text-dim);
  opacity: .4;
}

.topbar-full-site-link:hover { opacity: .8; }

/* The sign-in/profile corner, now living in the toolkit's
   trailing top-bar slot. */
.topbar-account {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* ── Dropdowns ───────────────────────────────────────────────────────────────

   Both halves now come from the toolkit. The closed control is a
   `.dt-menu-trigger` (lunula's MenuTrigger.kt) in one of its two variants — the
   30px toolbar pill, or the 34px form field — and the open list is a
   `.dt-hover-menu`, which is the same panel the shell's "+" and pane kebabs
   drop. That is the whole point of the redesign: one menu object, wherever it
   was opened from, so a board toolbar and a window titlebar cannot disagree
   about what a menu looks like.

   What used to live here was a private copy of that control, and the copy is
   what dated it. The chevron was a `background-image` data URI, so its colour
   was a literal — a bright cyan matching no token in any theme — and an image
   can neither take `currentColor` nor rotate, so it could not follow the
   palette and could not flip when the list came down. The toolkit draws it as
   an element and both problems stop existing.

   `.dropdown` survives as a marker only. Nothing styles it; it names the
   control in the inspector and gives a future rule something to hang off.

   The open list's width is set inline as a FLOOR — min-width, to the control it
   drops out of (see Dropdown.open) — and is otherwise left to shrink-wrap the
   longest row. The toolkit's own 180px floor is tuned for a topbar icon's menu,
   and a menu narrower than its own button reads as a different control's.

   The marker class the box carries is `lunicle-dropdown-menu`, and the prefix is
   load-bearing: the toolkit has a `.dropdown-menu` of its own whose `right: 0`
   silently stretched every one of these menus across the viewport. See
   Dom.kt's MENU_CLASS and LNL-54. */

/* A value list is CONTENT — these are the project's own statuses, sprints and
   people — so it reads in the content prose face, not the chrome one the "+"
   menu takes above. The two were one rule until the toolkit grew a zone marker
   to tell them apart, and every dropdown in the app was rendering the board's
   vocabulary in the sidebar's font.

   BOTH classes, for the third time in this file: the toolkit's shared menu
   panel carries `font-family: inherit` and is injected as an inline <style> at
   runtime, so it lands AFTER this file and a lone `.lunicle-dropdown-menu` ties
   on specificity and loses on order. This rule was dead for exactly that reason
   — the pickers were inheriting `body` rather than reading `--prose`, which is
   invisible only for as long as the two agree. See the z-index rule below and
   Dom.kt's MENU_CLASS. */
.lunicle-dropdown-menu.dt-hover-menu {
  font-family: var(--prose);
}

/* Above .modal-backdrop (10000), for the reason .mention-menu and the assignee
   menu are: these menus mount on <body> and the toolkit's own .dt-hover-menu
   layer is 1000 — the maximised-pane band — so a dropdown opened from inside a
   dialog painted BEHIND its backdrop. It still drew, because the backdrop is
   translucent, but every click landed on the backdrop, which read as a menu that
   dismisses itself the moment you aim at it. The resolution dialog's
   fixed-version picker was unusable that way: no selecting, no adding, no
   deleting. Found while wiring rename into it (LNL-162).

   10015 rather than 10020: the same band as the assignee menu, and below
   .mention-menu, which belongs to the caret and must win when both are up.

   BOTH classes, and that is load-bearing. The toolkit injects `.dt-hover-menu`
   as an inline <style> at runtime, which lands AFTER this file in document
   order — so a lone `.lunicle-dropdown-menu` ties on specificity and loses on
   order, silently keeping 1000. The box carries both classes, so naming both
   wins outright. Same trap as LNL-54's `right: 0`; see Dom.kt's MENU_CLASS. */
.lunicle-dropdown-menu.dt-hover-menu {
  z-index: 10015;
}

/* The filter row a long list grows (see FILTER_THRESHOLD in Dom.kt). Sits above
   the rows as part of the panel rather than as a field dropped into it: no
   border of its own, one hairline underneath, and the panel's own padding for
   its sides. */
.lunicle-dropdown-filter {
  flex: 0 0 auto;
  height: 30px;
  margin-bottom: 4px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--head);
  font-family: inherit;
  font-size: 12.5px;
}
.lunicle-dropdown-filter:focus { outline: none; border-bottom-color: var(--green-hi); }
.lunicle-dropdown-filter::placeholder { color: var(--green-dim); opacity: 1; }

/* The rows the filter paints. A plain flex column carrying the panel's own 2px
   rhythm, so a filtered list has exactly the spacing an unfiltered one does. */
.lunicle-dropdown-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  /* The rows scroll, not the panel — otherwise the filter field scrolls away
     from the list it filters the moment you reach past the tenth option. */
  overflow-y: auto;
}

/* A row that is shown and cannot be chosen — a permission rung this caller may
   not hand out, listed WITH its reason because the point of the list is that the
   ladder is legible. See Dom.kt's DropdownItem.isEnabled.

   The row also carries the toolkit's `dt-disabled`, which is what actually kills
   the accent fill: lunula writes its hover as `:hover:not(.dt-disabled)`, so the
   suppression happens in the toolkit's own rule rather than in a Lunicle rule
   racing it for specificity — the trap this file hits twice above with
   `.dt-hover-menu`'s runtime <style>. Everything here is the part the toolkit
   cannot know about.

   BOTH classes, for that same reason: `dt-disabled` sets `opacity: 0.4` and
   `pointer-events: none`, and this rule has to beat both.

   Legibility first: 0.4 is right for a menu row whose label is one word, and
   wrong for one carrying a whole sentence explaining a refusal — at that opacity
   the explanation is the least readable text on screen, which defeats showing it.
   0.72 keeps it plainly secondary and plainly readable.

   And the pointer comes back on, deliberately. The fill is already gone via the
   toolkit's selector, so re-enabling hit-testing costs nothing visually and buys
   `not-allowed` under the cursor — the answer arriving on approach rather than
   after a click. Safe because a blocked row has no click handler at all (Dom.kt),
   so there is nothing for the recovered pointer to fire. */
.lunicle-dropdown-rows .dt-hover-menu-item.lunicle-dropdown-row-blocked {
  opacity: 0.72;
  pointer-events: auto;
  cursor: not-allowed;
}

/* The struck circle in the gutter the check would otherwise hold. Dimmer than the
   label it sits beside: the mark is a flag, and the sentence is the message. */
.lunicle-dropdown-rows .dt-hover-menu-item.lunicle-dropdown-row-blocked .dt-hover-menu-icon {
  opacity: 0.8;
}

/* The two remaining icon buttons in the content zone: a board column's ⋮ and
   the lightbox's close X. Both draw a stroked/filled GLYPH, which is why the
   colour below is the accent's TYPE half.

   `--green-hi` is the accent as a FILL — sized for a rail, a wash or a focus
   ring, and free to be as pale as a theme likes because nothing has to read it.
   An SVG at 16px is ink, and it needs the same contrast a caption does: under
   Marmalade the fill is #f5a03c, which is 2.0:1 on the board's white surface,
   so the column ⋮ that replaces the count on hover was there and simply could
   not be seen — the count vanished and nothing legible took its place
   (LNL-173). `--green-hi-text` is the pair's readable half (#96580b there,
   4.9:1) and falls back to `--green-hi` for a theme that declares no split, so
   nothing that was already legible changes. Same trade as `.card-tag-label`. */
.icon-btn {
  font-family: inherit;
  line-height: 1;
  color: var(--green-hi-text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}

.icon-btn:hover { border-color: var(--border-hi); box-shadow: 0 0 12px var(--glow); }

/* (The chrome variant that used to live here — `.topbar-project .icon-btn`,
   putting the project gear and the statistics button on the chrome accent —
   went with the top bar itself when the project surfaces became panes. Both
   remaining wearers of this class sit inside a pane, so the content tokens
   above are the correct zone for all of them.) */

/* ============================================================
   Icons — the hand-drawn SVGs. See Icons.kt.

   The span is what gets sized; the svg fills it. Sizing the svg
   from outside means every caller repeats a width AND a height,
   and one of them eventually gets forgotten.

   `stroke: currentColor` in the markup is the whole trick: an
   icon takes the colour of the button around it, so hover,
   :disabled and the palette all reach it with no rules here.
   ============================================================ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none; /* or a flex parent squashes the icon before it wraps the text */
}

.icon > svg {
  width: 100%;
  height: 100%;
  display: block; /* an inline svg sits on the text baseline and adds descender space */
}

/* 20 in a 36px button. The emoji this replaced was set at font-size 15px and
   drew nothing like 15px — a glyph's ink fills whatever fraction of its em box
   the font decided, which is why the cogwheel read as small in a box that was
   already the right size. A vector has no such gap: 20px of viewBox is 20px of
   drawing. */
.icon-gear { width: 20px; height: 20px; }
/* The statistics bars, sized to the gear it sits beside — the two share a
   toolbar and a 36px .icon-btn, so anything else reads as one of them being
   wrong. The size must be set per icon class: .icon alone does not constrain
   an svg with no width attribute, and an unsized one draws its strokes at
   whatever the layout gives it. */
.icon-chart { width: 20px; height: 20px; }
/* The two figures on "Manage access" (LNL-193), sized to the gear and the chart
   it shares a board toolbar with. Same argument as the note above: three entries
   on one row, and any one of them drawn at a different size reads as a mistake. */
.icon-people { width: 20px; height: 20px; }
/* 16, matching the size .dt-topbar-icon-button forces on every svg it wraps:
   this one sits in the topbar's trailing slot with that whole row of toolkit
   icons, and an icon there is read against its neighbours, not against the
   36px .icon-btn the 20-in-36 note above is about. It is also what keeps
   .account-btn inside .account's 30px row — 16 + 10 padding + 2 border = 28. */
.icon-profile { width: 16px; height: 16px; }
/* The brand mark takes the chrome accent's FILL value, not its text value —
   the one place in the top strip that does. A logo is a graphic, not type: it
   should be the brand's actual colour, and it is the same mark, in the same
   band, as the tab strip Lunamux paints from `--t-chrome-accent`. Using the
   text role here made Lunicle's mark a darker green than Lunamux's under the
   same theme, which is precisely the cross-app inconsistency the chrome zone
   exists to remove. (WCAG exempts logotypes from contrast minima for this
   reason; the UI icons beside it keep the text role, where the floor does
   apply.) */
.icon-logo { width: 18px; height: 18px; color: var(--chrome-accent); }
/* A deployment's brand logo (LNL-110). The built-in .icon-logo above is an 18px
   square because the mark it holds is authored square; a brand SVG is usually a
   wide wordmark, and forcing that into a square letterboxes it to a few pixels
   tall. So size it by HEIGHT and let width follow the art's own aspect ratio
   (overriding the .icon > svg stretch), capped so a very wide mark cannot crowd
   the topbar's centre slot. Taller than .icon-logo's 18px — a wordmark's ink is
   shorter than a solid glyph, so it needs the extra height to read as its equal;
   24px still clears the 30px topbar row. */
.icon-brand-logo { width: auto; height: 24px; max-width: 220px; color: var(--chrome-accent); }
.icon-brand-logo > svg { width: auto; height: 100%; }
/* The brand mark beside "Hosted by" in the sidebar header. Smaller than the
   topbar's old 24px: the sidebar is a narrow column, and a wordmark sized for a
   full-width bar would be the loudest thing in it. */
.sidebar-brand .icon-brand-logo { height: 18px; max-width: 150px; }
/* On the sign-in surface the brand mark is the hero, not a chrome accent, so it
   gets more room than the topbar's 18px. (This selector was an unused hook until
   the brand logo stopped being a fixed square — see SignInPickerDialog.) */
/* Space beneath the mark: `.signin-methods` sets no gap, so without this the
   logo sits right on top of the hint line. A clear step down separates the
   brand from the words below it (LNL-153). */
.signin-brand-logo { height: 40px; max-width: 280px; margin-bottom: 22px; }
/* Sits inside .agent-badge beside 12px text; 13px keeps the drawing level with
   the cap height rather than towering over it. Colour comes from the badge. */
.icon-agent { width: 13px; height: 13px; }

/* ============================================================
   Buttons
   ============================================================ */

/* The centring is load-bearing, not decoration. A button's text centres itself
   only while the button is a *button* box; the moment the views show one with
   `visible(displayValue = "inline-flex")` it becomes a flex container, and a
   flex container ignores text-align and packs its line box at flex-start. With
   .modal-footer's min-width the box is wider than the word, so "OK" sat left of
   centre while "Cancel" — never toggled, so never inline-flex — stayed centred.
   Declaring the flex box here means every .btn is the same box whether or not a
   view has toggled it, and justify-content is what centres a flex line. */
/* The .dt-modal-btn recipe from lunula.css, applied to every Lunicle
   button so a button in an issue window is indistinguishable from one in a
   toolkit dialog: 7px/18px padding, 6px radius, 13px, quiet --t-bg surface
   with a --t-border border. Primary is the toolkit's confirm shape — accent
   fill, bg-coloured label, weight 600, brightness hover. Danger is the
   toolkit's muted `.dt-destructive` treatment — a translucent danger tint
   with danger text/border — rather than the old solid-red border. */
.btn {
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 18px;
  cursor: pointer;
  appearance: none;
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s, filter .12s;
}

/* Hover LIGHTS UP, deliberately beyond the dt recipe's surface swap. The
   resting shape still matches a toolkit dialog's, but --bg → --panel is one
   near-black to a neighbouring near-black and read as a dead button; the
   border and the glow are what the eye actually catches, same treatment the
   lunamux site's buttons use. */
.btn:hover:not(:disabled) {
  background: var(--panel);
  border-color: var(--border-hi);
  box-shadow: 0 0 10px var(--glow);
}
.btn:disabled { opacity: .5; cursor: default; }

.btn-primary {
  background: var(--green-hi);
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-hi);
  border-color: transparent;
  filter: brightness(1.12);
  box-shadow: 0 0 14px var(--glow);
}
.btn-quiet { color: var(--green-dim); background: transparent; }
/* A quiet button rests on whatever surface its dialog painted, so the base
   hover's --panel fill can vanish into it — a translucent accent wash shows
   on every surface, and the dim label brightens with it. */
.btn-quiet:hover:not(:disabled) {
  color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 8%, transparent);
}
.btn-danger {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
}
/* The danger variants restate border and glow in their own colour: without
   this the base hover paints a cyan edge and cyan halo on a red button. */
.btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--red) 26%, transparent);
  border-color: color-mix(in srgb, var(--red) 60%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--red) 30%, transparent);
}
.btn-danger-quiet {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 30%, transparent);
  background: transparent;
}
.btn-danger-quiet:hover:not(:disabled) {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--red) 25%, transparent);
}

/* A button that reads as a link — for per-comment actions, which must be
   available without competing with the dialog's real buttons. */
.link-btn {
  font-family: inherit;
  font-size: 11px;
  color: var(--green-dim);
  background: none;
  border: none;
  padding: 0 6px;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--green-hi); }
.link-btn-danger:hover { color: var(--red); }

/* ============================================================
   Board
   ============================================================ */

.board {
  display: flex;
  /* No gap: the columns are told apart by a hairline down their trailing edge
     (see .column), and a gutter as well would be saying it twice. LNL-160. */
  gap: 0;
  /* `stretch`, not `flex-start`: the columns fill the board's height so each can
     own its own vertical scroll (see .column-list). Left at flex-start every
     column shrank to its cards and the board itself had to scroll. */
  align-items: stretch;
  /* The columns scroll sideways rather than squeezing. The default board is five
     statuses and a project can add more, so the count is not ours to bound —
     and narrowing columns to fit whatever it is makes every card unreadable. */
  overflow-x: auto;
  padding-bottom: 20px;
  flex: 1;
  min-height: 0;
}

/* `flex: 1 1 220px` with a 180px floor — grow to share the width, shrink to fit
   the board on screen, and only scroll once even that is not enough.

   The three parts each do a job, and the middle one is the one worth naming:
     - grow 1: the columns divide whatever width is left between them, so a wide
       monitor gets wide columns rather than a 1100px board and a lake of empty
       space to its right.
     - shrink 1 with min-width: they squeeze, but not past 180px. Without the
       min-width, `flex-shrink` would happily compress eight columns into a
       phone's width and every card would be one word per line.
     - basis 220px: the width they start from, and therefore the width they all
       agree on before any growing happens.

   The floor is 180 and not the 220 it started as, because 220 made a six-column
   board scroll on a window that six columns would have fitted in perfectly well:
   the last lane was cut in half by the pane's edge, and a column you can only
   half see is a column you have to go looking for. Squeezed to 180 the cards are
   tighter — a title runs to three lines where it ran to two — but the whole board
   is on screen, which is the thing the board is for. A status name that no longer
   fits on one line wraps to two and stays bottom-aligned in its head (see
   .column-head), so the rule under every head, and the cards under that, still
   line up across the board however the names break.

   Below the floor .board's `overflow-x: auto` takes over and the board scrolls,
   which is the behaviour that was here before — it is now the fallback rather
   than the norm. */
.column {
  /* A hairline, not a well (LNL-160).

     The board used to stack five hard-coded materials — a tinted column, a card
     surface, a drop shadow, a priority bar and filled label chips — on a theme
     that declares two zones. None of the five was a theme token, which is why
     the board looked identical under every brand: nothing about it was reading
     the theme.

     What is left is the rule the whole surface now follows: app-specific
     surfaces paint in `bg`, `surfaceAlt` and `border` hairlines only. A column
     is a region of the pane, so it has no fill of its own; it is separated from
     the next one by one `border` line down its trailing edge. `inset` rather
     than `border-right` so the line costs no width and cannot shift the
     columns as the last one drops it. */
  background: transparent;
  box-shadow: inset -1px 0 0 var(--border);
  border-radius: 0;
  padding: 2px 10px 13px;
  min-width: 180px;
  flex: 1 1 220px;
  transition: border-color .12s, background .12s;
  /* A column of its own: the head pins, the list (below) takes the slack and
     scrolls. `min-height: 0` lets that list actually shrink below its content
     — without it a flex child refuses to, and the scroll never engages. */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* The drop target, while something is over it. Without this, dragging is
   guesswork — nothing else tells you which column will take the card.

   An accent wash, not a fill: the old #0a1524 was a fixed navy, which is the
   ground tone of exactly one theme. Under Lemonade it dropped a black slab on
   a yellow board. Washing the accent over whatever --bg the column already
   paints tints the column instead of replacing it — same reasoning as
   .btn-quiet:hover. */
.column-drop {
  border-color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 10%, transparent);
}

.column-head {
  display: flex;
  /* Bottom-aligned inside a fixed-height box, so the rule under every head sits
     at the SAME y across the board however long the names are. Left to size
     itself, a column called "Ready for development" wraps to two lines and
     carries its own separator — and its whole stack of cards — a line lower than
     its neighbours', which reads as the board being misaligned rather than as one
     name being long. Two lines' worth is the height; a third wraps and is clipped
     rather than pushing the row out of step again. */
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  box-sizing: content-box;
  /* Exactly two lines of .column-name, which is also what that name is clamped
     to. Fixed rather than min-height so a long name cannot carry its own column
     out of step with its neighbours; two lines rather than one so it is not
     clipped getting there — a head of one line's height bottom-aligned a
     two-line name by hiding its first line, which is how "Ready for
     development" lost the word "Ready". */
  height: 29px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

/* The column's name, in the headline tone rather than the accent.

   On the old outlined column the accent was what separated the head from the
   cards. The well does that now, so the accent here was spending the board's
   one attention colour on six labels that never change — leaving nothing left
   to mark the cards that actually need attention. Weight and letterspacing
   carry the hierarchy instead, which is what they are for. */
.column-name {
  color: var(--head);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
  /* Two lines, then an ellipsis. The head's height is two lines of this, so a
     name that would run to three is truncated rather than pushing the rule under
     it down — the same trade the card titles make. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The column's name, alone at the head's leading edge. */
.column-head-leading {
  display: inline-flex;
  align-items: flex-end;
  min-width: 0;
}

/* A plain number at the far edge, not a filled slug (LNL-160).

   It wore a ring, then a fill, both of which were materials the theme never
   declared — the same five-materials problem the cards had. On a board whose
   only painted surface is the card, a count that is just the number in the
   secondary tone is the honest version of it, and the head's own rule already
   says where the column ends. */
.column-count {
  color: var(--green-dim);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  transition: opacity .12s;
}

/* One slot at the head's trailing edge holding BOTH the count and the ⋮, one
   visible at a time: the count normally, the menu while the column is hovered.

   Stacked rather than laid side by side. Side by side, revealing the ⋮ on hover
   would push the count left — six numbers twitching every time the pointer
   crossed a lane. A grid with both children in the same cell gives the slot the
   width of the wider of the two once and for all, so the swap is a crossfade
   and nothing moves. */
.column-head-trailing {
  display: grid;
  flex: 0 0 auto;
  align-items: center;
  justify-items: end;
}
.column-head-trailing > * { grid-area: 1 / 1; }

/* The ⋮ overflow trigger. A quieter, smaller `.icon-btn`: it lives inside a title
   row, not a toolbar, so the 36px chrome and the panel fill would both shout. No
   border and no background until hover, and — the point of it — no presence at all
   until the column is hovered or the button is focused, so a board nobody is
   customising is exactly the board it was before this feature. Focus keeps it
   reachable by keyboard, where hover cannot help. */
.column-menu {
  width: 22px;
  height: 22px;
  border-color: transparent;
  background: transparent;
  opacity: 0;
  /* Kept in flow (not display:none) so showing it on hover does not reflow the
     head. It shares its grid cell with the count — see .column-head-trailing —
     so `pointer-events` is what keeps the invisible one from swallowing clicks
     meant for the other. */
  pointer-events: none;
  transition: opacity .12s, border-color .12s, box-shadow .12s;
}

.column:hover .column-menu,
.column-menu:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ...and the count steps aside while it does, since they share the slot. */
.column:hover .column-head-trailing > .column-count { opacity: 0; }

.column-menu:hover { border-color: var(--border-hi); box-shadow: 0 0 12px var(--glow); }

.icon-ellipsis { width: 16px; height: 16px; }

/* The rail of collapsed columns, at the board's leading edge (LNL-100).

   A column-direction flex box that WRAPS: the boxes stack top-to-bottom, and when
   a stack reaches the board's height they flow into a second stack to the right,
   and so on. `align-self: stretch` (inherited from .board's align-items) is what
   bounds the height so the wrap has something to wrap against; `flex: 0 0 auto`
   keeps the rail as narrow as its content instead of claiming a lane's share of
   the width the way a real column does. */
.board-hidden-rail {
  display: flex;
  flex-flow: column wrap;
  align-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  align-self: stretch;
}

/* One collapsed column: a narrow button whose title is turned on its side. Just
   the name, turned 90° to read BOTTOM-TO-TOP — see .hidden-column-name. A whole
   click restores the column (see BoardWindow). */
.hidden-column {
  flex: 0 0 auto;
  width: 34px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, background .12s;
}

.hidden-column:hover { border-color: var(--border-hi); box-shadow: 0 0 12px var(--glow); }
.hidden-column:focus-visible { outline: none; border-color: var(--green-hi); box-shadow: 0 0 10px var(--glow); }

/* `writing-mode: vertical-rl` turns the name 90° and — unlike `transform: rotate`
   alone — reserves the vertical space the turned text needs, so the box is exactly
   as tall as its title rather than overlapping its neighbours. The added
   `rotate(180deg)` flips the run to read bottom-to-top (the tilt you make reading
   a book spine on a shelf), rather than vertical-rl's default top-to-bottom. The
   rotate is in-place about the span's centre, so it changes the reading direction
   without disturbing the space the writing-mode already reserved. */
.hidden-column-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--green-hi);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Takes the column's slack and scrolls its own cards, so a long lane moves
   under a head that stays put. `min-height: 0` for the same reason as .column:
   a flex child needs it before `overflow-y: auto` will engage. */
.column-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
  flex: 1;
  overflow-y: auto;
  /* Reserve the scrollbar's channel in every lane, overflowing or not. A lane of
     three cards has no scrollbar of its own, and without `stable` its cards
     would be a scrollbar's width wider than the long lane beside it — the board
     is read across, so cards that do not share one grid read as the columns
     being misaligned rather than as one lane being short.

     (This arrived with LNL-161, where it also stopped the cards jumping as a
     hover-revealed thumb came and went. That behaviour is gone — LNL-187 below
     — but the across-the-board alignment it was doing here is not.) */
  scrollbar-gutter: stable;
  /* LNL-187 — the air on the CARD side of the thumb. The other side already has
     some: .column's own 10px padding-right sits between this element's border
     edge and the hairline that closes the column, so the thumb rests ~11px
     clear of the divider. Inside, it had none, and that is the half of the
     complaint that made hiding the scrollbar look attractive in the first place.

     12px, because the number has to serve two scrollbars that sit in different
     places:

       * OVERLAY (macOS and iPadOS by default, which is what the ticket's
         screenshot shows) — the scrollbar takes no layout width at all, so
         `scrollbar-gutter` above reserves nothing and the thumb is PAINTED OVER
         this element's trailing edge: ~6.5px wide, ~1px in from the border. Left
         to itself it lands on the cards, which is exactly what the screenshot
         shows it doing. 12px of padding pulls the cards ~5px clear of it.
       * CLASSIC (Windows, Linux, and macOS set to "Show scroll bars: Always") —
         the scrollbar has its own 10px of layout width outside the padding box,
         with the thumb inset 2px inside that by the Scrollbars section at the
         top. Here the 12px is added to that 2px, for 14px inside against 12px
         out.

     So the tight case governs, and the roomy one is left a little roomier still.
     Padding rather than a wider ::-webkit-scrollbar or a bigger thumb inset,
     because those two reach only the classic scrollbar in a WebKit engine —
     Chrome ignores them outright once `scrollbar-width` is set, as it is on `*`
     up top, and neither has any meaning for an overlay thumb. */
  padding-right: 12px;
}

/* LNL-187 — nothing scopes a lane's scrollbar to hover any more.

   It was briefly inked only while the pointer was over its column (LNL-161), on
   the grounds that five to eight permanent thumbs drew a set of vertical rules
   the board does not otherwise have. That traded a real affordance for a
   cosmetic one: with no thumb at rest there is nothing to say a lane HAS more
   cards below the fold, or how far down it you are, until you happen to point at
   it. The columns are how you read a board, so those two facts should be legible
   without touching anything.

   There is no rule here to restore, because the fix is a deletion: the
   `@media (hover: hover)` block that painted the thumb transparent is gone, and
   the unscoped rules in the Scrollbars section at the top ink it again like every
   other scroll region in the app. The lane keeps the `scrollbar-gutter` and the
   `padding-right` above, which are the other half of the complaint — an
   unpadded thumb crammed against the cards is what made hiding it look
   attractive in the first place.

   Worth knowing before reading a bug report about this: on a platform with
   OVERLAY scrollbars — macOS unless "Show scroll bars" is set to "Always" — the
   thumb still fades out when nothing is scrolling, and no stylesheet can hold it
   there. "Always" here means "as often as this platform shows any scrollbar",
   which is the most the board can honestly ask for. */

/* The header over each run of cards — a priority's name, or a resolution's in a
   closing column. See BoardColumn.groups.

   Quieter than .column-name, and that hierarchy is the point: the column head is
   the thing you navigate by, and a group header that shouted as loudly would make
   a five-column board read as fifteen. Same uppercase letterspacing so they read
   as the same *kind* of thing, two steps down in weight.

   The negative top margin pulls each header closer to the cards under it than to
   the ones above, against .column-list's uniform 8px gap. Without it the header
   floats equidistant between two groups and stops belonging to either — the
   oldest bug in list typography. First-child is exempt: there is nothing above
   it to pull away from. */
.group-head {
  margin: 6px 0 -2px;
  padding: 0 2px;
  color: var(--green-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.group-head:first-child { margin-top: 0; }

/* LNL-49, the other half. The header is where the priority is actually NAMED, so
   it is where the colour is cheapest to read — "HIGH" in the warn colour teaches
   what the amber rail on the cards below it means, and the rails then carry that
   meaning down the lane on their own.

   The same two tokens as the rails, and only those two: --t-warn and --t-danger
   are the whole of what this palette says "attend to" with, and a third urgency
   colour would have to be invented here rather than themed — which would mean a
   board that stopped matching its theme the moment someone picked a different
   one. See .agent-badge for when going outside the palette IS right; this is not
   that case, because urgency is exactly what --t-warn and --t-danger are for. */
/* The text-role halves of the two urgency tokens. A group header is 10px type
   on the column well, which is the exact context `--red` / `--yellow` are NOT
   chosen for — those are field colours, picked to look right as a 4px rail on
   a white card. Reading the `…Text` siblings means the header can be the same
   *concept* as the rail below it without having to be the same *value*, which
   is the whole reason the toolkit split the roles. Each falls back to the
   undivided token, so a theme that hasn't declared the pair is unchanged. */
.group-head.priority-urgent { color: var(--red-text); }
.group-head.priority-high { color: var(--yellow-text); }

/* The resolution picker's buttons, stacked full width — the same shape as the
   provider picker's, for the same reason: they are the choice, not a preview of
   it. See ResolutionDialog. */
.resolution-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.resolution-choice { width: 100%; padding: 11px 16px; }

/* The radio variant (LNL-134): the resolutions become a radio list because a done
   one now reveals a second question — the fixed version — before the dialog can be
   confirmed. Each row is a clickable label so the whole strip, not just the dot, is
   the target. */
.resolution-choices-radio { gap: 4px; }
.resolution-choice-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.resolution-choice-radio:hover { background: var(--surface-hover, rgba(127, 127, 127, .08)); }
.resolution-choice-label { font-size: 14px; }

/* The fixed-version picker inside the resolution dialog. A field cell like the
   editor's, revealed only once a done resolution is chosen — hidden with display,
   so it takes no space until it is needed. */
.resolution-version-cell {
  margin-top: 14px;
  flex-direction: column;
  gap: 6px;
}
.resolution-version-cell .field-label { font-size: 12px; color: var(--text-dim); }

/* The version dropdown's per-row ellipsis (LNL-134): a quiet control that only
   asserts itself on hover, so a row of versions reads as a list of choices rather
   than a list of menus. */
/* `--green-dim`, not `--text-dim`: the latter is not a token this stylesheet
   declares, so the `var()` fell through to nothing and the ellipsis inherited
   the row colour — which is why it never looked as quiet as it reads here. */
.version-row-menu {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 0 0 8px;
  background: none;
  border: none;
  color: currentColor;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
}
.version-row-menu:hover { opacity: 1; }

/* The inline "Add new version…" row and the field it becomes. The field fills the
   menu it replaced, so naming a version happens without leaving the open dropdown. */
.version-add-row { color: var(--green-dim); }
/* The row's "+" is a character rather than an SVG, so it needs the line box the
   icon slot takes away for vectors. */
.version-add-row > .dt-hover-menu-icon { line-height: 1; font-size: 14px; }
.version-add-field { width: 100%; }

/* Renaming a version in place (LNL-162): the row keeps its own footprint and the
   field fills it, so the list does not reflow around the one row being edited.
   No check column here — the row is not offering itself to be picked while you
   are typing in it, and a tick beside a field reads as a control you can press. */
.version-rename-row { padding-top: 2px; padding-bottom: 2px; }
.version-rename-field { width: 100%; }

/* Sprint planning: a scrollable list of tickable issues.

   Bounded height with its own scrollbar, rather than letting the modal grow: a
   backlog is however long a backlog is, and a dialog taller than the viewport
   puts its own Save button off-screen — which on this list is the one control
   you definitely need, since the ticks mean nothing until it is pressed. */
.sprint-plan-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  max-height: 45vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* A <label> wrapping the checkbox, so the whole row is the hit target. Ticking
   fifteen issues by aiming at fifteen 13px boxes is the difference between a
   planning tool and a chore. */
.sprint-plan-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 11px;
  cursor: pointer;
}

.sprint-plan-row:hover { background: var(--panel-2); }

.sprint-plan-check { cursor: pointer; }

/* The ticket number, monospaced and dim: it is how you find the row you are
   looking for, not what you read the row for. */
.sprint-plan-key {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--green-dim);
  flex: none;
}

/* One line, clipped. A wrapped title would make rows different heights and turn
   a scannable list into a paragraph — and the title is a reminder of which issue
   this is, not the issue itself. */
.sprint-plan-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card {
  /* One `surfaceAlt` plane on `bg`, and nothing else (LNL-160).

     The column beneath it has no fill now, so the card is the only painted
     object on the board and needs no outline to be one — a tone against the
     pane's own surface is the whole of the figure/ground it requires. No
     border, no drop shadow and no priority rail: the shadow was a material the
     theme never declared, and the rail said in colour what the group header
     directly above the card already says in words. */
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

/* Hover goes to the headline tone rather than the accent-soft border. The
   accent now means "this card is urgent" (the rail) and "this pill is the one
   to read" (the priority tag); reusing a weaker version of it for hover made
   pointing at a card look like a claim about the card. A neutral darkening is
   unambiguous — it says "you are here" and nothing else. */
/* Hover is the one border the card ever draws, and only while pointed at. A
   permanent outline would put an edge on every card again; a momentary one says
   "you are here" and nothing else. */
.card:hover { border-color: var(--border-hi); }
.card-dragging { opacity: .4; }

/* LNL-225: somebody else just changed this card. A one-off flash of the accent
   border and a tint that fades out — the class is set once, on the render that
   brings the change, and the animation runs once, so it reads as "this just
   moved" rather than as a state the card is in. Never on this tab's own edits. */
.card-remote-changed { animation: card-remote-flash 2.4s ease-out; }
@keyframes card-remote-flash {
  0%, 20% {
    border-color: var(--green-hi);
    background: color-mix(in srgb, var(--green-hi) 14%, var(--panel-2));
  }
  100% { border-color: transparent; background: var(--panel-2); }
}
@media (prefers-reduced-motion: reduce) {
  /* No motion: a still accent edge for the same moment instead. */
  .card-remote-changed { animation: none; border-color: var(--green-hi); }
}

/* LNL-49: how urgent this card is, repeating what the group header above it
   says so that the answer is still on screen once that header has scrolled away.
   Which cards get one is decided in MainScreenBackingViewModel.emphasisFor —
   by position in the project's own scale, never by a priority's name.
   Nothing here for the ordinary majority, and that is the design rather than an
   omission: a board where every card is coloured highlights nothing.

   Painted INSIDE the card by an inset shadow rather than as a fat left border.
   The border version had to be reserved on every card — 3px of transparent edge
   — or a card would widen the moment it was reprioritised and shove its title
   sideways. But a transparent border is a gap in the outline: an ordinary card
   was drawn with three sides and an open left edge, which read as a box someone
   had cut the side off. An inset shadow paints within the existing box, so it
   costs no width, needs nothing reserved, and leaves an unemphasised card as the
   plain bordered rectangle it should have been all along. It follows the corner
   radius, which a square-ended pseudo-element would not, and it no longer
   collides with `.card:hover` — the rail and the border are now different
   properties, so neither can overwrite the other. */
/* Nothing: the rail is gone (LNL-160) — see .card. The classes are still put on
   the card, because .group-head above it colours the priority's NAME from the
   same emphasis and the two are one decision (see MainScreenBackingViewModel's
   emphasisFor). Naming urgency in words, once per group, beats repeating it as a
   coloured edge on every card in that group. */

/* Where the card will land. A line above or below the card under the pointer,
   decided by which half of it the pointer is in — see makeReorderTarget.

   An inset box-shadow rather than a border: a border would change the card's
   height by 2px and nudge every card below it down as the pointer crossed the
   midpoint, so the list would twitch under the drag. An inset shadow paints
   inside the existing box and moves nothing.

   Cyan, matching .column-drop's border: both answer "where does this land?", and
   they are frequently on screen together — the column lights up while a card in
   it shows the line.

   Each carries the priority rail along with it. `box-shadow` is one property, so
   a rule that sets it replaces the rail rather than adding to it, and a
   two-class selector like `.card.priority-urgent` would otherwise outrank a
   one-class `.card-drop-before` and leave the drop line invisible on exactly the
   cards that draw the most attention. Re-stating the rail here — via `--rail`,
   whose value the card already holds — keeps both marks on screen at once. */
.card.card-drop-before { box-shadow: inset 0 2px 0 0 var(--green-hi); }
.card.card-drop-after { box-shadow: inset 0 -2px 0 0 var(--green-hi); }

/* Still clickable — a reader may open it — but it does not offer to move. */
.card-readonly { cursor: pointer; }

/* Three lines, then an ellipsis. A title is free text and someone will paste a
   paragraph into one; a card that grows to fit pushes every card below it down
   and turns the column into a wall.

   `-webkit-line-clamp` with `display: -webkit-box` is the only thing that clamps
   by LINE rather than by height, and despite the prefix it is not a WebKit
   quirk — Firefox and Chrome both implement it under these exact names, which is
   why the prefixed spelling is the portable one here. Clamping by `max-height`
   instead would cut the fourth line in half rather than removing it, and would
   have to be kept in step with line-height by hand.

   The full title is in the tooltip and in the issue dialog, so nothing is
   unreachable — see .card-title's title attribute in MainView. */
.card-title {
  margin: 0;
  color: var(--body);
  /* Brand display face when set, else inherit — see .issue-title above. */
  font-family: var(--dt-font-display, inherit);
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* A URL pasted into a title is a link (LNL-112). Same accent as body links
   (.markdown a) so a link reads as one wherever it appears, and underlined so it
   is legible as one against the card without relying on colour alone. */
.card-title a { color: var(--green-hi-text); text-decoration: underline; }

/* LNL-154: the title line of an epic. A flex row so the child-count badge can sit
   at the end of the line while the title takes the rest — the title is line-clamped
   (display:-webkit-box) and cannot hold an inline sibling, so the badge rides beside
   it here instead. Only epics get this wrapper; an ordinary card's title is a plain
   child, unchanged. `align-items: flex-start` keeps the badge on the first line when
   the title wraps to two or three. */
.card-head { display: flex; align-items: flex-start; gap: 6px; }
.card-head .card-title { flex: 1; min-width: 0; }

/* The epic's child count — a FILLED pill, and deliberately unlike the outlined
   label/component chips below (LNL-154). Those catalogue what the issue IS and share
   the bordered, unfilled treatment; this is metadata ABOUT the card — how many
   children hang off it — so it reads as a solid, muted slug rather than one more
   property chip. Muted (the --green-dim secondary tone), because a relationship hint
   should not outshout the title it annotates. --mono so the digit sits like the
   ticket numbers elsewhere. flex-shrink:0 so a long title never squeezes it away. */
.card-epic {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--green-dim);
  color: var(--panel);
  white-space: nowrap;
}

/* LNL-154: a child's back-reference to its epic — a thin muted line under the title,
   carrying the parent's key ("↳ LMX-98") and clickable to open the parent. Muted
   (--green-dim) because it points AT context rather than being the card's own
   headline, and it brightens on hover like any link so it reads as one. --mono so
   the key matches every other ticket key on screen. Its own line rather than beside
   a tag: it is a different axis from the label/component chips — a relationship, not
   a property — and the priority rail and chip row stay clear of it either way. */
.card-parent { margin-top: 4px; }
.card-parent-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-dim);
  cursor: pointer;
}
.card-parent-link:hover { color: var(--green-hi); text-decoration: underline; }

/* Label and component names on the card: a 7px dot and the word (LNL-160).

   Data colour, not theme colour, and that is the exemption this row is allowed
   under: the hue is describing the issue — which axis this word is on — rather
   than the interface. A chip FILL would be a value no theme declares, so the
   hue is spent on the smallest mark that can still carry it. */
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 9px; }
.card-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.card-tag-name { color: var(--body); }
.card-tag-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.card-tag-label { color: var(--green-hi-text); }
.card-tag-component { color: #5fa8ff; }

/* The author footer (LNL-157): a quiet muted line at the bottom of the card, clear
   of the tags above it. The name is dim; when an agent filed it the .agent-badge
   rides alongside, so the row wraps and stays baseline-aligned. */
.card-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--green-dim);
}
.card-author .agent-badge { font-size: 11px; padding: 1px 6px 1px 4px; }

/* The assignee's initials, as a round mark at the trailing edge of the title line
   (LNL-215). A flex sibling of the title inside `.card-head`, not an absolutely
   positioned corner mark — see BoardWindow.assigneeAvatar for why, and for why the
   title therefore cannot run underneath it without any padding being reserved.

   NEUTRAL, and taken from a theme token rather than generated per name. The obvious
   flourish here is a hash-to-hue disc, and it is wrong on this card: the label and
   component dots already spend the card's colour budget on facts about the ISSUE,
   and a third hue meaning "this is Robert" would compete with them while carrying
   nothing the two letters do not. `--border` is the accent at low alpha, so it
   composites over whatever the card is and stays a quiet disc in every theme, light
   and dark alike; `--head` is the bright text token, which is what keeps two 9.5px
   letters legible on it.

   `position: relative` because the agent badge below hangs off its corner. `flex:
   none` so a long title cannot squeeze it into an oval. */
.card-avatar {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-avatar-initials {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--head);
  /* Two letters that must stay two letters: a proportional face pairs "IL" much
     narrower than "MW", and a disc of fixed width reads as broken when its
     contents wander off centre. */
  font-family: var(--mono);
}

/* "…and it is their AGENT doing this" — the agent mark badged onto the avatar's
   bottom-right corner, overlapping it (LNL-215).

   The status-dot idiom, deliberately, rather than a second element beside the
   avatar: beside would read as two people, where on the corner it reads as a
   property of the one — which is what it is. The work goes to this person's agent,
   through this person's own session, and the card should say "Robert, via a
   machine" rather than "Robert and a machine".

   The ring is the CARD's own background, not a border colour, which is the trick
   that makes a badge overlapping a disc read as sitting in front of it rather than
   as being cut out of it. Colour is the agent violet the badge pill uses; see
   `.agent-badge` for why that hue is hard-coded through `light-dark()` rather than
   taken from a token. */
.card-avatar-agent {
  position: absolute;
  /* Hung mostly OUTSIDE the disc — about a third of it overlaps — because the two
     letters underneath are the mark's whole content and a badge centred on the rim
     covers the second one. Far enough out to read as a badge, far enough in that it
     is plainly attached to this avatar and not floating beside it. */
  right: -6px;
  bottom: -6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  box-shadow: 0 0 0 1.5px var(--panel-2);
  color: light-dark(#6d28d9, #c4a2ff);
}
/* Overriding `.icon-agent`'s 13px, which is sized to sit beside 12px text in a
   badge pill. Inside a 13px disc it has to be smaller than the disc. */
.card-avatar-agent .icon-agent { width: 10px; height: 10px; }

/* "Blocked", on the meta line the parent back-reference already owns (LNL-215).

   Shares that line rather than adding one, so a blocked card is exactly as tall as
   an unblocked one and a column of them does not go ragged. `.card-parent` is a
   plain block, so the two children sit inline with the gap below between them.

   NO FILL, unlike the epic badge one line up, and that is the argument rather than
   the styling: a filled chip is a claim on attention, and a blocked card is not more
   important than an unblocked one — it is less actionable, which is the opposite
   claim. The dim on the card around it is already saying "not now"; a red pill would
   say "look here" at the same time. So it is the same muted `--green-dim` the parent
   link beside it uses, and the icon carries the meaning that the colour is not. */
.card-parent > * + * { margin-left: 12px; }
.card-blocked-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--green-dim);
  vertical-align: middle;
}
.card-blocked-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
}
.card-blocked-icon svg { width: 12px; height: 12px; }

/* A blocked card, dimmed as well as chipped (LNL-215).

   ── What a CLOSED card carries, and why this had to differ in kind ─────────

   Nothing. A closed card is drawn byte-for-byte like an open one: `renderCard` puts
   no class on it, the board tells you an issue is closed by which COLUMN it is in
   and which resolution group it sits under (see MainScreenBackingViewModel's
   `groupBy` on resolution), and `.card-readonly` — the only other standing state a
   card has — changes the cursor and nothing visible. So there is no existing dim to
   be confused with, and the danger the requirement names is a future one: if closed
   cards ever gain a treatment, these two must not be the same treatment at two
   strengths, because "greyer" is not a distinction anybody reads off a board.

   So the dim differs in KIND rather than in degree, twice over:

     1. It is a DESATURATION first and a fade second — `grayscale()` leading, with
        the opacity folded into the same filter. A closed card, if it is ever
        softened, will be softened by fading; a card that has had its colour drained
        while keeping its contrast reads as "held up", not as "finished".
     2. It LIFTS ON HOVER. Nothing else on this board un-dims when you point at it.
        A finished thing stays finished when you look at it; a blocked thing is
        something you are about to go and do something about, so pointing at it
        returns it to full strength and lets you read the blockers off the chip's
        tooltip at the same moment.

   The opacity rides inside `filter` rather than on the `opacity` property on
   purpose: `.card-dragging` owns that property, and two single-class rules setting
   it would be decided by source order. Composed through the filter, a blocked card
   being dragged is dim AND ghosted, which is what both states mean. */
.card-blocked { filter: grayscale(.72) opacity(.68); }
.card-blocked:hover { filter: none; }

/* Filled pills, not outlined ones.

   A card carrying four chips used to draw four more rectangles inside a
   rectangle inside a well, and outlines are the most expensive way to say
   "this is a discrete thing" — they add an edge at every boundary. A quiet
   fill says it with a tone instead, so the card's own border stays the only
   line on it and the chips read as a row rather than as a grid.

   The per-kind HUE survives, as the pill's text colour. It is not decoration:
   each hue marks a different axis (what the issue is / when it is scheduled /
   which release), and collapsing them to one grey would answer the shape
   problem by deleting the information. What goes is the border, not the
   meaning. */
.tag {
  /* inline-block, NOT inline-flex, and the difference is load-bearing rather
     than stylistic. In the issue read view a `.tag-caption` ("STATUS",
     "PRIORITY") is an inline caption sitting directly beside its tag inside a
     plain block cell, so the two align on a shared text baseline — see
     `.tag-caption`, whose own comment states the dependency.

     An inline-flex box with a fixed height and centred content takes its
     baseline from that centred line box instead, which dropped every pill a
     couple of pixels below the caption beside it. Sizing from padding keeps
     the pill shape and puts the baseline back where the caption expects it;
     inside `.card-tags` (a flex row) the display is blockified anyway, so the
     board cards are unaffected either way. */
  display: inline-block;
  font-size: 11.5px;
  line-height: 1.45;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--green-dim);
  white-space: nowrap;
}

/* The accent's TEXT role, not its fill: these are 11px glyphs on a pale pill,
   which is the exact context the fill value is not chosen for. */
.tag-label { color: var(--green-hi-text); }
.tag-component { color: #5fa8ff; }
.tag-status { color: var(--green-hi-text); }
/* The one filled pill in the set, and the only chip that earns a field of its
   own colour. This chip appears in the issue window's read view (board cards
   carry priority as the group head plus the card's rail, not as a tag), where
   it sits in a row with status, resolution, sprint and version — and priority
   is the only one of those that asks the reader to DO something. A row where
   five chips shout is a row where none of them does.

   `--yellow-on` is the type colour the theme declares for a warn-coloured
   field, which is the thing that makes writing type directly on the brand
   amber safe at all; before the roles were split there was no such colour and
   this pill had to stay an outline. */
.tag-priority {
  background: var(--yellow);
  color: var(--yellow-on);
  font-weight: 600;
}
/* Dimmer than the rest, and the only one with no fill. A resolution exists
   only on a closed issue, which is finished business — it should be the
   quietest thing on the card, not merely one of the quiet ones. */
.tag-resolution { background: transparent; color: var(--green-dim); }
/* Violet, and the only tag that is. A sprint answers a different question from
   every other chip here — those say what an issue IS, this says WHEN it is meant
   to happen — so it reads as a different axis rather than as one more property.
   Most boards never show it at all; see Sprints.sq. */
.tag-sprint { color: #b294ff; }
/* Planned and fixed version (LNL-134). A third axis again — which release the work
   is scheduled for, or went out in — so a teal that is neither the sprint's violet
   nor the resolution's green. Most boards never show it; see Versions.sq. */
.tag-version { color: #5ec8d6; }

/* The "made by an agent" badge, on an issue byline or a comment head.

   Deliberately NOT a .tag. The tags catalogue what an issue IS — its labels, its
   status — and share the outlined, unfilled treatment for that reason. This flags
   where a row came FROM, which is a louder thing to say, so it is filled and
   carries an icon the tags do not.

   The colour is a violet the rest of the palette never reaches. Green, blue and
   yellow are all "a human working"; a fourth hue that belongs to nothing else is
   how the eye is told, before it reads a word, that this row was not typed by
   hand. Not a --token because there is no theme slot for "machine" and inventing
   one would let a theme quietly turn the signal green — but it still has to hold
   in both themes, so `light-dark()` picks the shade off the `color-scheme` the
   toolkit sets on :root: a deep violet on a light board, a bright one on a dark
   one. A single fixed violet washed out on whichever background it was not tuned
   for. The icon takes `currentColor`, so it follows the text either way. */
.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 7px 2px 5px;
  border-radius: 3px;
  border: 1px solid light-dark(rgba(124, 58, 237, .55), rgba(185, 140, 255, .5));
  background: light-dark(rgba(124, 58, 237, .1), rgba(185, 140, 255, .13));
  color: light-dark(#6d28d9, #c4a2ff);
  white-space: nowrap;
}
.agent-badge-label { line-height: 1; }

/* On a board card the badge is the icon alone (LNL-157): the "Agent · …" label
   costs more width than it earns there, and the name is on the title attribute
   instead. Same pill, but the padding loses the asymmetry that only existed to
   sit a label beside the glyph. */
.agent-badge-icononly { gap: 0; padding: 2px 4px; }

/* On the issue, the badge is its own line under the byline. Pulled up close to
   the byline it belongs to (which carries 14px below it), and carrying that 14px
   itself so the fields below keep their spacing whether or not the badge is
   shown. */
.issue-fields > .agent-badge { margin: -8px 0 14px; }

/* A BOT account's own name, marked (LNL-235).

   The same violet as .agent-badge and deliberately the same mark — this is the
   same claim ("a machine did this") made about a different thing. The badge says
   it about a write by a person; this says it about the identity itself, which is
   why it is not a pill: a filled chip would read as a label attached to a name,
   and here the name IS the machine. So the mark and the name sit together in the
   byline's own type, coloured rather than boxed.

   The colour is duplicated from .agent-badge rather than shared through a custom
   property, and that is on purpose: the badge's comment explains at length why
   this violet is not a theme token, and a `--bot-colour` on :root would be
   exactly the slot that comment refuses to create — one a theme could quietly
   turn green. Two rules, one hue, both stated where they are used. */
.bot-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: light-dark(#6d28d9, #c4a2ff);
  font-weight: 500;
  white-space: nowrap;
}
/* 14px against the byline's 14px text, where .icon-agent's 13px is sized for the
   badge's 12px. The mark reads as part of the name rather than a glyph beside it. */
.bot-name .icon-agent { width: 14px; height: 14px; }

/* "Requested by …" under the issue byline (LNL-235).

   Its own line rather than a continuation of the identity line, because it is a
   different kind of fact: the line above says who wrote this and when, and this
   says who asked for it — and on the large majority of issues it is not there at
   all. Dim, small, and quiet enough that its absence is the normal state rather
   than something missing.

   Sized and spaced like the agent badge it replaces in the same slot, so an issue
   gains and loses it without the fields below moving. */
.issue-requester {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 14px;
  font-size: 12.5px;
  color: var(--green-dim);
}

/* The People tab is the split plus the Bots section under it, as one column.
   The split keeps its own height so the two lists still scroll independently; the
   section below is full width because its rows need it. */
.admin-people-pane { display: flex; flex-direction: column; min-height: 0; }
.admin-people-pane > .admin-split { flex: 1; min-height: 0; }

/* The Bots section under the account directory (LNL-236).

   Rows rather than a table: each one carries a name, a handle, a sentence, two
   switches and a variable number of tokens, and a table of that is a table with
   one useful column and four ragged ones. */
.bots-section { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.bots-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bots-list { display: flex; flex-direction: column; gap: 10px; }
.bots-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel-2);
}
.bots-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bots-row-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
/* The handle in mono, because it is a value somebody types into a config file —
   the same reasoning the token prefix below follows. */
.bots-handle { font-family: var(--mono); font-size: 12px; color: var(--green-dim); }
.bots-toggle { gap: 10px; }
.bots-token {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--green-dim);
}
.bots-token-prefix { font-family: var(--mono); color: var(--green); }
.bots-token-name { flex: 1; min-width: 0; }
.bots-token-scope { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
/* The revealed token: the one string on screen that cannot be fetched again, so it
   wraps rather than clips and is selectable at a comfortable size. */
.bots-token-value {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  user-select: all;
}

/* The BOT badge, wherever a list names accounts (LNL-236).

   A modifier on each list's existing badge rather than a shape of its own, so the
   row's own metrics decide the size and only the hue changes — the same violet
   .agent-badge and .bot-name use, for the same reason: a fourth colour that
   belongs to nothing else is how the eye is told, before it reads a word, that
   this is not a person. */
.access-row-badge-bot,
.add-people-badge-bot,
.admin-user-badge-bot {
  border-color: light-dark(rgba(124, 58, 237, .55), rgba(185, 140, 255, .5));
  background: light-dark(rgba(124, 58, 237, .1), rgba(185, 140, 255, .13));
  color: light-dark(#6d28d9, #c4a2ff);
}

/* The compact requester on a comment head, a history row or a card: "for Anna".
   Dim and small — it rides beside a byline that is already small print, and the
   name it carries is the only part worth reading. */
.row-requester {
  font-size: 11.5px;
  color: var(--green-dim);
  white-space: nowrap;
}

.board-empty { color: var(--green-dim); font-size: 13px; }

/* ============================================================
   The calm board (LNA-27), keyed by the toolkit's style settings

   The board follows two of Lunula's style settings, each stamped on
   <html> by the toolkit for the active appearance mode:

   - Surfaces: Soft (`data-dt-surface="soft"`) — calm cards. The
     calm board is two materials and one line: lanes are wells of
     the ground tone (`bg`) set into the window's surface, cards are
     surface planes with a permanent `border` hairline on them, and
     the lanes are told apart by the gap between them rather than by
     a rule down each one's edge.
   - Labels: Sentence case (`data-dt-labels="sentence"`) — the lane
     name as an ordinary heading in sentence case.

   With neither, nothing here matches and the board above renders
   exactly as before. The Calm look sets both.
   ============================================================ */

/* A gutter instead of the hairline: with every lane painted as a well, the space
   between two wells is what separates them, and a rule as well would say it twice
   — the same argument .board makes the other way round. */
:root[data-dt-surface="soft"] .board { gap: 14px; }

/* The lane as a ground-toned well with soft corners, and no divider. Padding is
   even on both sides now that there is no trailing line to keep clear of. */
:root[data-dt-surface="soft"] .column {
  background: var(--bg);
  box-shadow: none;
  border-radius: 12px;
  padding: 10px 8px 12px;
}

/* The drop wash, re-stated: the selector above outranks a bare `.column-drop`,
   so without this the well would hide which lane a dragged card will land in.
   Mixed into the well's own ground rather than into transparent, so it tints
   the lane instead of punching through it. */
:root[data-dt-surface="soft"] .column-drop {
  background: color-mix(in srgb, var(--green-hi) 10%, var(--bg));
}

/* The head over a well: no rule under it — the well already says where the lane
   begins. Still a fixed two-line box, bottom-aligned, for the reason
   .column-head gives: a long name must not drop its own lane's cards out of line
   with the neighbours'. 38px is two lines of the 14px sentence-case name. */
:root[data-dt-surface="soft"] .column-head {
  height: 38px;
  padding: 0 4px 2px;
  border-bottom: 0;
  margin-bottom: 8px;
}
/* Sentence-case labels: the lane name as an ordinary heading in normal text,
   the count in the muted tone. */
:root[data-dt-labels="sentence"] .column-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
:root[data-dt-labels="sentence"] .column-count {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
}

/* The card: the surface plane, outlined all the time by one `border` hairline,
   with a 12px corner. The base card leaves the edge off and draws it
   only on hover because its card is a tone against the pane; here the card is
   the same tone as the window around the lane, so the hairline is what makes it
   a card at all. */
:root[data-dt-surface="soft"] .card {
  background: var(--panel);
  border-color: var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

/* Hover stays, but quietly: the permanent hairline steps up to the stronger
   border token. Re-stated because the rule above outranks the bare `.card:hover`. */
:root[data-dt-surface="soft"] .card:hover { border-color: var(--border-hi); }

/* The "somebody else changed this" flash, ending on the calm card rather than
   on the base one — the shared keyframes fade to a transparent edge on `panel-2`,
   which would leave the card blinking to the wrong material at the end. */
:root[data-dt-surface="soft"] .card-remote-changed { animation-name: card-remote-flash-calm; }
@keyframes card-remote-flash-calm {
  0%, 20% {
    border-color: var(--green-hi);
    background: color-mix(in srgb, var(--green-hi) 14%, var(--panel));
  }
  100% { border-color: var(--border); background: var(--panel); }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-dt-surface="soft"] .card-remote-changed { animation: none; border-color: var(--green-hi); }
}

/* The window colour is the toolkit's to say. Under Lunula's Active window:
   Tone setting the focused window is painted `--t-window-active` and every
   other `--t-window-idle`, and the toolkit publishes that colour on each window
   as `--dt-window-bg`. Each pane root (.board-pane, .issue-window, the settings
   and analytics hosts, the forum post host) paints `var(--dt-window-bg,
   var(--panel))` for that reason: under Tone it follows the window, and with
   any other setting the variable is unset and the root keeps `--panel`. Only
   the surfaces inside that are objects of their own keep a fill: cards on
   `--panel`, lanes on `--bg`, inputs, chips and dialogs as they are. A new
   pane kind with a background of its own should do the same. */

/* ============================================================
   Modals
   ============================================================ */

/* Lunicle modals ride the toolkit's `.dt-modal*` classes for their entire
   visual identity — surface, border, shadow, title, message, button row — so
   they are indistinguishable from the lunula/lunamux dialogs and track any
   toolkit restyle for free (see Modal.kt). The rules below carry only what dt
   deliberately doesn't decide for us: our width band, and a scroll-friendly
   backdrop. The doubled selectors are for specificity — the toolkit's styles
   are injected at mount time, AFTER this sheet, so a single-class rule here
   would lose every tie. */

.dt-modal-backdrop.modal-backdrop {
  /* flex-start + margin:auto on the panel, instead of dt's center: a flex
     item centred that way and taller than the viewport overflows BOTH ends,
     and the top half becomes unreachable — the scroll container will not
     scroll above its content's start. Auto margins collapse to zero instead
     of going negative, so a tall dialog pins to the top and scrolls
     normally, while a short one still sits in the middle. */
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
  /* Same layer as the toolkit's own .dt-modal-backdrop (10000): a maximised
     lunula pane is `z-index: 1000 !important`, and at the old page-era 10
     the sign-in picker opened BEHIND the maximised board. One shared layer
     means whichever dialog opened last paints on top (both mount into body
     in open order). */
  z-index: 10000;
}

.dt-modal.modal {
  width: 100%;
  max-width: 640px;
  margin: auto; /* the vertical centring — see the backdrop comment above */
}

/* The prose dialogs — an issue with its comments, and a comment being written.

   They differ from the default panel in two ways, and the second is the point:
   they are WIDER, and they do not GROW. The default panel is fit-content and
   lets the backdrop scroll, which is right for a form of six fields and wrong
   for a thread: the panel got taller with every comment, so the title scrolled
   off the top and the OK button sat somewhere below the fold, and reaching
   either meant scrolling the whole dialog rather than the thing you were
   reading.

   Fixed height instead, with the body scrolling inside it. `height` and not
   `max-height`: at max-height a short issue still produces a short panel, so the
   dialog changes size as you click between issues — and the buttons move under
   the cursor. A constant panel is worth more than a snug one here.

   dvh, not vh: on a mobile browser vh counts the URL bar's space even while the
   bar is covering it, which puts the footer under it. The 80px is the backdrop's
   40px padding, twice. */
.dt-modal.modal-large {
  max-width: 880px;
  height: calc(100dvh - 80px);
  /* Beyond this the measure gets unreadable and the buttons end up a long way
     from the text, on a desktop monitor in particular. */
  max-height: 860px;
  /* So .modal-body can be the flex child that takes the slack and scrolls. */
  display: flex;
  flex-direction: column;
}

/* The body is the flex child that takes the slack — but it does NOT scroll.
   Its children do, and which one depends on the face being shown: the editor's
   surface while editing, .issue-scroll while reading. See below.

   min-height: 0 is load-bearing, not defensive. A flex item's default
   `min-height: auto` refuses to shrink below its content, so any overflow-y
   below this would never engage — the body would size to its whole content and
   push the footer out of the panel, which is the bug this section fixes. It has
   to be repeated on every nested flex child for the same reason; that is why it
   appears four times between here and .editor-surface. */
.modal-large .modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The issue's identity: title, status, priority, labels. Fixed — it does not
   scroll away.

   This is the whole point of the three-band split. Before it, the modal body
   scrolled as one, so typing into a long description pushed the title, the
   status and the priority off the top of the dialog: the fields describing the
   thing you were editing were only visible when you were not editing it. */
.issue-fields { flex: none; }

/* The reading face — rendered description plus the comment thread — scrolling as
   one. The fields above it stay put. */
.issue-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* The scrollbar's gutter — same reasoning as .settings-body: it is laid out
     inside this element, so without this the comment cards' right border ends
     exactly where the thumb starts. .editor-surface, the other face of this
     window, needs nothing: its own 12px padding already supplies the room. */
  padding-right: 14px;
}

/* Emptying it is not enough. Every child of the reading face hides itself while
   editing, but the box stays, and `flex: 1` on an empty box still claims its
   half of the slack next to .editor-host — which is why the editor stopped
   halfway down the dialog with nothing under it. */
.modal-body.editing .issue-scroll { display: none; }

/* The editor fills the rest of the dialog while editing, and its SURFACE is what
   scrolls. The chain of `flex: 1; min-height: 0` from .modal-body down to
   .editor-surface is what carries the height: break it at any link and the
   editor either collapses to nothing or grows until the footer is gone. */
/* `display: flex` belongs here and not only on the issue dialog's inline toggle.
   The issue dialog shows and hides this box by face and so sets the display
   itself (see IssueDialog.render); the comment dialog is only ever editing and
   has nothing to toggle, so it inherited a plain block, `flex: 1` on .editor
   meant nothing, and the editor sat at content height in a dialog twice its
   size. The inline `none`/`flex` still outranks this, so the issue dialog is
   unaffected. */
.editor-host {
  flex: 1;
  min-height: 0;
  display: flex;
}

.editor-host .editor {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.editor-host .editor-toolbar { flex: none; }

.editor-host .editor-surface {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* A file being dragged over the editor: the surface advertises itself as the
   drop target. The class rides on .editor (the root) — see MarkdownEditor's
   drop wiring. */
.editor-drop .editor-surface {
  outline: 2px dashed var(--green-hi);
  outline-offset: -4px;
}

/* Status and priority share a row — but the two faces of the dialog want
   genuinely different rows, and giving them the same one was a bug worth naming.

   READING is the default here: two tags, side by side, sized to their words. The
   grid below applied to read mode too, which put "New" in a half-width track and
   "Normal" marooned at the midpoint of the dialog with a hand's width of nothing
   between them — two labels pretending to be columns of a table that does not
   exist. */
.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* EDITING wants the grid: two full-width selects sized to their content would
   jump between "New" and "Ready for development" as the value changed, so the
   tracks are equal and fixed. */
/* auto-fit with a floor, not a fixed `1fr 1fr` or `1fr 1fr 1fr`: the row holds
   two cells or three depending on whether the chosen status demands a resolution,
   and the resolution cell appears and disappears as the status changes. A fixed
   three-track grid would leave a hole where it was; a fixed two-track one would
   wrap it to a second line. This sizes to whatever is actually there, and drops
   to fewer columns rather than crushing them when the dialog is narrow. */
/* The row owes its cells the 16px their labels cannot claim: a cell's <label> is
   its first child, so `.field-label:first-child` zeroes the margin every other
   label in the dialog uses to stand off the field above it. Without this, STATUS
   sits on top of the title input. */
/* `align-items: start` still, and it is now harmless: every field in the row is
   a fixed 34px with a single ellipsised line, so no cell can grow taller than
   its neighbours and drag the labels above them out of line. That was the
   editor's oldest layout complaint and it was never the grid's fault — the
   selects wrapped their values, and a wrapped value is two lines tall. */
.modal-body.editing .field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.field-cell { min-width: 0; }

/* Reading, the row is two or three cells of "CAPTION Tag" sitting next to each
   other, so the space BETWEEN cells has to beat the space inside one — at the
   8px the row uses by default, "PRIORITY" was as close to the status tag on its
   left as to the priority tag it names on its right, which is precisely the
   ambiguity the captions exist to remove. */
.modal-body:not(.editing) .field-row { gap: 20px; }

/* Label and component chips ride at the end of the read status/priority row
   (LNL-14), so status, priority and the tags read as one wrapping chip line
   instead of the tags claiming a band below. Drop the top margin .card-tags
   carries for standing on its own line, so the chips sit level with the tags
   beside them; scoped to read mode, where the row is a flex line — in edit mode
   the row is a grid and .card-tags is hidden. */
.modal-body:not(.editing) .field-row > .card-tags { margin-top: 0; }

/* The read face's answer to .field-label-edit: the <label> above each select
   names it while editing, this names the tag while reading. Neither is ever
   visible at the same time as the other. Kept `inline` rather than made a flex
   row on .field-cell on purpose — the resolution cell's display is driven by an
   inline style (see render()), which no rule here can outrank. An inline caption
   next to an inline-block tag flows onto one line inside a plain block cell, so
   the layout does not depend on the cell's display at all. */
.tag-caption { display: none; }

.modal-body:not(.editing) .tag-caption {
  display: inline;
  margin-right: 7px;
  color: var(--green-dim);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Against a caption the tag's baseline sits low — it is an inline-block with
   its own padding, so its baseline is its last line's, not its box's centre. */
.issue-fields .field-cell .tag { vertical-align: middle; }

/* Sized for a dialog, not for a card. .tag's 10px is right on a board where a
   card carries four of them and the title is what matters; here they are two of
   the six facts about the issue you are reading, and they were rendering as
   fine print. */
.issue-fields .tag {
  font-size: 11px;
  padding: 3px 8px;
  line-height: 1.5;
}

/* The label above the FIRST field, which sits directly under the title bar and
   needs no separation from it.

   `:first-of-type` rather than `:first-child`, because in edit mode the first
   child is the read-mode <h3> — hidden, but still first — so `:first-child`
   matched nothing and the gap stayed.

   The `>` is load-bearing and was missing. `:first-of-type` is scoped to an
   element's own PARENT, not to the ancestor named on the left of the selector, so
   without the child combinator this also matched the first label inside each
   `.field-cell` — which is every one of them, since a cell holds exactly one
   label. STATUS and PRIORITY lost their 16px and sat jammed under the title
   field. The rule is about one label at the top of the dialog; the combinator is
   what says so. */
.issue-fields > label.field-label:first-of-type { margin-top: 0; }

/* Title, message and button-row visuals come from the toolkit's
   .dt-modal-title / .dt-modal-message / .dt-modal-buttons — see Modal.kt.
   What remains here is layout the dt rules don't decide: the body band
   between title and buttons, and the footer's vertical rhythm. */

.modal-body { padding: 12px 0 0; }

.dt-modal-buttons.modal-footer {
  align-items: center;
  margin-top: 16px;
}

/* A floor, not a fixed width. The footer buttons already share .btn's padding,
   so they agree on height; what they disagreed on was width, because that came
   from the text and "OK" is two characters against "Cancel"'s six. The dismissal
   thereby ended up the bigger target of the pair, which is backwards. A min-width
   evens the common cases without truncating a longer label like "Delete project",
   which simply grows past it. */
.modal-footer .btn { min-width: 92px; }

.modal-footer-spacer { flex: 1; }
.modal-error { color: var(--red); font-size: 12px; margin: 12px 0 0; }

/* The three consequences of handing the instance over (LNL-198). A real list, and
   styled as one: bulleted and indented so the reader can see there are three of
   them at a glance, which is half of what the dialog is saying. Roomier line
   spacing than a field hint, because these are sentences to be read once and
   understood rather than a caption to be skimmed past. */
.hand-over-consequences {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--body);
}

.hand-over-consequences li + li { margin-top: 6px; }

/* The phrase to type, echoed above the field, for the two dialogs gated on one
   (LNL-107's project delete, and LNL-198's handover). Monospaced so a trailing
   space or a lookalike character is visible, and boxed so it reads as a thing to
   copy rather than as part of the sentence above it. It had been leaning on the
   browser's default <code> until now, which rendered the phrase as ordinary prose
   in the middle of a paragraph — the one place in the product where a character
   has to be reproduced exactly. */
.confirm-phrase-prompt { margin: 12px 0 8px; }

.confirm-phrase {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green-hi);
  border: 1px solid var(--border-hi);
  border-radius: 3px;
  padding: 2px 6px;
  /* A handover's phrase names a person, and a person's name can be long. Wrapping
     is better than a dialog that scrolls sideways. */
  overflow-wrap: anywhere;
}

/* ============================================================
   Fields
   ============================================================ */

.field-label {
  display: block;
  color: var(--green-dim);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 16px 0 6px;
}

.field-label:first-child { margin-top: 0; }

/* The ISSUE EDITOR's labels, which are a denser case than a dialog's: a row of
   six of them stands over six controls, so each one is a caption on a field
   rather than a heading over a section. Mono caps at 9px with wide tracking is
   what the rest of this design uses for exactly that job, and dropping from
   12px buys back a line of vertical height per row — in the one pane that
   competes with a description for it. Scoped to the editor: a dialog's labels
   stand alone over a single field and are read, not scanned. */
.issue-fields .field-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  margin-bottom: 6px;
}

/* Everything that only belongs in edit mode rides on one class on the body,
   rather than being toggled element by element — there are six of them, and
   forgetting one leaves a stray "Components" heading over a read-only issue. */
.field-label-edit { display: none; }
.modal-body.editing .field-label-edit { display: block; }

.field {
  width: 100%;
  font-family: inherit;
  /* Tracks the prose size like the body copy it sits among — a form whose
     fields stay 15px while the prose around them grows reads as two documents. */
  font-size: var(--dt-font-prop-size, 15px);
  color: var(--head);
  /* `background-color` rather than the `background` shorthand. The hazard it
     was guarding against is gone — the editor's dropdowns are no longer `.field`
     at all, and their chevron is an element rather than a background image, so
     there is nothing left for the shorthand to reset out from under them. Kept
     as a longhand anyway: it says only what it means. */
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 11px;
}

.field:focus { outline: none; border-color: var(--green-hi); box-shadow: 0 0 10px var(--glow); }

/* Ghost text, and it has to *look* ghosted. Unstyled, Chrome picks its own grey
   — tuned for a white page, and bright enough against this near-black --bg that
   a placeholder read as a filled-in value: the project dialog appeared to come
   pre-filled with "Lunamux" / "LMX". --green-dim is what every other piece of
   secondary text here uses (.field-hint, .field-label), so an example now reads
   as an example. */
.field::placeholder { color: var(--green-dim); opacity: 1; }
.field-multiline { min-height: 180px; resize: vertical; line-height: 1.6; }

.field-hint { color: var(--green-dim); font-size: 12px; margin: 6px 0 0; }
.field-validation { color: var(--yellow); font-size: 13px; margin: 12px 0 0; }

/* A hint carries no bottom margin — under a field it is the last word on that
   field and the next field brings its own spacing. A choice row underneath is
   the exception: it is a *control* answering the sentence above it, and with
   nothing between them the buttons read as a third line of the paragraph. The
   note that follows the row (the "an administrator's to change" line) needs the
   same gap for the same reason, from the other side. */
.field-hint + .dt-settings-button-row { margin-top: 10px; }
.dt-settings-button-row + .admin-note { margin-top: 12px; }

/* ── The sign-in method picker ───────────────────────────────────────────────

   Two ways in — a provider popup and a mailed code — and the layout's whole job
   is to make that an obvious either/or rather than a stack of controls. A
   full-width provider button, an "or" rule, then the e-mail form as one grouped
   unit reading as its peer. When only one method is configured the picker is not
   shown at all (SignInView goes straight to the one method), so the "or" and the
   second option only ever appear when there genuinely is a choice.

   ── Its own measure, and its own padding ──────────────────────────────────

   The default 640px modal is a form of six fields; an auth card of one field and
   two buttons reads as stretched and empty at that width, and the toolkit's 20px
   panel padding is tighter than a sign-in box should ever feel. So the panel
   gets `modal-narrow` (a sign-in measure) and `modal-signin` (real breathing
   room), and every gap below is sized for that column rather than inherited.

   See SignInPickerDialog.kt and Modal's `panelClass`. */
.dt-modal.modal-narrow { max-width: 460px; }

/* Generous, even padding on all four sides — the toolkit's own 20px is the floor
   for a dense form and the wrong feel for an auth card. The body's default
   `padding: 12px 0 0` is overridden to nothing so this padding is the only inset
   and the title, body and footer share one rhythm. */
.modal-signin { padding: 32px; }
.modal-signin .modal-body { padding: 22px 0 0; }
.modal-signin .modal-footer { margin-top: 24px; }

/* `text-wrap: pretty` keeps the last word off a line of its own: the wider panel
   (see modal-narrow) is what a branded, proportional face needs to fit this line,
   but the guard holds whatever the deployment's font measures — a lone "it." on
   the last line was what LNL-153 called out. */
.signin-hint { color: var(--green-dim); font-size: 13px; line-height: 1.55; margin: 0 0 22px; text-wrap: pretty; }

.signin-methods { display: flex; flex-direction: column; }

/* The provider button and the e-mail action share this: full width, real height,
   so each reads as a way IN rather than a minor control. */
.signin-provider,
.signin-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* The submit button is an action taken ON the field above it, so it wants clear
   separation from it — more than the group's base gap gives — without drifting so
   far it stops reading as part of the same form. Added to the 16px group gap,
   this puts the action a clear step below its field. */
.signin-submit { margin-top: 10px; }

/* "or", centred between two hairlines that grow to fill the width. Given plenty
   of room top and bottom so the two paths sit clearly apart. */
.signin-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--green-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.signin-divider::before,
.signin-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* The e-mail path as one unit: label, field, button, stacked and evenly spaced
   so it stands beside the provider button rather than trailing off it. The label
   loses .field-label's default top margin — the group's own gap carries the
   rhythm. The field gets a touch more height to match the buttons' presence. */
.signin-email,
.signin-code { display: flex; flex-direction: column; gap: 16px; }
.signin-email .field-label,
.signin-code .field-label { margin: 0; }
.signin-email .field,
.signin-code .field { padding: 12px 13px; }
.signin-code .field-hint { margin: 0; }

/* "We sent a code to …" — brighter than a hint, since it is the thing the reader
   is acting on, and given room above the field. */
.signin-sent { color: var(--head); font-size: 14px; line-height: 1.55; margin: 0 0 4px; }

/* The step-two "Use a different address" is a quiet retreat, not an action, so
   it sits apart from the primary Sign in button above it and does not stretch. */
.signin-code .btn-quiet { align-self: flex-start; margin-top: 4px; }

/* ============================================================
   Nothing to show — the empty canvas and the landing page
   ============================================================

   See EmptyTabSurface.kt. One card, two settings for it.

   The LANDING covers the window: a signed-out visitor who can reach no project
   has nothing to do with the chrome — the tab strip holds one empty tab, the
   sidebar lists that tab, and the "+" makes what they cannot keep. So it is
   fixed to the viewport rather than mounted in the canvas, and opaque, and
   sized in viewport units: nothing of the shell shows around it. Below the
   modal layer (`.dt-modal` is 10000) so the sign-in picker opens OVER it,
   which is the one thing that must still work here.

   The CANVAS shape is for a reader already inside the app who has emptied a
   tab. `inset: 0` against the toolkit's `position: relative` main slot, and
   `z-index: 0` deliberately: it must sit UNDER any pane rather than over it.
   The shell tears it down the instant a pane exists, but the two orders
   overlap for a frame during the mount, and a panel painting over a board —
   even for a frame — is a flash of nothing where content was. */
.empty-tab-landing,
.empty-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  /* Nothing here is a target; a stray click lands as it would on bare canvas.
     The button and the links opt back in below. */
  user-select: none;
}
.empty-tab-landing {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9000;
  /* The CANVAS tone — the surface a board rests on — rather than the chrome
     band around it. Two reasons, and they agree: it is the tone this window
     will show once there is something to see, so signing in is a card leaving
     rather than a page changing colour; and it is the one a pane is designed to
     contrast against, which is the whole reason the card below reads as an
     object at all. On a light theme whose chrome band and pane surface are both
     near-white, taking the chrome tone here left the card carrying its own
     separation on a hairline. */
  background: var(--t-canvas, var(--t-chrome-bg, var(--bg)));
}
.empty-tab {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* The card itself: a pane's surface, a pane's border, a pane's roundness — this
   is the same kind of object as a board window, and reading as one is what
   keeps an empty instance looking like the product rather than like an error
   page. The measure is a measure, not a width: at full canvas width the note
   would run past 90 characters a line and the eye would lose the next one. */
.empty-tab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  padding: 52px 48px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--dt-corner-radius, 18px);
  /* Barely there, and cast straight down: enough to lift the card off the
     backdrop without announcing itself as a dialog, which it is not — there is
     nothing behind it to come back to. */
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Bigger than the sign-in picker's 40px, deliberately: the picker's mark sits
   above a form the reader came for, and this one is the page. See
   .signin-brand-logo for the shape of the rule. */
.empty-tab-logo { height: 52px; max-width: 320px; margin-bottom: 30px; }

/* ...and a step down inside the canvas, where the card is an object in a tab that
   still has all its chrome rather than the whole window. A mark sized for a
   landing page reads as a second header arguing with the top bar above it, and
   the shorter card is what lets this sit in a canvas only a few hundred pixels
   tall. Same reason for the tighter padding: the canvas is whatever the reader's
   layout left over, which can be a narrow column, and 48px a side of it is the
   card's own margin rather than room for the words. */
.empty-tab .empty-tab-logo { height: 40px; margin-bottom: 24px; }
.empty-tab .empty-tab-card { padding: 40px 32px; }
.empty-tab .empty-tab-action { margin-top: 24px; }

/* The deployment's display face when it has one (issue titles and column names
   already use it), so a branded instance's empty canvas is branded too — and
   `inherit` on an unbranded one, which keeps it on the proportional stack. */
.empty-tab-headline {
  font-family: var(--dt-font-display, inherit);
  color: var(--head);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

/* `text-wrap: pretty` for .signin-hint's reason: the longest branch runs to two
   clauses, and a lone trailing word is the ragged shape a centred column shows
   up worst. */
.empty-tab-detail {
  color: var(--green-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0;
  text-wrap: pretty;
}

/* Given real room above it: the one thing on this card the reader can act on,
   and a button tucked under the sentence reads as part of it. Wider padding
   than a dialog's for .signin-provider's reason — a way IN, not a minor
   control.

   `--accent-on` rather than `--bg` for the label: --bg is the page, and a page
   colour laid on an accent FILL is a coincidence that holds only while the two
   happen to contrast. Under a light theme with a warm accent it does not —
   near-white on amber lands around 2:1. `--accent-on` is the token a theme
   declares for exactly this, type sitting ON the accent, and it falls back to
   black. */
.empty-tab-action {
  margin-top: 30px;
  padding: 13px 30px;
  font-size: 15px;
  color: var(--accent-on);
  user-select: auto;
}
.empty-tab-action:hover:not(:disabled) { color: var(--accent-on); }

/* The deployment's own words (Brand.landingNote), set as a footnote: quieter
   than the instruction above, and pushed below the action by a hairline so the
   eye stops at the button first and reads this only if it is still looking for
   something. Quieter, not small — it is the paragraph that says what this
   software is, and a reader who has got this far is reading it. */
.empty-tab-note {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  width: 100%;
  color: var(--green-dim);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
  user-select: auto;
}
.empty-tab-note-line { margin: 0; }
.empty-tab-note-line + .empty-tab-note-line { margin-top: 12px; }

/* Lunicle's own mark heading the footnote: glyph and name on one line, centred
   with the rest of the card, and given a step down to the prose so it reads as
   that block's heading rather than as another line of it. */
.empty-tab-note-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
}
/* .icon-logo is sized for the 18px topbar and takes the CHROME accent with it,
   which is the wrong zone inside a pane. Both are overridden here. */
.empty-tab-note-mark .icon-logo { width: 22px; height: 22px; color: var(--green-hi-text); }
.empty-tab-note-name {
  font-family: var(--dt-font-display, inherit);
  color: var(--head);
  font-size: 16px;
  font-weight: 600;
}

.empty-tab-note-link {
  color: var(--green-hi-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  /* Long URLs must not push the card wider than its measure. */
  overflow-wrap: anywhere;
}
.empty-tab-note-link:hover { color: var(--head); }

/* A boolean and its label on one line, lunula's On/Off pair standing where
   the checkbox used to. See Dom.kt's Toggle.

   Label leads, pair trails. The label takes the slack, so the pairs land on a
   common right edge and a column of them reads as one control per row rather
   than as a ragged line of buttons each at its own indent. The pair keeps its
   intrinsic width (`flex: none` on .toggle), so a long label — "Public —
   anyone can read this project's issues…" — wraps and pushes the row taller
   rather than squeezing the buttons.

   `align-items: center` reads right for the one-line labels; a wrapped label
   centres against the pair, which beats the checkbox row's old top-alignment
   now that the control is 28px tall rather than a 13px box. */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 13px;
}

.toggle-label { flex: 1; min-width: 0; }

/* The pair itself. The buttons are the toolkit's own .dt-settings-choice-btn,
   so they arrive themed; only the row's own gap is ours, tightened from the
   sidebar's 6px because On/Off is a pair rather than a list of choices. */
.toggle {
  flex: none;
  gap: 4px;
}

/* The toolkit sizes its choice buttons for a settings sidebar, where they are
   the only thing on the row. In a dialog they sit next to running text and a
   14px pad on a two-letter word left them looking like Submit buttons — so:
   narrower, and a fixed min-width so "On" and "Off" come out the same size
   rather than one being visibly slimmer than its twin. */
.toggle .dt-settings-choice-btn {
  padding: 5px 0;
  min-width: 44px;
  text-align: center;
}

/* A dead toggle still has to look like one — see .vocab-delete below for the
   same reasoning. Dim both sides, and say with the cursor that the answer to a
   click is no, rather than leaving the accented side looking live. */
.toggle .dt-settings-choice-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Label/component pickers. Buttons rather than a multi-select, which is
   unusable on touch and invisible about what is selected. */
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* A chip says the same two things a menu row does — this one is chosen, that
   one is not — so it says them the same way: a hairline that goes accent under
   the pointer, and an accent FILL once it is picked.

   What it replaced said "chosen" three times over: a 14% tint, plus a solid
   accent ring, plus the text going bright — three signals for one bit, and not
   one of them the fill the rest of the app spends on "chosen". Three quiet
   marks read as a fourth state, not as emphasis. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1;
  color: var(--head);
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .12s, box-shadow .12s, color .12s;
}

/* Scoped off the on-state: an unscoped .chip:hover would out-specify .chip-on
   and paint over a selected chip's accent field the moment the mouse reached it. */
.chip:not(.chip-on):hover { box-shadow: inset 0 0 0 1px var(--green-hi); }

.chip-on {
  color: var(--accent-on);
  background: var(--green-hi);
  box-shadow: none;
  font-weight: 500;
}

/* The chip's data dot, in the same hue the board's card tags give that axis, so
   one label reads as the same thing in both places. Only labels carry it:
   components have no colour of their own, and a dot in the "component" hue on
   every one of them would be decoration pretending to be data. */
.chip-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-hi-text);
}
/* On a filled chip the dot sits ON the accent, where a colour picked against
   the pane background need not read at all. The declared foreground does, by
   construction — the same trade the menu rows make. */
.chip-on .chip-dot { background: var(--accent-on); opacity: .55; }

/* ============================================================
   Editor
   ============================================================ */

.editor { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.editor-btn {
  font-family: inherit;
  font-size: 12px;
  min-width: 26px;
  color: var(--green-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px 7px;
  cursor: pointer;
}

.editor-btn:hover { color: var(--green-hi); border-color: var(--border); }

/* The formatting the caret is currently inside. See refreshToolbar().

   This has to out-shout :hover, and it is the same treatment .chip-on uses for
   the same reason — "this is on" and "your mouse is here" are different claims,
   and the first one has to survive the second. Filled and bordered rather than
   only re-coloured: hover already re-colours, so a colour-only "on" state is
   indistinguishable from hovering, and the button would go back to looking off
   the moment you moved the mouse to read it. */
.editor-btn-on {
  color: var(--head);
  border-color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 14%, transparent);
}

.editor-btn-on:hover { color: var(--head); border-color: var(--green-hi); }

/* The way out of every other button, so it is set apart from the set it undoes.
   A margin alone would read as a gap rather than as a division, hence the rule.

   The rule is a pseudo-element and NOT the button's own right border, which is
   what this was first: a border-right in --border, restated at higher
   specificity so it would survive .editor-btn-on recolouring the other three.
   That worked exactly as written and looked broken — Plain lights up whenever
   the caret is in ordinary text, so most of the time it drew three --green-hi
   edges and one dim one, which does not read as "separator", it reads as a
   border that got cut off. The divider is not part of the button, so it is not
   drawn as part of the button. */
.editor-btn-plain {
  position: relative;
  margin-right: 9px;
}

.editor-btn-plain::after {
  content: "";
  position: absolute;
  /* Centred in the 9px margin: 4px of gap either side of a 1px rule. */
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  /* Short of full height, so it reads as a divider between buttons rather than
     as an edge belonging to one of them. */
  height: 60%;
  border-right: 1px solid var(--border);
}

/* The toolbar buttons look like what they do — the conventional cue, and the
   only thing that makes a one-letter button readable. */
.editor-btn-bold { font-weight: 700; }
.editor-btn-italic { font-style: italic; }
.editor-btn-underline { text-decoration: underline; }
.editor-btn-strike { text-decoration: line-through; }

.editor-btn:disabled { opacity: .4; cursor: default; }
.editor-btn:disabled:hover { color: var(--green-dim); border-color: transparent; }

/* The editable surface. It carries .markdown too, so what is being typed is
   drawn by the very same rules that draw the issue once it is saved — which is
   the entire claim a WYSIWYG editor makes, and it only holds while there is one
   stylesheet for both. */
.editor-surface {
  padding: 12px;
  min-height: 180px;
  background: var(--bg);
  outline: none;
  overflow-wrap: break-word;
}

.editor-surface:focus { box-shadow: inset 0 0 0 1px var(--border-hi); }

/* contenteditable has no placeholder attribute, so this draws one. :empty is
   true only with no child nodes at all, which is exactly the state the surface
   is in before the first keystroke. */
.editor-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--green-dim);
  opacity: .6;
}

.editor-disabled .editor-surface { opacity: .5; }

.editor-link-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.editor-link-row .field { flex: 1; }

/* ============================================================
   Rendered markdown

   Everything in here was produced by renderMarkdown, which emits
   only tags it built itself. See client/Markdown.kt.
   ============================================================ */

.markdown { color: var(--body); font-size: var(--dt-font-prop-size, 15px); }
.markdown p { margin: 0 0 10px; }
.markdown h1, .markdown h2, .markdown h3,
.markdown h4, .markdown h5, .markdown h6 {
  color: var(--head);
  margin: 16px 0 8px;
  font-size: 16px;
}
.markdown h1 { font-size: 20px; }
.markdown h2 { font-size: 18px; }
.markdown ul { margin: 0 0 10px; padding-left: 18px; }
.markdown a { color: var(--green-hi); }
/* A ticket reference (LNL-139) — "LNL-12" linked to the issue it names, wherever
   it is rendered: a description, a comment, a card or an issue title. Underlined
   on purpose, including inside .markdown where ordinary links are not, because the
   affordance is the whole point — this word is a link to another ticket. */
.ticket-ref {
  color: var(--green-hi);
  text-decoration: underline;
  cursor: pointer;
}
/* The issue title appended after a reference (LNL-144). Dimmed and un-underlined
   so the key stays the emphatic part and the title reads as the gloss it is,
   while the whole anchor remains one link. Matches the ticket autocomplete, which
   draws the key in --green-hi and the title in --green-dim. */
.ticket-ref-title {
  color: var(--green-dim);
  text-decoration: none;
}
.markdown code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: .9em;
}
/* A code block, or a diagram the renderer recognised (LNL-181).

   `white-space: pre` is the load-bearing declaration and the reason the feature
   exists: every other element here collapses runs of spaces, which is precisely
   what a column-aligned table is made of, so an ASCII table rendered as a
   paragraph arrives as one squashed line of words. `pre` and not `pre-wrap` —
   re-wrapping a drawing at the container's width destroys it just as thoroughly
   as collapsing it, so a wide table scrolls instead.

   The horizontal scroll is on the block itself, never on the page: an issue
   description is inside a pane that must not grow a second scrollbar because
   somebody pasted a wide table into it. */
.markdown pre {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono, monospace);
  font-size: .9em;
  line-height: 1.35;
  white-space: pre;
  overflow-x: auto;
}
/* The <code> inside a fence is the block, not a chip in a sentence. Without this
   it inherits .markdown code's border, background and padding and draws a second
   box inside the first, inset by a few pixels along every edge. */
.markdown pre code {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
}
/* An oversized screenshot must not blow out the modal. */
/* Scaled down to a thumbnail, not shown at whatever size the camera produced.

   A screenshot pasted into an issue is routinely 2000px tall, and at full size it
   *is* the issue — the description above it and the comments below it are a
   scroll away in either direction. The height cap is what keeps an image an
   illustration rather than the page. `width: auto` with `max-height` preserves
   the aspect ratio; setting both dimensions would squash it.

   The full-size view is a click away — see .lightbox, and Lightbox.kt. That is
   what makes capping the height honest rather than lossy: nothing is hidden, it
   is one click away instead of thirty centimetres of scroll. */
.markdown img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  /* An image is inline by default, so it sits on the text baseline and drags a
     descender's worth of gap under itself — visible as a stray few pixels inside
     the border. */
  display: block;
}

/* Inside the editor a click means "put the caret here", so the cursor must not
   promise a viewer that deliberately does not open there. See Lightbox.kt. */
.editor-surface img { cursor: default; }

/* A file that is not an image — a PDF, a zip of logs, a screen recording.

   Drawn as a box rather than as underlined blue text because it is not a link,
   whatever its markup says: clicking it does not take you anywhere, it puts a
   file on your disk. Something that looks like a link and behaves like a button
   is the sort of thing people click once and then never trust again.

   The label already carries the filename and the size — the renderer puts them
   there, because markdown has nowhere else to keep them; see attachmentMarkdown.
   So this adds only the one thing the label cannot say, which is what will
   happen when you click it: the arrow, and the frame around it that says the
   whole thing is one target.

   `display: inline-flex` and not `block`: the anchor sits inside whatever
   paragraph the editor dropped it in, and a block-level anchor inside a <p> is
   invalid markup the browser then re-parents, which moves the caret. */
.markdown a.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--body);
  text-decoration: none;
  font-size: 12px;
  /* A long filename must not push the dialog wider than the screen. It wraps
     rather than being clipped: the end of a filename is where the extension is,
     which is the part a reader is looking for. */
  overflow-wrap: anywhere;
}

.markdown a.attachment:hover {
  border-color: var(--green-hi);
  color: var(--head);
}

/* The download arrow, drawn in CSS rather than shipped as an icon: it is two
   characters, and an <img> here would be a network request — and, in the editor's
   surface, a second element for the serialiser to have opinions about. ::before
   is not in the DOM at all, so it cannot end up in the stored markdown. */
.markdown a.attachment::before {
  content: "↓";
  flex: none;
  font-size: 13px;
  line-height: 1;
  color: var(--green-hi);
}

/* ============================================================
   Lightbox — the full-size image viewer
   ============================================================ */

/* Above .modal-backdrop's 10000. An image is almost always opened from
   inside a modal — an issue's description, a comment — and a viewer that
   appeared behind the dialog it was opened from would look like nothing
   happened. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  /* Darker than .modal-backdrop's .75: this one is showing a picture, and the
     less of the page bleeding through the better. */
  background: rgba(2, 6, 12, .92);
  cursor: zoom-out;
}

/* Bounded by the VIEWPORT, not by the image's own size. `object-fit: contain`
   keeps the aspect ratio while fitting inside both bounds — without it a tall
   image would be squashed to the height cap. A small image is left at its own
   size rather than blown up: there is nothing to reveal, and upscaling it would
   just make it blurry. */
.lightbox-image {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-hi);
}

/* The corner close button. Absolute, not a flex child: .lightbox centres its
   column, and a button left in that flow would sit above the image rather than
   over the corner. .lightbox's `position: fixed` is the positioned ancestor
   this resolves against. `cursor: default` overrides the overlay's zoom-out so
   the button reads as a button, not more backdrop. */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.icon-close { width: 18px; height: 18px; }

.lightbox-hint {
  margin: 0;
  color: var(--green-dim);
  font-size: 11px;
  letter-spacing: .06em;
}

/* Headings take the brand DISPLAY face when a deployment (or user) sets one
   (`--dt-font-display`, e.g. Framna Serif); otherwise `inherit` keeps them on
   whatever they always inherited — NOT `--prose`, whose unbranded fallback is
   monospace and would force titles to a fixed-width face. */
.issue-title { color: var(--head); font-size: 18px; margin: 0 0 4px; font-family: var(--dt-font-display, inherit); }
/* A URL in the title is a link (LNL-112) — same accent and underline as the
   card-title and body links, so a link reads as one wherever it appears. */
.issue-title a { color: var(--green-hi); text-decoration: underline; }
.issue-byline { color: var(--green-dim); font-size: 13px; margin: 0; }

/* The read face's one line of identity (LNL-14): who filed it and when, who is on
   it, and who else is watching, all composed into the byline text, with the assign
   button trailing it as the only live control. One dim line in place of the three
   bands — byline, assignee, "Watched by" — the header used to stack before a word
   of the issue showed.

   Wraps rather than truncates on a narrow window. `align-items: center` rather than
   baseline: the button has padding the text does not, and baseline alignment leaves
   it sitting visibly low against the line it trails. */
.issue-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.issue-description { margin-top: 12px; }

/* ============================================================
   Comments
   ============================================================ */

.comments-heading {
  color: var(--green-dim);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 24px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* The gap has to beat the padding inside a comment, or the space between two
   comments reads as part of one — at 10px against .comment's 10px, a thread was
   a single wall of text with hairlines through it. */
.comments { display: flex; flex-direction: column; gap: 20px; margin-bottom: 12px; }
.comments-empty { color: var(--green-dim); font-size: 13px; margin: 0; }

/* Outlined, not filled. A comment sits directly on the issue window's own
   --panel interior, so it is not raised above anything and --panel-2's raised
   tone had nothing to raise off — under Lemonade --t-surface-alt is a deep
   yellow, and a thread read as a stack of muddy slabs under the description's
   near-white. This is the same deeper-yellow-on-yellow trap .card hit; there
   the fix was --panel-2 → --panel because a card lies on a --bg column, but a
   comment's parent is already --panel, so the equivalent fix is no fill at all.
   The border and the 20px gap carry the card shape on their own. */
.comment { border: 1px solid var(--border); border-radius: 4px; padding: 10px; }
.comment-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
/* Author and its agent badge, grouped on the left. This carries the flex the
   author span used to, so the Edit/Delete buttons still land far right while the
   badge stays beside the name it names. min-width:0 lets the group shrink rather
   than shoving the buttons off the edge on a narrow modal. */
.comment-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
/* The byline is author AND timestamp in one span (see commentByline) — they
   cannot be sized apart without splitting it, and at 11px they read as fine
   print beside 15px body text. */
.comment-author { color: var(--green-hi); font-size: 13px; }
.comment-body p:last-child { margin-bottom: 0; }
/* ============================================================
   History
   ============================================================ */

/* Lighter than .comment on purpose, and the difference is the point: a comment
   is something a person wrote and is worth a card, an event is a line in a log.
   Fifty bordered history rows would out-shout the conversation above them, so
   these get no border, no fill and no padding — just rhythm.

   The gap is tighter than .comments' 20px for the same reason: these rows are
   two short lines each rather than paragraphs of markdown, and 20px between
   them would spread a dozen events over a screen of mostly nothing. */
.history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.history-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* The sentence — what happened. Full-strength text, because this is the line
   being scanned. */
.history-what {
  color: var(--green-hi);
  font-size: 13px;
  margin: 0;
}

/* Who and when, dimmed and one step smaller. Inverted against .comment, where
   the author leads: a history is read for what changed, with the attribution as
   the follow-up. Same flex row as .comment-meta so the agent badge sits beside
   the name rather than under it. */
.history-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.history-who {
  color: var(--green-dim);
  font-size: 12px;
}


/* ============================================================
   The account corner — far right of the top bar.

   Was a 260px sidebar with two stacked provider buttons. It is
   now one button: "Sign in…", which opens the picker, or the
   user's name and mark, which open a menu holding sign-out. The
   provider buttons moved into the modal (see .signin-option),
   where there is room to say what choosing one costs.
   ============================================================ */

.account {
  /* The anchor for .account-menu, which is absolutely positioned. Without a
     positioned ancestor the menu would hang off the viewport's top-left rather
     than off the name it belongs to. */
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Reserve the row before the first session fetch returns. The view toggles
     `visibility` rather than `display` for the same reason: a top bar that grows
     a button's width once the server answers shoves the whole row sideways, and
     that reads as a glitch.

     30px, not the 36px this reserved back when the account corner was its own
     bar and could pick any height it liked. It now rides the toolkit's trailing
     top-bar slot, alongside .dt-topbar-icon-button, whose chrome row is 30px.
     The slot sizes to its tallest child, so a 36px reservation here made the
     whole trailing cluster 36 and pushed the toolkit's own icons 3px below the
     brand opposite. Whatever this number is, the sidebar brand must match it. */
  min-height: 30px;
}

/* Name and mark are one button. */
.account-btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chrome-accent-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
}

.account-btn:hover { border-color: var(--chrome-border); background: var(--chrome-track); }

.account-name {
  font-size: 12px;
  color: var(--head);
  /* A display name is whatever the provider had on file — it can be a sentence.
     Truncate rather than wrap: the top bar is one row, and a name that wraps
     takes the whole bar's height with it. */
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-signin { font-size: 12px; }

/* The menu. Right-aligned to the corner it hangs from — `left: auto; right: 0`
   rather than a left offset, because it is wider than the button above it and
   growing leftward is the only direction with room.

   Opened by HOVER, in CSS, with no state in the view model behind it. That is
   why there is no `.account-menu-open` class: a hover menu driven by JS needs
   mouseenter/mouseleave plus a close timer to survive the pointer crossing the
   gap, and every one of those is a way to strand the menu open.

   Keyboard access is `:has(:focus-visible)` and NOT `:focus-within`, which is a
   distinction with a bug behind it. :focus-within is true for a MOUSE click too
   — clicking the account button focuses it — so the menu stayed open after the
   pointer had left and nothing but a click elsewhere would dismiss it. It read as
   a menu that never goes away. :focus-visible is set only when the browser judges
   focus should be *shown*, which is keyboard navigation and not a click, so the
   two cases stop fighting: hover governs the mouse, focus-visible governs the
   keyboard, and neither strands the other. */
/* Surface, rows, radius, hover and separators are the TOOLKIT's — the box
   carries `.dt-hover-menu` too, and everything this rule still says is about
   where the menu hangs rather than what it looks like.

   Every selector below names BOTH classes, and that is load-bearing rather
   than tidy: the toolkit injects `.dt-hover-menu` as an inline <style> at
   runtime, which lands AFTER this file in document order, so a lone
   `.account-menu` ties on specificity and loses on order — `position: fixed`
   and `display: flex` would both survive and the menu would hang open in the
   corner of the viewport. Same trap as LNL-54 and the version picker's
   z-index; see `.lunicle-dropdown-menu.dt-hover-menu`. */
.account-menu.dt-hover-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  /* The menu hangs off the topbar's account button, so it must clear the
     maximised-pane layer (1000) or it would open behind a maximised board.
     Below the modal layer (10000) so dialogs still cover it. */
  z-index: 2000;
  display: none;
  min-width: 160px;
  /* The toolkit panel scrolls; this one must not. `overflow-y: auto` establishes
     a clipping box, and the hover bridge below is a pseudo-element positioned
     OUTSIDE this element's padding box — it would be clipped away and the six
     pixels between button and menu would become dead space again. Three rows
     never need to scroll, so the scroll is what gives. */
  overflow: visible;
}

/* The bridge across the 6px gap above.

   Without it the menu is unreachable: the pointer leaves the button, crosses six
   pixels of nothing, :hover goes false, and the menu vanishes before it can be
   entered. Invisible and unclickable, purely a hover surface — the alternative,
   removing the gap, glues the menu to the button and reads as one shape. */
.account-menu.dt-hover-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px; /* the 6px gap, plus this element's own 1px border */
  height: 7px;
}

.account-signed-in:hover .account-menu.dt-hover-menu,
.account-signed-in:has(:focus-visible) .account-menu.dt-hover-menu { display: flex; }

/* The row is `.dt-hover-menu-item`: 30px, 7px radius, the chrome accent under
   the pointer. All this adds is the one thing the toolkit leaves to the host —
   a disabled row, which here is the admin's own name in the impersonation list. */
.account-menu-item.dt-hover-menu-item:disabled { opacity: .5; cursor: default; }

/* ── Impersonation: the armed strip and the tint ───────────────────────────

   The submenu that used to live here has gone with the address list it folded
   out of. There is nothing to fold out any more: the owner is signed out first
   and then types an address at a genuine sign-in, so the menu's whole share of
   this is one ordinary row.

   What replaces it is a marker, and a marker has one job — to be impossible to
   miss and impossible to dismiss. Everything below is toggled off a class the
   server's answer sets on every session response, so it survives a reload and
   there is no control anywhere that turns it off. */

/* The strip above the app, up for BOTH impersonation states.

   Armed, it is the one state with no other tell: the caller is genuinely signed
   out, so the corner is a "Sign in…" button and the board is the public view —
   which is exactly what is being looked at, and exactly why something has to say
   so. Probing, the tint says it too, but a frame is not a CONTROL and cannot name
   anybody, and both the name and the way out live here.

   A FIXED height rather than one that follows its text, because the shell below
   has to be shortened by exactly this much — and a strip that grew by a line on a
   narrow window would put the tab bar back underneath it. The text truncates.

   The colour is a LITERAL rather than `var(--red)`, which is the theme's danger
   token. A marker's job is to look the same alarming thing on every instance, and
   a theme is free to make its danger colour a pale coral — one that reads as an
   error *in* the palette and gives white type about 2:1 sitting under it. This
   one red is picked against white type (≈5.6:1) and no theme can retint it. */
:root {
  --impersonation-strip-h: 30px;
  --impersonation-red: #c62828;
}

.impersonation-armed-strip {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--impersonation-strip-h);
  /* Above the signed-out landing surface (z-index 9000), which is exactly what
     this strip is there to annotate — and above the tinted frame below. Mounted on
     <body> so this number is measured against the root stacking context rather than
     against the top bar's. */
  z-index: 9100;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--impersonation-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Make room for it rather than covering the tab bar.

   The shell is exactly viewport-height, so a fixed strip sits on top of its first
   30px — which is the tab strip, the one row you need most while checking what
   somebody else can see. Offset and shorten by the same token, so the two cannot
   disagree.

   ── Why the offset is the BODY's padding and not `#app`'s margin ────────────

   Because a top margin on the first child COLLAPSES out through <body> — body
   carries no padding or border of its own, so there is nothing for the margin to
   collapse against — and lands on the body's outer edge instead. The shell was
   then the right height and in the right place, but the document had grown by the
   strip's 30px: a scrollbar appeared, and the page could be scrolled by exactly
   that much. Scrolled, the strip stays put (it is fixed) and the whole shell
   slides underneath it, so the top bar loses its first 30px of a 54px row —
   half-clipped tabs, half-clipped icons, and the whole thing an idle trackpad
   flick away from happening. Padding cannot collapse, so this cannot recur.

   Body is `border-box` (as is everything here), so the padding comes out of its
   height rather than adding to it, and the two declarations below sum to exactly
   100vh with nothing left over to scroll.

   ── Why `!important`, which is otherwise not used in this file ──────────────

   Because the toolkit mounts `#app` with an INLINE `height: 100vh; margin: 0`,
   and an inline style beats every selector a stylesheet can write. This is the
   one case the keyword exists for: overriding a declaration set imperatively by
   code this repo does not own. The alternative — reaching into `#app.style` from
   Kotlin — would mean two places writing the same two properties and racing
   whenever the toolkit re-mounted.

   `100vh` rather than `100%` to mirror the value being overridden, so the two
   read as the same measurement with a subtraction rather than as two opinions.

   Scoped to a body class, so an instance with the feature switched off — which is
   very nearly all of them — matches nothing here. */
body.app-impersonation-strip {
  padding-top: var(--impersonation-strip-h);
}

body.app-impersonation-strip > #app {
  height: calc(100vh - var(--impersonation-strip-h)) !important;
}

/* One line, truncated rather than wrapped — see the fixed height above. */
.impersonation-armed-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impersonation-armed-cancel.btn {
  padding: 2px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.impersonation-armed-cancel.btn:hover { background: rgba(255, 255, 255, .3); }

/* The corner pill that used to sit beside the name is GONE. It said the same
   word as the strip two rows above it, in the same colour, at the same moment —
   and the strip says it in a sentence, names who is being worn, and carries the
   way out. A second badge for the same fact reads as chrome rather than as an
   alarm; the marker is stronger for being said once and said properly.

   What remains is two things that are not each other: the strip (a sentence and
   a control) and the tint (a frame around the whole window). */

/* The tint: a border drawn inside the viewport's edge, on top of everything.

   `pointer-events: none` is load-bearing — this covers the entire window, and
   without it the whole app would be unclickable. An inset box-shadow rather than
   a real border so no layout moves when it appears: a border on <body> would
   reflow the board by a few pixels every time an impersonation started.

   The strip's red, not a second colour: frame and strip are one marker seen at
   two scales, and two ambers-and-reds around the same window would read as two
   unrelated things being wrong. */
body.app-impersonating::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 899;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--impersonation-red);
}

/* ── The profile modal's Connections section ────────────────────────────────
   The toggle is the least interesting thing here after the first day; the list
   of what is connected is what people come back for. Styled so the list reads
   as the subject and the setup instructions read as reference material. */

.section-title {
  color: var(--head);
  font-size: 13px;
  margin: 20px 0 0;
}

/* A value nobody should be asked to type: the server URL, and the command.
   The value wraps rather than truncating — a URL cut off at the panel edge is
   one somebody will copy by hand and get wrong, which is the whole failure this
   row exists to prevent. */
.copy-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.copy-value {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--body);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  /* anywhere, not break-word: these have no spaces to break at, so break-word
     would leave the line overflowing exactly as if nothing had been set. */
  overflow-wrap: anywhere;
  user-select: all;
}

.btn-small { font-size: 11px; padding: 6px 10px; }

.connections-setup { margin-top: 4px; }

.connections-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.connection-text { flex: 1; min-width: 0; }

/* The agent's self-reported name. Truncated rather than wrapped: it is chosen
   by whoever registered the client, so a long one is as likely to be someone
   pushing at the layout as it is to be honest. The row must stay one row. */
.connection-name {
  color: var(--head);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-detail {
  color: var(--green-dim);
  font-size: 11px;
  margin-top: 2px;
}

/* ── API access (LNL-222) ──────────────────────────────────────
   The token form: a name that takes the slack, then the two
   dropdowns and the button at their natural widths. Wraps on a
   narrow pane rather than squeezing the name to nothing. */
.api-token-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.api-token-form .field { flex: 1 1 180px; width: auto; min-width: 0; margin: 0; }

/* The toolkit's field trigger fills its row by default; here it sits beside
   the name at its own width instead. Three classes, not two: lunula injects
   `.dt-menu-trigger.dt-menu-trigger-field` after this sheet, so an equal
   specificity loses on source order. */
.api-token-form .dt-menu-trigger.dt-menu-trigger-field { flex: 0 0 auto; width: auto; min-width: 150px; }

/* The one time a token is on screen. Ringed in the accent so it is
   the thing the eye lands on: losing it means making another. */
.api-token-created {
  border: 1px solid var(--green-hi);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.api-token-created .field-label:first-child { margin-top: 0; }

/* An expired token stays listed — it is why an integration
   stopped — but reads as spent. */
.connection-row-expired .connection-name,
.connection-row-expired .connection-detail { opacity: 0.55; }

.api-docs-link { color: var(--green-hi); }

/* ============================================================
   A project's settings sections — vocabularies and Access.

   These only appear when EDITING a project, which is why they
   used to share the new-project dialog rather than getting a
   surface of their own. They have one now: LNL-194 moved them
   under the Projects rail in the settings pane, and these rules
   travelled with them. What an administrator wants is still
   "configure this project", and a name, its board columns and
   who it admits are all that one thing. See .settings-body
   below for the one thing that borrows from the issue modal and
   must not.
   ============================================================ */

/* This dialog's body scrolls as ONE column, and has to say so.
   `.modal-large .modal-body` above is `overflow: hidden` on purpose — the issue
   modal is a three-band split whose MIDDLE band scrolls, so a scrolling body
   there would scroll the title out from over the description. This dialog has no
   inner band to hand the job to: it is a form, then five vocabularies, then an
   Access section, all of it one continuous read.

   Without this rule the body inherits that `overflow: hidden` and simply clips.
   Found by opening the dialog and finding the privileges section unreachable —
   1300 of 2035 pixels of content, below the fold of a panel that would not
   scroll, with no scrollbar to suggest anything was missing. `display: block`
   goes with it: the inherited flex column is the shape the three bands need, and
   this content is not three bands. */
.modal-large .modal-body.settings-body {
  display: block;
  overflow-y: auto;
  /* Air between the content and the scrollbar. Not cosmetic: the scrollbar is
     laid out INSIDE this element, so without a gutter the fields and the
     On/Off pairs end exactly where the thumb begins and the column reads as
     jammed against it. Nothing needed this while scrollbars were the macOS
     overlay kind, which float over the content and take no width — styling
     them (see the Scrollbars section) made them real, and this is the room
     they now need. */
  padding-right: 14px;
}

/* One tab's worth of settings, scrolling on its own inside the tabbed body
   (LNL-102). Every tab is a pane and only the selected one shows; the body is
   the fixed-height flex column of `.modal-large .modal-body`, so flex:1 hands the
   visible pane the slack and min-height:0 lets its own overflow engage — the same
   band arrangement the issue window and the instance dialog use. The 14px gutter
   keeps the styled scrollbar off the controls, `.settings-body`'s reason for the
   same padding. In the small (new-project / non-admin) modal the body is a plain
   block: flex is inert there and the pane simply grows with its content, which is
   all the lone General tab ever holds.

   The bottom padding is the pane's own end-of-content margin. Without it the
   last control in a section — Structure's estimate buttons, Versions' switch —
   lands hard against the dialog's footer rule with nothing under it, which reads
   as a pane that has been cut off rather than one that has ended. It is inside
   the scroller on purpose, so scrolling to the bottom brings the gap with it. */
.project-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 14px;
  padding-bottom: 24px;
}

/* The env-variable / paste-token field group under the token-source row (LNL-141).
   Its <label> is the group's :first-child, so .field-label:first-child zeroes the
   top margin that would otherwise space it off the row of buttons above — leaving
   the label crowding the buttons. Give the group that margin back, matching the
   16px .field-label carries between fields elsewhere. */
.token-field-group { margin-top: 16px; }

.vocab-section { margin-top: 20px; }

/* The rows, and then the add field under them — in that order because the list
   is the subject. An add field above its list reads as a search box.

   ── One grid for both, and why ────────────────────────────────────────────
   These used to be two independent flex rows, and the mismatch showed: a row's
   name field ends where its buttons begin, the add row had only one button, so
   its field ran further right than every field above it and the section came to
   a ragged stop. Two columns fixes it at the root — the second column is `auto`,
   so it is as wide as the widest button cluster in the section, and every field
   in the first column ends on the same pixel.

   The two children are `display: contents` because the DOM has to stay two
   elements: the rows are rebuilt wholesale whenever they change and the add
   field must survive that, since it is where the cursor is when Add is pressed.
   `contents` is what lets the grid see through the wrappers to the cells. */
.vocab-list {
  display: grid;
  /* The name keeps a floor. The second column is `auto` and sizes to its widest
     cluster, so without one a status row — which carries two switches — took
     every pixel and left the name field zero wide. With the floor, the flags
     wrap under each other instead (see .vocab-status-flags). */
  grid-template-columns: minmax(min(9rem, 40%), 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
}

.vocab-rows,
.vocab-row,
.vocab-add { display: contents; }

/* Everything after the name, as one cell. Grouping them is what keeps the grid
   at two columns for a vocabulary that has a flag toggle and one that does not
   — and what gives the Add button below a single cell to fill. */
.vocab-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reset .toggle-row's stacked-form margins: inside a row it is one control
   among several, not a paragraph. Its label never wraps here — the row lays out
   horizontally and a wrapped "needs a resolution" would push the row taller
   than the field it sits beside. */
.vocab-flag {
  margin: 0;
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  gap: 8px;
}

/* No right edge to reach for here — this row sits among the field and the
   buttons rather than spanning the dialog, so the label sizes to its text and
   the pair follows it directly. */
.vocab-flag .toggle-label { flex: none; }

/* A status's two switches — "needs a resolution" and "unblocks dependents" — as
   one group allowed to wrap, for .vocab-relation's reason below: the arrows and
   Delete stay at the trailing edge, and it is the flags that fold onto a second
   line when the dialog is narrow, rather than the name field being squeezed out.
   Right-aligned so a wrapped second switch lines up under the first one's toggle. */
.vocab-status-flags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

/* A relation kind's extra controls: the opposite name and the two switches
   (LNL-215).

   This is the richest row in the dialog by some way — a status has one flag and a
   resolution has one flag, where this has a second text field and two — so it is the
   one row allowed to wrap. `flex-wrap` on the group rather than on
   `.vocab-row-actions` around it, so the arrows and Delete stay together at the
   trailing edge whatever this does: an admin hunting for Delete should not find it in
   a different place on this section than on the five above.

   The inverse field is capped rather than allowed to grow. It holds two or three
   words ("Blocks", "Duplicated by"), and a field that took the row's slack would be
   a 300px box for one of them while the switches beside it were squeezed. */
.vocab-relation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.vocab-inverse {
  flex: 0 1 auto;
  width: 160px;
  min-width: 110px;
}

/* Square, so the two arrows read as one pair of nudges rather than as two
   buttons with words missing. */
.vocab-move {
  flex: none;
  padding: 6px 9px;
  line-height: 1;
}

.vocab-delete { flex: none; }

/* Why the Delete beside it is dead, in two or three words ("13 issues", "the only
   status"). It sits IN the row rather than under it: a blocked row is the normal
   state of a working board — most columns have issues in them — so a full
   sentence per row would be a paragraph of scolding down the side of the dialog,
   where a count reads as a fact about the column.

   Muted and small, because it is an explanation and not a warning: nothing has
   gone wrong, the admin has simply asked about a column that is in use. The
   sentence saying what to do about it is on the button's title. See LNL-183. */
.vocab-blocked {
  flex: none;
  font-size: 11px;
  color: var(--green-dim);
  white-space: nowrap;
}

/* When a sprint finished, or "Open" (LNL-196). The same muted register as
   .vocab-blocked, because it is the same kind of thing — a fact about the row
   rather than a control — and it sits immediately before the button that changes
   it, so the pair reads as one statement: "Completed 14 Jul 2026  Reopen".

   It does not wrap, for .vocab-flag's reason: a broken date would make the sprint
   rows taller than every other section's. */
.vocab-completed {
  flex: none;
  font-size: 11px;
  color: var(--green-dim);
  white-space: nowrap;
}

/* Complete… / Reopen. Sized like the arrows and the Delete beside it, because it
   is a row action among row actions — the one thing it must not look like is the
   section's primary act. */
.vocab-complete {
  flex: none;
  white-space: nowrap;
}

/* A disabled control still has to look like it exists, and — for Delete — still
   has to be hoverable: its title says WHY it is dead ("3 issues are in this
   status"), and a control with pointer-events off never shows a tooltip. That
   is the whole reason this sets opacity rather than pointer-events. The tooltip
   is no longer the only explanation though — see .vocab-blocked. */
.vocab-row .btn:disabled,
.vocab-add .btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* A little air before the add field, so it reads as a separate act from the list
   above it. On the cells rather than on `.vocab-add`, which is `display:
   contents` and has no box for a margin to sit on. */
.vocab-add .field,
.vocab-add-btn { margin-top: 6px; }

/* Fills its cell — which is exactly as wide as the button cluster on every row
   above, because they share the column. That is the whole of what makes the
   section end on a straight edge. */
.vocab-add-btn { width: 100%; }

/* ── What is left of the privileges table ───────────────────────────────────
   One block per account rather than a grid with role columns. A grid was the
   obvious shape and the wrong one there: the privileges were sentences ("Edit
   issues they did not create"), not words, so a header row would either have
   truncated them or been three columns wide on a phone.

   The table is gone (LNL-194). A person holds one rung now, and Access renders a
   row per exception with a rung menu on it, so nothing in the bundle carries
   `.member-row`, `.member-name` or `.role-row` any more. Left here rather than
   swept out with the markup; a sweep is safe. */

.member-row {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.member-row:last-child { padding-bottom: 0; }

.member-name {
  color: var(--head);
  font-size: 13px;
}

.role-row { margin-top: 4px; }

/* Tighter than a standalone .toggle-row: these came in threes under one name,
   and the default 18px would have made one person's rights a screenful. */
.role-row .toggle-row { margin-top: 6px; }

/* ── The settings modals' tabs and master-detail ────────────────────────────
   Born with the instance settings modal — the first dialog here that was a
   master-detail rather than a scrolling column — and now shared: the settings
   pane reuses this whole block for its own tab strip (`.admin-tabs`) and the
   People tab's master-detail (`.admin-split` and the account list), so every
   settings surface reads as one family (LNL-102). The `admin-` prefix is
   historical; the rules are not admin-only.

   Note what is NOT here: `.settings-body`. Every other large modal adds that
   class to opt OUT of the `overflow: hidden` that `.modal-large .modal-body`
   sets, because they are one column and want the body itself to scroll. These
   ones want the inherited flex column kept, so the two panes below can scroll
   independently — picking the twentieth account must not scroll the rights
   table away, and reading a long rights table must not lose the list. That is
   the same three-band arrangement the issue window uses, with two bands. */

.admin-body { gap: 4px; }

/* ── The one settings pane (LNL-193) ────────────────────────────────────────
   Five tabs on the `.admin-tabs` strip above, and one of these under it. Each
   scrolls itself rather than the body, so switching tabs does not carry the strip
   off the top — the same three-band argument the block above makes, with the strip
   as the fixed band.

   The body has to opt out of `.pane-shell-body`'s own `overflow-y: auto` for that:
   two nested scrollers means the outer one wins and the strip scrolls away with the
   content. Scoped to this pane rather than fixed on `.pane-shell-body`, which every
   other pane-hosted view shares and none of the others wants a fixed band in. */
.settings-shell-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.settings-tab-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* The two facts a person cannot change about themselves, above everything on the
   You tab that they can. Muted and tight together so they read as one preamble
   rather than as two settings that have lost their controls. */
.settings-standing-line {
  font-size: 12px;
  color: var(--body);
  opacity: .75;
  margin: 0 0 2px;
}
.settings-standing-line + .settings-standing-line { margin-bottom: 12px; }

/* What replaced a tab strip.
   The profile dialog had its own User/MCP tabs inside a dialog that already had
   tabs, which is the thing LNL-193 removes: the outer strip is the only navigation
   in this pane. The two halves of You are one screen now, and a rule is what says
   "a new subject starts here" without offering a second place to be. */
.settings-section-rule {
  height: 1px;
  background: var(--border);
  margin: 26px 0 18px;
}

/* Underline tabs, not boxed segmented buttons: these are the two top-level
   sections of the dialog, and a labelled underline is the plainest thing that
   reads as "you are here". The row carries the full-width baseline; each tab
   sits on it and the selected one paints over it in the accent. */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  appearance: none;
  background: none;
  border: none;
  /* A transparent 2px underline held in reserve, so selecting a tab swaps its
     colour rather than nudging the row's height. */
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;   /* overlap the row's baseline so the accent replaces it */
  color: var(--green-dim);
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 80ms ease, border-color 80ms ease;
}
.admin-tab:hover { color: var(--body); }
.admin-tab-selected,
.admin-tab-selected:hover {
  color: var(--green-hi);
  border-bottom-color: var(--green-hi);
  font-weight: 600;
}

.admin-split {
  flex: 1;
  min-height: 0;      /* or the panes' own overflow never engages */
  display: flex;
  gap: 16px;
}

/* Fixed rather than a fraction of the panel: names are short and roughly the
   same length, so a list that grew with the dialog would be mostly whitespace
   while the rights sentences beside it wrapped. flex: none stops the long
   sentences in the detail pane from pushing on it. */
.admin-user-list {
  flex: none;
  width: 232px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding-right: 8px;
}

.admin-detail-pane {
  flex: 1;
  min-width: 0;       /* or a long e-mail widens the pane instead of wrapping */
  overflow-y: auto;
  padding-right: 6px;
}

/* A real <button>, so the list is keyboard-navigable and every row announces
   itself as pressable — but styled flat, because a list of twenty buttons drawn
   as buttons is a wall of chrome. Left-aligned text, since a centred name in a
   list reads as a heading. */
.admin-user-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 9px;
  margin-bottom: 2px;
  cursor: pointer;
  font: inherit;
  color: var(--body);
}

.admin-user-row:hover { background: var(--panel-2); }

/* The selection is carried by background AND border, not by colour alone: this
   is the one piece of state in the dialog that says which account everything on
   the right belongs to, and getting it wrong means editing the wrong person. */
.admin-user-selected,
.admin-user-selected:hover {
  background: var(--panel-2);
  border-color: var(--border-hi);
}

.admin-user-name {
  display: block;
  color: var(--head);
  font-size: 13px;
}

/* Trailing the name rather than on its own line — "you" and "admin" are
   adjectives on the name, and a line of their own would give them the weight of
   the e-mail below, which is the more useful fact. */
.admin-user-badge {
  margin-left: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-dim);
}

/* Truncated, unlike the copy-row's URL: an address here is a disambiguator
   between two identical names, so its first half does the whole job, and
   wrapping would make every row two lines tall for a fact most rows do not
   need. The full value is in the detail pane, where it does wrap. */
.admin-user-subtitle {
  display: block;
  font-size: 11px;
  color: var(--body);
  opacity: .7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-name {
  color: var(--head);
  font-size: 14px;
  margin: 0;
}

/* Wraps, unlike its counterpart in the list — see .admin-user-subtitle. */
.admin-detail-subtitle {
  font-size: 12px;
  color: var(--body);
  opacity: .8;
  margin: 2px 0 14px;
  overflow-wrap: anywhere;
}

/* The sentence standing in for an admin's rights table. Bordered rather than
   merely tinted, because it is a correction to what the reader is about to
   see below it, and a correction that reads as a caption gets skipped. */
.admin-note {
  font-size: 12px;
  color: var(--body);
  border-left: 2px solid var(--green-dim);
  padding: 2px 0 2px 10px;
  margin: 0 0 14px;
}

/* The read-only line reporting the user's OWN switch, under the admin's
   permission toggle. Indented and dimmed so it reads as a consequence of the
   switch above it rather than as a second control — there is nothing to click
   here, it is a status line. */
.admin-user-switch {
  font-size: 12px;
  color: var(--body);
  opacity: .8;
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--border-hi);
}

.admin-placeholder {
  font-size: 12px;
  color: var(--body);
  opacity: .7;
  margin-top: 24px;
}

.admin-rights { margin-top: 10px; }

/* ── The three instance tabs (LNL-195) ──
   Who gets in, People and Instance. They reuse `.admin-*` and `.access-*`
   wholesale — the point of the move was that a project's Access rows and the
   instance's are the same control — so what follows is only what those two
   families do not already cover. */

/* The lead line at the top of a tab: what this tab is, and (on Who gets in)
   what it is not. Heavier than a `.field-hint` because it is read once, before
   anything else on the tab, and lighter than a heading because it is a
   sentence. */
.admin-lead {
  font-size: 12.5px;
  color: var(--body);
  margin: 0 0 16px;
  max-width: 60ch;      /* a sentence longer than this stops being read */
  text-wrap: pretty;
}

/* One admission choice and, when it is dead, the reason under it. A column
   rather than a row: the reason is a sentence and belongs beneath the thing it
   explains, not squeezed beside it.

   The list gap is comfortably larger than the row gap, and that ratio is the
   only thing that says which button a reason belongs to. At 10px against 4px a
   reason sat almost as far from its own button as from the next one, so a list
   with two dead choices read as three buttons and two floating sentences. */
.admission-list { display: flex; flex-direction: column; gap: 16px; margin: 10px 0 6px; }
.admission-row { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }

/* ── Why the width cap is on the ROW and not on the button (LNL-217) ────────

   The three choices must be the same width — they are one column of choices,
   and a ragged edge reads as three unrelated controls. They were not: the cap
   lived on the button as `max-width: 42ch`, and the toolkit's
   `.dt-settings-choice-btn.dt-selected` sets `font-weight: 600`. `ch` is the
   width of "0" IN THE ELEMENT'S OWN FONT, so the selected button measured its
   42ch against a bolder face and came out ~40px wider than its siblings —
   every time, on every deployment, with nothing in this file to suggest why.

   On the row, `ch` is measured against the inherited body face, which is the
   same for all three whatever the selection does. The button then fills it.
   Any inherited-font unit would do; `ch` is kept because the number it is
   expressing is "the longest policy label". */
.admission-row { max-width: 42ch; }

.admission-choice {
  text-align: left;
  width: 100%;
}

/* The reason, indented so it reads as a note ON its choice rather than as a
   note on the section — flush left it hung off to the left of everything above
   it and belonged to nothing.

   ── The indent deliberately does NOT try to match the button's label ───────

   The obvious target is the button's inner text edge, and it is not reachable
   from here. That edge is the toolkit's `.dt-settings-choice-btn` padding plus
   its border, and the toolkit currently declares that selector TWICE with
   different values — `6px 14px` and, later and winning, `5px 10px`. So the
   number is both someone else's and already unstable, and a literal chasing it
   was wrong the first time it was measured in a browser.

   12px instead: enough to subordinate the sentence to the control above it,
   and close enough to the label that nothing reads as misaligned whichever of
   the toolkit's two paddings is in force. If the alignment ever has to be
   exact, the fix is a custom property on the toolkit button — not a better
   guess here. */
/* No width of its own: the row already carries the 42ch cap, so the sentence
   wraps at the button's right edge and the block reads as one column. It had
   `max-width: 42ch` here too, which looks like the same measurement and is not
   — `ch` at this element's 11px is a good deal narrower than `ch` at the row's
   inherited size, so the sentence broke roughly a third short of the button and
   read as a ragged second column. Same trap as the button width above, one
   element down. */
.admission-reason {
  margin: 0;
  padding-left: 12px;
  font-size: 11px;
  color: var(--body);
  opacity: .75;
  text-wrap: pretty;
}

/* A choice this deployment cannot honour (LNL-210). The rows have always been
   `disabled` in the DOM — the server decides which, and has since LNL-195 — but
   the toolkit's own disabled treatment is scoped to `.toggle` above, so these
   inherited none of it and looked exactly like the live ones. A control that
   takes a click and does nothing with it is read as a broken app, which is the
   opposite of what the sentence underneath is trying to say.

   Same two properties as the toggle's, for its reason. */
.admission-choice:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Selected AND dead — the case this had to be designed around rather than the
   edge case it sounds like. The stored policy is reported as the selection even
   once the deployment stops being able to honour it (see AdmissionState.selected,
   which argues why), so a chooser pinned to one domain lands here on first load:
   `anyone` is what is stored, and `anyone` is what cannot be picked.

   Dimming it as far as its dead siblings would say the deployment is not on that
   policy, which is false and is the single fact this list exists to report. So it
   keeps most of its weight and all of its accent, and the cursor and the reason
   beneath it carry "and you cannot choose it". */
.admission-choice.dt-selected:disabled { opacity: .8; }

/* A card per tier: the count is what makes it a card, so the head puts the name
   and the count on one line with the count trailing and muted. */
.tier-cards { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 4px; }

.tier-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
}

.tier-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tier-card-title { font-size: 13px; font-weight: 600; color: var(--head); }

/* Muted, because it is context for the switches rather than a thing to read
   first — but present, because "Members" over three accounts and over three
   hundred are different decisions. */
.tier-card-count { font-size: 11.5px; color: var(--body); opacity: .7; }

/* The card's own hint sits directly under the head and above its switches, so it
   does not inherit `.admin-general`'s 22px trailing gap. */
.tier-card .field-hint { margin: 4px 0 10px; }
.tier-card .field-hint:last-child { margin: 8px 0 0; }

/* Why the switches under it are dead (LNL-210). Set apart from the subtitle above
   it rather than blended in, because the two say different kinds of thing: the
   subtitle is what this tier IS, permanently, and this is what the deployment's
   current configuration has done to it — a fact that goes away when somebody
   edits brand.json.

   A rule down the side rather than a fill or a border box: the greying here runs
   one way, so a switch already on is still live beneath this sentence, and a
   warning-coloured panel wrapped around the pair would say they were both dead.
   Left-aligned against the card's own text column so it reads as a note on the
   card, not as an alert over it. */
.tier-card-refusal {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--body);
  opacity: .85;
  margin: 0 0 10px;
  padding-left: 9px;
  border-left: 2px solid var(--border);
  text-wrap: pretty;
}

/* The read-only deployment facts: a label column and a value column, so four
   answers read as a table rather than as four sentences. */
.deployment-facts { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }

.deployment-fact {
  display: flex;
  gap: 12px;
  font-size: 12px;
  align-items: baseline;
}

.deployment-fact-label {
  flex: none;
  width: 168px;
  color: var(--body);
  opacity: .75;
}

/* Wraps rather than widening the pane — a "ways in" value can be long, and a
   brand name is somebody else's string. */
.deployment-fact-value { flex: 1; min-width: 0; color: var(--head); }

/* People's left-hand column: the lead line above a list that scrolls on its own.
   The fixed width and the rule move here from `.admin-user-list`, which now
   simply fills what is left of this column. */
.admin-people-list-side {
  flex: none;
  width: 232px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 8px;
}

.admin-people-list-side .admin-lead { margin-bottom: 10px; }

.admin-people-list-side .admin-user-list {
  flex: 1;
  width: auto;
  border-right: none;
  padding-right: 0;
}

/* The second line of an account row: the tier, the address, and — where one is
   owed — the NOT SIGNED IN badge. A flex row with a real gap, because these three
   ran into each other as inline spans ("MEMBERNOT SIGNED IN") and wrapped a
   232px row onto three lines when they sat up beside the name. */
.admin-user-detail-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin-top: 2px;
}

/* The tier stamp every account row wears — "Member", "Instance owner". Quieter
   than the `you` badge on the line above, which marks one row out; this is
   simply a fact each row carries. */
.admin-user-tier {
  flex: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--body);
  opacity: .65;
}

/* The address gives up its own top margin inside the detail line, which owns the
   spacing now, and shrinks rather than pushing the badge off the row. */
.admin-user-detail-line .admin-user-subtitle { margin-top: 0; min-width: 0; }

/* The tier, under the name in the detail pane. */
.admin-detail-tier {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--body);
  opacity: .7;
  margin: 2px 0 10px;
}

/* One project's row in the People detail: the name, then the rung it reaches at
   the same 190px the pickers use elsewhere, so the answers line up in a column.
   Wraps, so a "the members row gives Contributor." note falls under the row
   rather than squeezing the rung. */
.admin-rights .admin-right {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.admin-rights .admin-right:first-child { border-top: none; }

/* The project name takes the room the rung does not, and dims on a row where
   this account reaches nothing — the word says so too, so the colour is not
   carrying it alone. */
.admin-rights .admin-right-text { flex: 1; min-width: 0; opacity: .6; }
.admin-rights .admin-right-held .admin-right-text,
.admin-rights .admin-right-held .access-row-rung { opacity: 1; }
.admin-rights .admin-right .access-row-rung { line-height: 1.5; padding: 0; text-align: right; }
.admin-rights .admin-right:not(.admin-right-held) .access-row-rung { opacity: .6; }

/* ── The Projects tab (LNL-93) ──
   One scrolling column of rows, each a name, the two move arrows and Delete. The
   grid keeps the arrows and the button in a fixed trailing block so names of
   different lengths do not shove the controls around. */
.admin-projects {
  flex: 1;
  min-height: 0;      /* or the list overflows the dialog instead of scrolling */
  overflow-y: auto;
  padding-right: 4px;
}

/* The General tab (LNL-115): a scrolling column of instance switches. Each switch
   is a toggle row followed by a hint; the hint carries the gap to the next switch
   so the two read as one group. */
.admin-general {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-general .field-hint { margin: 6px 0 22px; }
.admin-general .field-hint:last-child { margin-bottom: 0; }

.admin-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.admin-project-row:first-child { border-top: none; }

.admin-project-row-name {
  color: var(--head);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The prefix trails the name, muted — the same disambiguator the picker shows. */
.admin-project-row-prefix {
  color: var(--body);
  opacity: .6;
  font-size: 12px;
  margin-left: 8px;
}

.admin-project {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.admin-project:last-child { padding-bottom: 0; }

.admin-project-name {
  color: var(--head);
  font-size: 13px;
  margin-bottom: 4px;
}

.admin-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  margin-top: 4px;
}

/* `.admin-right-mark` and its themed held/not-held colours were here, and went with
   the tick-and-cross permission grid (LNL-195, following LNL-68 and LNL-89). A project
   row on the People tab says which RUNG somebody reaches, which is a word rather than a
   mark — see `.admin-rights` above, which styles it. */

.admin-right-text {
  color: var(--body);
  opacity: .65;
}

.admin-right-held .admin-right-text { opacity: 1; }

/* ============================================================
   The @mention autocomplete

   Fixed to the viewport and mounted on <body>, not inside the
   editor: it has to escape .editor-host's overflow and the
   modal's, or it is clipped exactly when the caret is near the
   bottom of the surface. See MarkdownEditor.buildMentionMenu.
   ============================================================ */

.mention-menu {
  position: fixed;
  /* Above .modal-backdrop (10000) and the lightbox (10010): a mention is
     typed inside a modal, and a list drawn behind it would look like the
     "@" did nothing. */
  z-index: 10020;
  min-width: 200px;
  max-width: 320px;
  /* Tall enough to hold a full eight rows (the ticket list is capped at
     TICKET_OPTION_LIMIT = 8, ~256px including padding + border), then it
     scrolls — the old 240px cut the eighth row in half and left it out of
     reach, since the last row is only scrollable-to when the browser counts
     the container's bottom padding, which not all do (LNL-139). A list as
     tall as the window would cover the very text being written, so this
     stays modest; longer @-mention lists still scroll. */
  max-height: 288px;
  overflow-y: auto;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.mention-menu-item {
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* One highlight class, driven by the arrow keys AND by hover — the row
   the mouse is over is the row Enter would take, so there is only ever
   one "this one" on screen. See drawMentionMenu's mouseenter. */
.mention-menu-item-on {
  color: var(--head);
  background: color-mix(in srgb, var(--green-hi) 18%, transparent);
}

/* A ticket-autocomplete row (LNL-139): the reference in the accent, the issue's
   title beside it in the dim tone, truncating so a long title cannot widen the
   popup. Same menu, same highlight — only the row has two parts. */
.ticket-menu-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.ticket-menu-key {
  color: var(--green-hi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticket-menu-title {
  color: var(--green-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Epics (LNL-55): the parent link and the children list in the issue window.

   The parent rides in the identity band as a wrapping row — a "Parent" label
   (edit-only, hidden in read mode by the shared .field-label-edit rule), the
   clickable chip, the picker, and the detach button. */
.issue-parent {
  margin: 2px 0 6px;
}

/* The label row, and the one control that acts on the whole section. Detaching
   used to sit UNDER the picker, where "Set a parent issue…" and "Remove from
   parent" stacked into a sentence nobody wrote — a button parked below a field
   reads as that field's own action. Up here, right-aligned against the caption,
   it reads as something you may do to this band. */
.issue-parent-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 16px;
}
.issue-parent-header > .field-label { margin-top: 0; }
.issue-parent-header > .btn { margin-left: auto; align-self: center; }

.issue-parent-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.issue-parent-chip { font-variant-numeric: tabular-nums; }

/* The add/set picker reuses .mention-menu's chrome — including its `position:
   fixed`, which escapes the scroll pane and footer that would clip an absolute
   menu. IssuePicker.position() anchors it to the input's box (and flips it above
   the field when the field is low in the viewport). */
.issue-picker { flex: 1 1 220px; min-width: 180px; }
.issue-picker > .field { width: 100%; }
.mention-menu.issue-picker-menu { min-width: 0; max-width: none; }

.issue-children-section { margin-bottom: 14px; }
.issue-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.issue-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.issue-child-link { font-variant-numeric: tabular-nums; }
.issue-child-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
/* This issue's links to other issues (LNL-215).

   Directly under the children and styled as their sibling — the same 4px row gap,
   the same `.ticket-ref` links — because they answer the same question from
   different sides: what this work is made of, and what it waits on.

   One heading per direction of per kind, and the heading is a WORD rather than a
   chip: "Blocked by" is a preposition introducing the list beneath it, and a pill
   would make it read as a label the issue wears. Dim and uppercase-tracked like the
   read-mode field captions, which is the register this app already uses for "the
   following is the answer to this". */
.issue-relations-section { margin-bottom: 14px; }
.issue-relations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.issue-relation-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.issue-relation-label {
  color: var(--green-dim);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.issue-relation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.issue-relation-link { font-variant-numeric: tabular-nums; }

/* The add control: kind, then issue, on one row — one sentence, not two settings.
   The kind picker is sized to its words and the issue picker takes the rest, so a
   long kind name is readable and the typeahead still has room to show a title. */
.issue-relation-add {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
/* Two classes, and the doubling is not stylistic: the toolkit's own
   `.dt-menu-trigger-field` sets `flex: 1 1 auto` and `max-width: 100%`, and its sheet
   is injected at mount time — AFTER this one — so a single-class rule here loses every
   tie and the kind picker takes the whole row, pushing the issue picker onto a second
   line. Same reason the modal rules at the top of this file double theirs. */
.issue-relation-add > .issue-relation-kind {
  flex: 0 1 auto;
  min-width: 130px;
  max-width: 220px;
}

/* ============================================================
   The estimate popover (LNL-215)
   ============================================================ */

/* Sits on the shared `.dt-hover-menu` chrome, like the version picker — see
   EstimateDropdown for why this is a popover and not a modal. What is added here is
   only what a menu of ROWS does not need: a row of boxes, and a footer.

   `padding` rather than the menu's usual zero, because the contents are fields
   rather than full-bleed rows: a text box flush against a popover's edge reads as a
   rendering fault. */
.lunicle-dropdown-menu.estimate-menu {
  padding: 10px;
  min-width: 220px;
}

.estimate-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* One box and its caption. `flex: 1` on all three so days, hours and minutes are the
   same width — they hold the same kind of number, and unequal boxes would suggest
   one of them takes a bigger one. */
.estimate-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.estimate-caption {
  color: var(--green-dim);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* Tabular figures: three boxes of digits side by side that do not line up read as
   sloppy in a way a single field never does. */
.estimate-field {
  width: 100%;
  font-variant-numeric: tabular-nums;
}

/* The "…or type 2d 4h" line. The only documentation this control can carry, so it
   is present rather than left to be discovered — but dim and small, because the
   three boxes above it are what nearly everybody will use. */
.estimate-hint {
  margin: 6px 0 0;
  color: var(--green-dim);
  font-size: 11px;
}

/* Clear at the leading edge, Set at the trailing one, with the gap between them
   doing the separating. They are not a pair of equals: `margin-left: auto` on the
   primary is what puts a hand's width between "throw this away" and "keep this",
   which is the one mis-click worth designing against here. */
.estimate-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.estimate-actions > .btn-primary { margin-left: auto; }

/* The estimate's read chip. Deliberately takes NO hue of its own, unlike the sprint's
   violet and the versions' teal: those two mark axes an issue can be on, where this
   is a measurement of the issue in front of you, and a fourth colour in that row
   would be spent saying "this is a different kind of fact" about the one chip whose
   content already says so. --mono for the same reason the epic count uses it: it is
   a number, and numbers in this app are fixed-width. */
.tag-estimate {
  color: var(--green-dim);
  font-family: var(--mono);
}

/* "…or their agent", under the assignee dropdown in the editor (LNL-215).

   Inside the assignee's own cell rather than a cell of its own — it qualifies the
   answer above it and is not a seventh field. The top margin is what separates it
   from the dropdown; the label shrinks because a grid track sized for a select is
   narrow, and "Assign to their agent" at field size would wrap in it.

   STACKED rather than side by side, which is the one place this app's toggle rows
   are: every other one sits in a full-width band with room for a sentence, and this
   one lives in a grid track sized for a `<select>` — about 150px. Beside the pair the
   label had ~70px and broke "Assign to their agent" across two lines mid-phrase, with
   the buttons hanging off the second one. On its own line it reads in one go and the
   pair sits under it, which also lines the pair up with the dropdown's left edge. */
.issue-agent-toggle {
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 4px 8px;
}
.issue-agent-toggle .toggle-label {
  flex: 1 1 100%;
  font-size: 11px;
}

/* Square-ish reorder buttons, disabled to a dim state at the ends. */
.btn-arrow {
  min-width: 28px;
  padding: 2px 8px;
  line-height: 1.2;
}
.btn-arrow:disabled { opacity: .4; cursor: default; }

/* A rendered mention: the name in the accent, the syntax gone.

   Inside .markdown because that is where renderMarkdown's output lands —
   the read face, a comment, and the editor surface alike, so a mention
   looks the same while it is being written as it does once posted.

   Deliberately colour and weight rather than a pill with a background:
   mentions sit inside sentences, and a box around one breaks the line
   it is part of. */
.markdown .mention {
  color: var(--green-hi);
  font-weight: 600;
}

/* ============================================================
   Watch button (LNL-46)
   ============================================================ */

/* The pill that replaced two labelled toggle rows — one on the issue window,
   one in project settings. Both used to spend a full row on a sentence and a
   switch to carry a single bit; the identity band on a short issue pane
   competes with the description for height, and that sentence was the least of
   what belonged there.

   Its two states are the whole design. NOT watching is quiet — dim text, a
   hairline border, nothing that pulls the eye. Watching is loud: accent text,
   accent border, a soft wash behind it. The word flips with the styling
   ("Watch" → "Watching"), so the control reads correctly whether you notice
   the colour or the label first, which is what lets it live without a caption
   next to it. See WatchButton, which owns that pairing. */
.watch-btn {
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  appearance: none;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}

.watch-btn:hover:not(:disabled) {
  color: var(--green-hi);
  border-color: color-mix(in srgb, var(--green-hi) 45%, transparent);
  background: color-mix(in srgb, var(--green-hi) 8%, transparent);
}

.watch-btn:disabled { opacity: .5; cursor: default; }

/* The on state. Border at full accent rather than the 20%-alpha --border, which
   is the "strong border" the issue asks for and the thing that separates this
   from its own hover. */
.watch-btn.watch-on {
  color: var(--green-hi);
  border-color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 10%, transparent);
}

.watch-btn.watch-on:hover:not(:disabled) {
  background: color-mix(in srgb, var(--green-hi) 18%, transparent);
  box-shadow: 0 0 10px var(--glow);
}

.icon-eye { width: 16px; height: 16px; flex: none; }

/* The pill shares the title's row, hard right. A row of its own would cost the
   same height as the labelled row it replaced, which is the whole complaint.

   `flex-start` is what makes the sharing work: a title that wraps to two lines
   on a narrow pane grows downwards and the pill stays level with the first one,
   instead of being centred against a block that is now twice as tall. The title
   takes the slack and `min-width: 0` lets it wrap rather than push the pill off
   the edge; the pill never shrinks. `margin-left: auto` keeps it right even in
   edit mode, where the title is hidden and it is alone on the row. */
.issue-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 4px;
}

.issue-title-row .issue-title { flex: 1; min-width: 0; margin: 0; }

.issue-title-row .watch-btn { flex: none; margin-left: auto; }

/* In the dialog the pill keeps a caption, because "watching a project" is not
   self-evident the way watching the issue you are reading is — what arrives is
   an e-mail about issues that do not exist yet. Sentence left, pill right, on
   one row, which is still one row less than the toggle row plus its heading. */
.project-watch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
}

.watch-caption { color: var(--green-dim); font-size: 13px; }
/* ── The statistics dialog ────────────────────────────────────────────

   A four-column grid rather than a <table>: the widths are fixed here
   rather than negotiated from content, each row carries an optional
   footnote that a <tr> has nowhere to put, and three labelled
   measurements are not tabular data a reader gains from being told is a
   table. See StatisticsDialog.renderTable. */
.statistics-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* The label takes what is left; the three windows are equal and fixed,
   so the numbers line up in columns down the dialog. Equal rather than
   sized to content, because content-sized columns would shift every
   time a count gained a digit. */
.statistics-row {
  display: grid;
  grid-template-columns: 1fr 84px 84px 84px;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
}

.statistics-header {
  color: var(--green-dim);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.statistics-label { color: var(--head); }

/* Right-aligned and tabular: digits share a width, so a column of
   counts aligns on its ones place and two numbers of the same
   magnitude are the same length on screen. Without font-variant-
   numeric, "111" is visibly narrower than "999" in most UI faces and
   the column looks ragged. */
.statistics-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* The age line, and the "Counting…" that replaces it. One slot, because
   they are two answers to one question — see StatisticsDialog.render. */
.statistics-status {
  color: var(--green-dim);
  font-size: 12px;
  margin-bottom: 12px;
}

/* The sentence shown when commit counts could not be fetched. Dimmed and
   small: it explains a missing number rather than being one. (The closed-row
   footnote that also used this class is gone — LNL-69.) */
.statistics-note {
  color: var(--green-dim);
  font-size: 12px;
  margin: 4px 0 0;
}

.statistics-empty { color: var(--green-dim); }

/* ── The Discussion tab ────────────────────────────────────────────────────
   Laid out like the board pane above it: a header row of controls, then the
   content. The forum picker follows the design's dropdown rather than a list
   down the side — a project with a dozen forums would otherwise spend the
   pane's whole width on a list nobody reads twice. */
.forum-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 14px 16px;
}

.forum-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-bottom: 12px;
}

/* The header's trailing group: "Manage forums" and the Watch pill, pushed to the
   far end away from the picker. Neither is another way to choose a forum —
   one is an administrator's control over the whole list, the other (LNL-63) is
   the reader's own subscription to the forum they are in.

   The `auto` is on the group rather than on the two buttons, because flexbox
   *shares* free space between auto margins rather than giving it to the first:
   two of them would leave a gap between the pair instead of a pair at the end.
   And "Manage forums" is hidden for everybody but a project administrator, so
   the alignment cannot hang off it. */
.forum-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.forum-description {
  color: var(--green-dim);
  font-size: 13px;
  margin: 0 0 12px;
  max-width: 72ch;
}

.forum-empty,
.forum-posts-empty {
  color: var(--green-dim);
  font-size: 13px;
  margin: 0;
}

.forum-posts {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Beside the picker rather than at the far end with "Manage forums": one is a
   thing everybody does, the other is an administrator's control over the list,
   and grouping them would read as two settings. */
.forum-new-post { flex: none; }

/* ── A post in the forum list ──────────────────────────────────────────────
   One pressable block per post, the way a board card is one pressable block:
   the whole row opens it, so there is no small link to aim at.

   Three columns, per the design: what the thread is, how many replies it has,
   and who last spoke and when. LNL-61 folded all of that into one byline
   reading "soderbjorn · 20 Jul 2026, 22:11 · 1 comment", which is a sentence to
   be read per row where the design's card is three columns to be scanned down.
   The right-hand pair is what answers "which thread is busy, and is it still
   moving" — the question a forum list exists for.

   Grid rather than flex, so the numbers and the dates line up down the list
   whatever the titles do. Only the first column may shrink; the last has a
   floor so a one-word name and a long one do not shift the column under each
   other. */
.forum-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.forum-post-row:hover { border-color: var(--green-dim); }

/* The post currently in the window. Since LNL-62 the list stays on screen
   beside what is being read, so it can — and should — say which row that is;
   without it, clicking the open post again looks like it did nothing. */
/* An unread post: a dot in the card's left padding, and the title in the bright
   head colour.

   A pseudo-element rather than a fourth column, because .forum-post-row is a
   three-column grid whose tracks are load-bearing (LNL-62) — a fourth would
   move every count and every last-replier along by a mark that is 6px wide.
   Absolute inside the row's own padding, which is what leaves the columns
   untouched.

   A dot and not a number, throughout the discussion side: LNL-30 settles that
   forum volume is unbounded, so nothing here counts anything. */
.forum-post-row-unread { position: relative; }

.forum-post-row-unread::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-hi);
}

.forum-post-row-unread .forum-post-row-title {
  color: var(--head);
  font-weight: 600;
}

.forum-post-row-open {
  border-color: var(--border-hi);
  background: color-mix(in srgb, var(--green-hi) 6%, transparent);
}

.forum-post-row-subject { min-width: 0; }

.forum-post-row-title {
  color: var(--head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  /* One line, clipped. A post title may be 200 characters and a list of them
     wrapping to three lines each stops being a list. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-post-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.forum-post-row-byline {
  color: var(--green-dim);
  font-size: 12px;
}

/* The middle column: the count, then its unit under it. Centred, because a
   column of numbers is compared down its middle — left-aligning would put "9"
   and "12" out of step with each other. */
.forum-post-row-comments { text-align: center; }

.forum-post-row-count {
  color: var(--green-hi);
  font-size: 14px;
}

/* The word COMMENTS, as a label rather than as text: uppercase and tracked out
   so it reads as the number's unit and not as something to be read per row. */
.forum-post-row-count-label {
  color: var(--green-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* The right column: who last replied, over how long ago. Empty when nobody
   has — see ForumPane.postActivityColumn — and it keeps its width either way,
   so a forum where half the threads are quiet does not render ragged. */
.forum-post-row-activity {
  min-width: 120px;
  text-align: right;
}

.forum-post-row-last-author {
  color: var(--body);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-post-row-last-age {
  color: var(--green-dim);
  font-size: 11px;
}

/* ── One post, read ────────────────────────────────────────────────────────
   A column: back link, header, the scrolling body-and-comments, and the
   composer pinned under it. The middle section is the only part that scrolls,
   so the title stays put while a long thread is read and the composer never
   has to be scrolled to — exactly the arrangement .conversation uses one tab
   over, which is the surface this was matched to. */
/* The window's stable content element — see ForumWindows, which swaps posts
   inside it rather than handing the toolkit a new one. It has to carry the
   pane's height and its interior, because the .forum-post inside it is
   replaced and a style on that would go with it. */
.forum-post-host {
  height: 100%;
  min-height: 0;
  background: var(--dt-window-bg, var(--panel));
}

.forum-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* Padded here rather than on the host, so the view stays re-hostable: the
     class owns its own margins and does not depend on what it is mounted in.
     Same split as .issue-window against .issue-window-host. */
  padding: 12px 16px;
}

.forum-post-back {
  align-self: flex-start;
  margin-bottom: 8px;
}

.forum-post-header { flex: none; }

.forum-post-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.forum-post-title {
  color: var(--green-hi);
  font-size: 16px;
  margin: 0;
  min-width: 0;
}

/* LNL-63's Watch button, at the design's right-hand end of the title row. The
   slot was reserved empty by LNL-61 and `margin-left: auto` is what made
   appending the button enough, exactly as intended.

   `flex: none` for `.issue-title-row .watch-btn`'s reason: the pill must not be
   squeezed by a long title, which is the one thing on this row that can be 200
   characters. The title takes the slack — it already carries `min-width: 0`. */
.forum-post-actions { margin-left: auto; }
.forum-post-actions .watch-btn { flex: none; }

.forum-post-byline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.forum-post-byline {
  color: var(--green-dim);
  font-size: 13px;
  margin: 0;
}

/* The delete button sits at the far end of the byline row rather than beside
   the title: it is about this post, but it is not part of what the post says,
   and next to the heading it would compete with the Watch button above it. */
.forum-post-byline-row .link-btn-danger { margin-left: auto; }

.forum-post-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.forum-post-body { margin-bottom: 20px; }

/* The footer bar. "Add comment" is right-aligned and drawn primary, which is
   the design's shape and is the honest one: it is the action of this screen,
   and it sits where a dialog's confirm button sits. LNL-61 had it quiet and on
   the left, which read as a secondary control beside nothing. */
.forum-post-footer {
  flex: none;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── The composers ─────────────────────────────────────────────────────────
   Both of them: the comment bar pinned under a thread, and the new-post pane.
   These are `.conversation-composer` one tab over, near enough line for line,
   because they are the same object — a WYSIWYG editor, the mention hint, a
   validation line and one primary button — and the two would otherwise drift
   into looking like different features.

   A column, not a row. Without these rules the children laid out as inline
   blocks and the hint and the button ended up floating *beside* a shrunken
   editor rather than under it, which is what a missing stylesheet looks like
   rather than a design.

   There is deliberately no max-height and no inner scroll. The pane is
   draggable, resizable and maximisable, so how much room the editor has is the
   writer's to decide with the affordances the toolkit already gives them —
   the same deal the issue editor has in the issue window. A cap would be a
   number nobody chose, solving a problem the window manager already solves. */
.forum-post-composer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.forum-post-composer-actions {
  display: flex;
  justify-content: flex-end;
}

/* The new-post pane has no thread above it, so the composer takes the slack
   instead of sitting under something that scrolls — .new-conversation makes
   the same move for the same reason. The editor grows with it, which is what
   puts a full-height writing surface in a pane somebody has just opened to
   write in.

   How the editor grows is not written here: the host wears `.editor-host` too
   (see NewForumPostView), which is the issue window's class for exactly this
   and carries all four of the rules it takes. This block had its own copy,
   missing the one that made `.editor` itself grow — so the editor stayed at
   its natural width, which for a flex item is the width of its widest row: the
   toolbar. That is what LNL-81 saw as "the editor does not use full width". */
.new-forum-post .forum-post-composer {
  flex: 1;
  min-height: 0;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Breathing room the read view does not need but the composer does. Reading, the
   title sits flush over its byline and body; writing, "New post" over the title
   field over the editor is three stacked controls, and with no gaps they read as
   one crowded block. A margin under the heading and under the title row spaces
   them out — matching .conversation-heading, which already carries a bottom
   margin one tab over. Scoped to .new-forum-post so the read view is untouched. */
.new-forum-post .forum-post-header { margin-bottom: 14px; }
.new-forum-post .field-row { margin-bottom: 14px; }

/* ── A comment on a post ───────────────────────────────────────────────────
   The design bands a comment's byline row: its own --surface fill and a rule
   under it, with the body below on the window's own ground. A long thread
   separates far better for it — the eye finds where each comment starts
   without having to read who wrote it.

   That means the card's padding moves inside, onto the two halves, rather than
   sitting on the card: a band that stops 10px short of the border is a stripe
   rather than a header. Hence the padding reset — .comment supplies 10px for
   the issue window's comments, which are not banded.

   The design's pair is --surface over --bg. Lunicle's tokens are one step up:
   this card already sits ON --panel (the window interior is --t-surface), so
   the head takes --panel-2, the raised tone, and the body is left unfilled.
   Filling the body with --bg would read as a hole punched through the window
   rather than as a card with a header — and .comment's own note warns what
   happens when --panel-2 fills a whole card under Lemonade, which is why it is
   a band here and nothing more. */
.forum-comment { padding: 0; overflow: hidden; }

.forum-comment .comment-head {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  margin-bottom: 0;
}

.forum-comment .comment-body { padding: 10px 12px; }

/* Where a `?comment=` deep link landed. Marks the arrival rather than the
   comment, so it is applied once when the thread first renders and is gone the
   next time it does — see ForumPostView.renderComments. `.message-card-linked`
   is the twin, and they are deliberately the same treatment: arriving from a
   link should look the same wherever the link pointed. */
.forum-comment-linked {
  border-color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 10%, transparent);
}

/* The avatar circle from the design, as an initial rather than a picture: no
   provider avatar is stored anywhere in this schema. Fixed size and
   `flex: none` so a long byline beside it cannot squash it into an oval. */
.forum-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--green-hi);
  font-size: 11px;
}

/* ── The forum manager ─────────────────────────────────────────────────────
   A row per forum: name, description, the two move buttons, save, delete.
   Grid rather than flex so every row's fields line up down the dialog — with
   flex, a long forum name would push its neighbours' Save buttons out of
   column and the list would read as ragged. */
.forum-manager-rows { margin-bottom: 16px; }

.forum-manager-row,
.forum-manager-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

/* The new-forum row has no move buttons, so its two trailing columns collapse
   and the Add button sits under the Save column above it. */
.forum-manager-new {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Square, so the arrows read as a pair rather than as two more words. */
.forum-manager-move {
  min-width: 32px;
  padding-left: 0;
  padding-right: 0;
}

.forum-manager-empty {
  color: var(--green-dim);
  font-size: 13px;
  margin: 0 0 12px;
}

.forum-manager-error {
  color: var(--red);
  font-size: 13px;
  margin: 8px 0 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   The Messages tab

   ONE column, since LNL-64. It was two: a hand-drawn
   `grid-template-columns: 280px minmax(0, 1fr)` with a `.conversation-sidebar`
   whose `border-right` stood in for a splitter, all inside a single lunula
   pane — while Discussion, the same list-to-detail interaction one tab over,
   used two real panes.

   The thread is now a pane of its own (see CONVERSATION_PANE_ID), so what is
   left here is the list, and it is styled like the forum's post list rather
   than like a sidebar: the same padding, the same card rows. The whole
   argument for the change is in main.kt; this comment exists so that anyone
   wondering where the second column went is not left looking for it.
   ══════════════════════════════════════════════════════════════════════════ */
.messages-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px;
}

.messages-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-bottom: 12px;
}

.messages-heading {
  color: var(--head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* Pushed to the far end, away from the heading. */
.messages-new { margin-left: auto; flex: none; }

.messages-error { margin: 0 0 8px; }

.conversation-list-empty,
.conversation-empty {
  color: var(--green-dim);
  font-size: 13px;
  margin: 0;
}

.conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* One pressable CARD per conversation, which is the design's shape: an article
   with its own surface, a border, a 6px radius and 12px 14px of padding. The
   prototype draws it that way because the list IS the content of this tab, and
   LNL-60's unbordered rows made it read as a sidebar — a fair reading of a
   column that genuinely was one, and wrong the moment it stopped being one.

   The whole row opens it, the way a board card and a post row do, so there is
   no small link to aim at. */
.conversation-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
}

.conversation-row:hover { border-color: var(--border-hi); }

/* Selection — the conversation whose window is open. Named after LNL-62's
   `.forum-post-row-open` in spirit: since the list stays on screen beside the
   thread, "which of these am I in" is a question it can be asked, and without
   an answer clicking the already-open row looks like it did nothing. */
.conversation-row-on {
  border-color: var(--green-dim);
  background: color-mix(in srgb, var(--green-hi) 8%, var(--panel-2));
}

/* The design's 34px circle — bigger than the 22px `.forum-avatar` used inside a
   byline, because here it is the card's leading element rather than a mark
   beside a name. Its own class rather than a modifier on .forum-avatar: the two
   differ in every value, so sharing would be one rule overriding another
   entirely. */
.conversation-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--green-hi);
  font-size: 14px;
}

.conversation-row-text { flex: 1; min-width: 0; }

.conversation-row-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

/* One line, clipped. A group of four names would otherwise wrap and the list
   would stop being scannable down its left edge. */
.conversation-row-name {
  flex: 1;
  min-width: 0;
  color: var(--green-hi);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row-time {
  flex: none;
  color: var(--green-dim);
  font-size: 11px;
}

/* Unread, as the design draws it: the title in the bright head colour and at
   600, so the row stands out reading down the list, and a pill at the end
   carrying how many.

   Both, rather than either — the weight answers "is there something here" at a
   glance and the number answers "how much", and a treatment that were only a
   colour would be one nobody with a colour deficiency could read. */
.conversation-row-unread .conversation-row-name {
  color: var(--head);
  font-weight: 600;
}

.conversation-row-unread .conversation-row-preview { color: var(--green); }

/* The prototype's pill exactly: accent fill, the ground colour for the text so
   it reads against it, 9px radius, 1px 7px, 11px/600. --bg rather than a light
   token, because the fill is --accent-hi in every theme and the text has to be
   whatever that is not. */
.conversation-row-pill {
  flex: none;
  background: var(--green-hi);
  color: var(--bg);
  border-radius: 9px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

/* The preview is already cut to length in Kotlin — see
   MessagesBackingViewModel.preview — so this only has to keep it on one line
   when a shorter body happens to be wide. */
.conversation-row-preview {
  color: var(--green-dim);
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── One conversation, in its own window ───────────────────────────────────
   A column: header, the scrolling transcript, and the composer pinned under
   it. Only the transcript scrolls, so the heading stays put while a long
   thread is read and the composer never has to be scrolled to — exactly the
   arrangement .forum-post uses one tab over. */
.conversation-host,
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Padded on the view, not on the host — the same split .forum-post makes
   against .forum-post-host, and for the same reason: the class owns its own
   margins and does not depend on what it is mounted in.

   The measurement is .forum-post's, deliberately. These are sibling panes one
   tab over from each other showing the same shape (a heading, a scrolling
   body, a composer pinned under it), and they were visibly out of step: this
   one had no horizontal padding at all, so the transcript ran flush into the
   pane's edge while the forum's stood off it. Two panes that differ by a
   gutter read as one of them being broken. */
.conversation {
  padding: 12px 16px;
}

.conversation-header { flex: none; }

.conversation-heading {
  color: var(--green-hi);
  font-size: 16px;
  margin: 0 0 12px;
}

.conversation-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The composer, pinned under the thread as the design shows: a border-top, the
   editor, then Send at the right.

   Note what is NOT here: any height rule for the editor. `flex: none` lets it
   take its own natural size — `.editor-surface`'s min-height plus a toolbar —
   and the transcript above takes the rest. There is deliberately no max-height
   and no inner scroll region: the thread is a draggable, resizable,
   maximisable pane, so how much room the composer has is the reader's to
   decide with the affordances the toolkit already gives them, which is the
   same deal the issue editor has in the issue window. A cap would be a number
   nobody chose, solving a problem the window manager already solves. */
.conversation-composer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.conversation-composer-actions {
  display: flex;
  justify-content: flex-end;
}

/* Starting a conversation uses the same pane, so it needs the same column —
   with the recipient row where the transcript would be, and the composer
   taking the slack rather than sitting under something that scrolls. The
   editor's own growth comes from `.editor-host`, which the host wears; see
   .new-forum-post above, which says why that is one class rather than four
   rules copied per composer. */
.new-conversation .conversation-composer {
  flex: 1;
  min-height: 0;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Full width, both sides.

   This carried `margin-right: 15%`, with its own comment claiming that
   "leaving a margin is what the design does". It does not: the prototype's
   message card is a plain bordered box in a gapped flex column, with no margin
   and no width constraint, and the two sides are told apart purely by the tint
   triple below. The pair of leans — theirs held off the right, yours off the
   left — was invented here, and it looked like slipped boxes rather than like
   an exchange, because neither side was actually aligned to anything.

   The margin also cost the thing these bodies are for. A message holds
   markdown, so its code blocks and images want the pane's width; giving 15% of
   every line back to make a phone-messenger silhouette is a trade against the
   content people came to read. */
.message-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}

/* The byline band, exactly as .forum-comment has one and for the design's
   reason: a long thread separates far better when the eye can find where each
   message starts without reading who wrote it. Hence the padding moving off
   the card and onto the two halves — a band that stops short of the border is
   a stripe rather than a header. */
.message-card .comment-head {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  margin-bottom: 0;
}

.message-card .comment-body { padding: 10px 12px; }

/* Your own, drawn differently — by tint alone, and deliberately not by indent.

   The design tints three things at once — the card, its header band and the
   avatar — in ascending strengths of the accent, and that triple is what makes
   a two-person thread readable at a glance rather than a wall of identical
   boxes. Through color-mix over the theme tokens rather than the prototype's
   literal rgba(77, 200, 245, …), so it follows whichever palette is on: the
   hard-coded blue would be a stripe of Lunamux Dark sitting inside Lemonade.

   Mixed against --panel and --panel-2 rather than laid over `transparent`,
   because a message body holds markdown — code blocks, images, quotes — all of
   which are styled against an opaque background.

   ── Why there is no indent, having briefly had one ────────────────────────

   This carried `margin-left: 15%` for a while: the chat convention of pushing
   your own messages away from the other person's. It is not in the prototype,
   whose cards are all full width, and it looked broken rather than aligned —
   the card started 15% in but still ran to the right edge, so it read as a box
   that had slipped rather than as a side of the conversation.

   Doing it properly would mean a max-width and right alignment, and that fights
   the one thing these bodies are for: a message holds markdown, so code blocks
   and images want the pane's full width, and narrowing them to look like a
   phone messenger would make the wide content the reason people paste it here
   worse. Tint carries the distinction at no cost to the content. */
.message-card-mine {
  border-color: var(--border-hi);
  background: color-mix(in srgb, var(--green-hi) 6%, var(--panel));
}

.message-card-mine .comment-head {
  background: color-mix(in srgb, var(--green-hi) 8%, var(--panel-2));
}

.message-card-mine .forum-avatar {
  background: color-mix(in srgb, var(--green-hi) 16%, transparent);
  border-color: var(--border-hi);
}

/* Where a `?message=` deep link landed. Marks the arrival rather than the
   message, so it is applied once when the thread first renders and is gone
   the next time it does — see ConversationView.renderMessages. */
.message-card-linked {
  border-color: var(--green-hi);
  background: color-mix(in srgb, var(--green-hi) 10%, transparent);
}

/* ── The recipient picker ──────────────────────────────────────────────────
   LNL-30 replaces the design's pills with a search box and an autocomplete
   "very similar to the WYSIWYG editor's @ mention popup", so this borrows
   .mention-menu's look deliberately: the two are one control appearing in
   two places and should not look like two.

   It is NOT positioned like that one, though. The mention menu is fixed to
   the viewport and mounted on <body> because it has to escape .editor-host's
   overflow; this sits under a text field near the top of a dialog with room
   below it, so it is absolutely positioned inside the modal and moves with
   it. */
.recipient-row { position: relative; }

.recipient-chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

/* The chips are what survives of the design's pills: the ticket replaces how
   names are *found*, not how the chosen ones are shown. */
.recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--green-hi);
  font-size: 12px;
}

.recipient-chip-remove {
  border: 0;
  background: none;
  color: var(--green-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
}

.recipient-chip-remove:hover { color: var(--red); }

.recipient-search-wrap { position: relative; }

.recipient-search { width: 100%; }

.recipient-menu {
  position: absolute;
  left: 0;
  /* Sized to the names in it, not stretched across the pane. `right: 0` made it
     as wide as the (full-width) search field, which in a maximised Messages pane
     is the whole window — a short list of names floating in a bar of empty
     dropdown (LNL-82). Content-width with a floor so a single short name still
     makes a clickable target, and a ceiling so a long display name does not run
     off. Matches how .mention-menu sizes itself. */
  width: max-content;
  min-width: 200px;
  max-width: 320px;
  top: calc(100% + 4px);
  /* Above the modal's own body, but below .mention-menu (10020): both can be
     open at once — a name being picked while the editor below has a mention
     half-typed — and the one belonging to the caret must win. */
  z-index: 10015;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.recipient-menu-item {
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* One highlight class, driven by the arrow keys AND by hover — the row the
   mouse is over is the row Enter would take, so there is only ever one "this
   one" on screen. .mention-menu-item-on is the same rule. */
.recipient-menu-item-on {
  color: var(--head);
  background: color-mix(in srgb, var(--green-hi) 18%, transparent);
}

/* Why the picker stopped accepting names. A sentence rather than a disabled
   control on its own: membership is fixed at creation, and "the file you
   attached started the conversation" is not something anybody would guess
   from a greyed-out box. */
.recipient-lock-note {
  color: var(--green-dim);
  font-size: 12px;
  margin: 6px 0 0;
  max-width: 60ch;
}

/* ============================================================
   Notifications — the alarm bell and its sidebar list (LNL-109).

   The bell is Lunicle's own custom topbar element (main.kt's
   extraTopbarTrailing), sitting among the toolkit's trailing
   icons. Its whole appearance is driven by two <body> attributes
   set from the unread state — data-lnl-signed-in and
   data-lnl-notif — mirroring how Lunamux flashes its news bell
   from a body attribute rather than a class on the button, so a
   top-bar rebuild cannot drop the state. The panel fills the
   toolkit-owned sidebar's body slot.
   ============================================================ */

/* Hidden until a session resolves: a signed-out visitor owns no
   notifications, so an always-present bell would open an empty
   panel. */
.lnl-notif-bell { display: none; }

.icon-bell { width: 18px; height: 18px; }

body[data-lnl-signed-in="1"] .lnl-notif-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  /* Muted when nothing is unread — a quiet member of the icon row,
     not an alert light. */
  color: var(--green-dim);
  opacity: .75;
  transition: color .12s, opacity .12s;
}
body[data-lnl-signed-in="1"] .lnl-notif-bell:hover { color: var(--green-hi); opacity: 1; }

/* Unread: the warn/amber accent, pulsing — colour AND opacity, so
   motion is the signal rather than colour alone (Lunamux's rule). */
body[data-lnl-notif="1"] .lnl-notif-bell {
  color: var(--yellow);
  opacity: 1;
  animation: lnl-notif-pulse 2.5s ease-in-out infinite;
}
@keyframes lnl-notif-pulse {
  0%, 100% { color: var(--yellow); opacity: 1; }
  50%      { color: color-mix(in srgb, var(--yellow) 45%, transparent); opacity: .55; }
}
/* Reduced-motion: keep the colour, drop the pulse. */
@media (prefers-reduced-motion: reduce) {
  .lnl-notif-bell { animation: none !important; }
}

/* ── The panel body ─────────────────────────────────────────── */

.notif-panel { display: flex; flex-direction: column; min-height: 0; }

.notif-actions {
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.notif-action {
  font-family: inherit;
  font-size: 12px;
  color: var(--green-hi);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
}
.notif-action:hover { background: var(--panel-2); }
.notif-action-danger { color: var(--red); }

.notif-empty {
  color: var(--green-dim);
  font-size: 13px;
  padding: 16px 4px;
  text-align: center;
}

.notif-list { display: flex; flex-direction: column; }

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
}
.notif-row-main {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-title {
  font-size: 13px;
  color: var(--green-dim);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.notif-row-unread .notif-title { color: var(--head); font-weight: 600; }
.notif-time { font-size: 11px; color: var(--green-dim); opacity: .8; }

.notif-dismiss {
  flex: none;
  background: transparent;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: var(--green-dim);
  opacity: .6;
  display: inline-flex;
}
.notif-dismiss:hover { opacity: 1; color: var(--red); }
.notif-dismiss .icon { width: 14px; height: 14px; }

/* ── The Projects rail (LNL-194) ────────────────────────────────────────────

   One rail, two levels: every project the caller holds something in, and the
   selected project's sections indented beneath it. It is `.admin-split`'s shape
   — a fixed-width list beside a pane that scrolls on its own — with the second
   level living INSIDE the list rather than as a strip above the content. That is
   the whole point of the arrangement: selecting another project keeps you on the
   same section, so comparing Access across two boards is two clicks and never
   passes through General.

   Deliberately not a nested `<ul>`: the rail is a flat sequence of buttons with
   the section rows indented by padding, so keyboard order runs top to bottom
   through exactly what is on screen. A tree would give it a structure nobody
   navigates. */
.project-rail-split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
}

/* Fixed rather than a fraction, for .admin-user-list's reason: project names are
   short, so a rail that grew with the pane would be mostly whitespace while the
   Access rows beside it wrapped. */
.project-rail {
  flex: none;
  width: 232px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding-right: 8px;
}

.project-rail-content {
  flex: 1;
  min-width: 0;       /* or a long e-mail widens the pane instead of wrapping */
  min-height: 0;
  display: flex;
  overflow: hidden;   /* each section pane owns its own scrolling */
}

/* A real <button> per project, so the rail is keyboard-navigable — flat, because
   a list of buttons drawn as buttons is a wall of chrome. Same treatment
   .admin-user-row gets. */
.project-rail-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 9px;
  margin-bottom: 1px;
  cursor: pointer;
  font: inherit;
  color: var(--body);
}

.project-rail-row:hover { background: var(--panel-2); }

/* Background AND border, not colour alone: this is the one piece of state saying
   which project everything to the right belongs to, and getting it wrong means
   configuring the wrong board. */
.project-rail-selected,
.project-rail-selected:hover {
  background: var(--panel-2);
  border-color: var(--border-hi);
}

.project-rail-name {
  display: block;
  color: var(--head);
  font-size: 13px;
}

/* What the caller holds here, under the name — the rail's whole reason for
   carrying a rung. Muted and small: it is a fact about the row, not a second
   heading. */
.project-rail-role {
  display: block;
  font-size: 11px;
  color: var(--body);
  opacity: .7;
}

/* The second level. Indented rather than boxed, and left-aligned under the
   project's name so the relationship is read from the position alone. */
.project-rail-section {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 4px 9px 4px 22px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--body);
  opacity: .8;
}

.project-rail-section:hover { color: var(--head); opacity: 1; }

/* The accent on the left edge rather than a fill: the project row above is
   already carrying a fill for ITS selection, and two fills stacked would make the
   pair read as one selected block. */
.project-rail-section-selected,
.project-rail-section-selected:hover {
  color: var(--head);
  opacity: 1;
  border-left-color: var(--green-dim);
}

/* The only way to make a project. Separated by a rule so it reads as an action
   under the list rather than as a thirteenth project. */
.project-rail-new {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 10px 9px 4px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--green-dim);
}

.project-rail-new:hover { color: var(--head); }

/* ── Access rows (LNL-194) ──────────────────────────────────────────────────

   One row per audience, and one per person who holds something different. The
   picker sits at the end of the row and the reason a dead picker is dead wraps
   underneath it — beside the control rather than instead of it, which is the
   rule this whole section is built on: a control that vanishes reads as a bug,
   where a dead one with a sentence tells you who to ask. */
.access-rows { margin: 0 0 14px; }

.access-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.access-row-text {
  flex: 1;
  min-width: 0;       /* or a long address widens the row instead of wrapping */
}

/* The name and its badge on one line: NOT SIGNED IN is an adjective on the name,
   and a line of its own would give it the weight of the address below, which is
   the more useful fact. Same reasoning as .admin-user-badge. */
.access-row-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.access-row-name {
  color: var(--head);
  font-size: 13px;
}

.access-row-detail {
  font-size: 11px;
  color: var(--body);
  opacity: .75;
  overflow-wrap: anywhere;
}

/* The warning colour rather than the accent: a grant nobody has claimed is not a
   state to be pleased about, and it looks exactly like one that has been claimed
   unless something says otherwise. `--yellow` is the theme's warn token, so this
   follows a rebrand rather than pinning a literal. */
.access-row-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yellow);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 4px;
}

/* Full width, so it wraps under the row rather than squeezing the picker. */
.access-row-reason {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--body);
  opacity: .75;
  margin: 0;
}

/* "Visible to …" — the one line in this section an owner reads to find out what a
   stranger can actually see (LNL-203). The heading colour at full opacity rather than
   `.field-hint`'s muted grey, because it is the answer and not an aside: the rows above
   say what each audience was given, this says what that comes to. The negative top margin
   pulls it up under `.access-rows`' own 14px, so it reads as that list's conclusion
   rather than as the next section's preamble. */
.access-visibility {
  margin: -8px 0 16px;
  font-size: 12px;
  color: var(--head);
}

/* ── What each rung can do (LNL-217) ────────────────────────────────────────

   The ladder written out under the rows that hand it out. It exists because the
   rung PICKER cannot explain itself: `rungPicker` draws rows, not rows with
   sub-rows, which is why a dead rung's reason has to ride inside its label. So
   the sentences had nowhere to go and were being sent down the wire and dropped.

   A grid rather than a name-then-sentence run, because the whole value of the
   block is being able to scan the five names down one edge and read across to
   the one you wanted. `max-content` sizes the first column to the longest label
   (Contributor), so the descriptions share one left edge without a magic width
   that a rename would silently break.

   The name and the sentence are direct children of the one grid — there is no
   per-rung wrapper — so the two columns line up across all five rows with no
   `subgrid` anywhere. That is why the markup has no row element to hang a hover
   or a border on; if this ever needs one, `subgrid` is the change, not a
   flex-per-row rewrite that would give up the shared edge. */
.rung-legend {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  align-items: baseline;
  margin: 10px 0 4px;
  max-width: 68ch;
}

/* The name at the heading colour and the sentence at the body's muted weight —
   the same pairing `.access-row-name` and `.access-row-detail` use one section
   above, so the legend reads as an explanation OF those rows rather than as a
   different kind of thing that happens to sit under them. */
.rung-legend-name {
  color: var(--head);
  font-size: 13px;
}

.rung-legend-detail {
  font-size: 11px;
  color: var(--body);
  opacity: .75;
  text-wrap: pretty;
}

/* Narrow panes: the settings pane opens at 55% of the window and can be dragged
   well below that, and at some point two columns leaves the sentence a four-word
   ribbon. Stacking keeps it readable and costs only the scannable edge, which is
   worth less than the sentence being legible. */
@media (max-width: 620px) {
  .rung-legend {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Each name now starts its own rung rather than sitting beside one, so it needs
     the space above that the two-column gap was providing horizontally. */
  .rung-legend-name:not(:first-child) { margin-top: 10px; }
}

/* ── The people picker (LNL-204) ──
   "Add people…" opens this in place, under the person list it adds to. In place and
   not a modal, and that is the load-bearing part: every pick is written immediately
   and lands in the list above, so covering the list would hide the panel's own
   feedback.

   The accent hairline and the lift are what say "this is a thing that is open" on a
   surface that is otherwise flat rows — the same pairing `.lunicle-dropdown-menu`
   uses, at a weight suited to something the width of the pane. */
.add-people-host { margin-top: 4px; }

.add-people-panel {
  border: 1px solid var(--green-hi);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  overflow: hidden;    /* so the footer's fill cannot square off the rounded corner */
}

.add-people-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px 0;
}

.add-people-head-text { flex: 1; min-width: 0; }

.add-people-head-role {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.add-people-title {
  color: var(--head);
  font-size: 13px;
  font-weight: 600;
}

/* The head's hint carries no bottom margin of its own: the search field below
   brings the gap, so an empty hint cannot leave a hole. */
.add-people-head-text .field-hint { margin: 2px 0 0; }

/* The ceiling, said once beside the control rather than repeated inside its menu —
   the rule LNL-202 settled for the audience rows. */
.add-people-ceiling {
  font-size: 10.5px;
  color: var(--body);
  opacity: .75;
}

.add-people-search { padding: 11px 14px 9px; }
.add-people-search .field { width: 100%; }

/* Ten rows and then it scrolls, matching the dropdowns' ceiling: the server sends
   seven plus at most one trailing row, so this bites only if that ever grows. */
.add-people-rows {
  max-height: 268px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.add-people-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.add-people-row:last-child { border-bottom: 0; }

/* Hover only on a row that can actually be picked. `.dt-disabled` is the toolkit's
   marker and is on every inert row, so naming it here keeps this rule and the rung
   pickers' agreeing about what "unpickable" looks like. */
.add-people-row:hover:not(.dt-disabled):not(.add-people-row-refused) {
  background: var(--panel-2);
}

/* Inert: already on this board, or running the instance. Shown rather than filtered
   out, because a search that omits the person you searched for reads as broken.
   0.72 rather than the toolkit's 0.4 for the reason the blocked rungs use it — the
   trailing text is the explanation, and an explanation has to be readable. */
.add-people-row-inert {
  opacity: .72;
  pointer-events: auto;    /* the fill is already gone; this buys the cursor */
  cursor: not-allowed;
}

/* Just granted, this session. The accent as TYPE (`--green-hi-text`), not as a
   fill: this is ink on the panel and needs a caption's contrast. Same trade as
   `.icon-btn`. */
.add-people-row-state-added { color: var(--green-hi-text); }

.add-people-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--head);
  font-size: 11.5px;
  font-weight: 600;
}

/* The two non-person rows' discs. Dashed for the offer — nothing exists yet — and
   the warn token for the refusal, which is the same colour NOT SIGNED IN uses for
   the same reason: neither is an error, both are something to notice. */
.add-people-avatar-new { border-style: dashed; color: var(--body); }
.add-people-avatar-refused { border-color: var(--yellow); color: var(--yellow); }

.add-people-row-text { flex: 1; min-width: 0; }

.add-people-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.add-people-name { color: var(--head); font-size: 13px; }

/* The address in the mono face: it is an identifier, and it is here to tell two
   people of the same name apart — which is a character-by-character comparison. */
.add-people-email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--body);
  opacity: .75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-people-badge {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--body);
  opacity: .8;
}

/* NOT SIGNED IN, on the warn token like `.access-row-badge`: a rung nobody has
   collected looks exactly like one that has been unless something says otherwise. */
.add-people-badge-pending { color: var(--yellow); opacity: 1; }

.add-people-row-state {
  flex: none;
  font-size: 11.5px;
  color: var(--body);
  opacity: .8;
  text-align: right;
}

/* The offer and the refusal both wrap two lines of prose, so they align to the top
   rather than centring a disc against a paragraph. */
.add-people-row-offer,
.add-people-row-refused { align-items: flex-start; }

.add-people-row-offer { background: var(--panel-2); }

.add-people-offer-title { font-size: 13px; color: var(--green-hi-text); }

.add-people-offer-note,
.add-people-refused-note {
  font-size: 11px;
  color: var(--body);
  opacity: .8;
  text-wrap: pretty;
}

/* A refusal is not an error and must not read as one: the warn wash, not the danger
   one, and it is not clickable at all. */
.add-people-row-refused {
  background: color-mix(in srgb, var(--yellow) 8%, transparent);
  cursor: default;
}

/* `--yellow-text`, not `--yellow`: this is a 13px sentence and needs a caption's
   contrast, where the token's fill half is free to be as pale as a theme likes. The
   disc above may stay on the fill because nothing has to be read out of it. Same
   split, and the same reason, as `--green-hi` / `--green-hi-text` (LNL-173). */
.add-people-refused-title { font-size: 13px; color: var(--yellow-text); }

.add-people-empty {
  margin: 0;
  padding: 15px 14px;
  font-size: 12px;
  color: var(--body);
  opacity: .8;
}

.add-people-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}

.add-people-footer-note {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--body);
  opacity: .8;
  text-wrap: pretty;
}

/* The wrapper one project's sections mount into.
   It has to pass the flex chain through: `.project-rail-content` hides its own
   overflow so each `.project-pane` scrolls inside itself, and a plain block here
   leaves the pane's `flex: 1; min-height: 0` with nothing to measure against —
   the content is clipped and nothing scrolls. */
.project-sections-host {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}

/* The rung picker sits at the end of its row, at a width that fits the longest
   rung name and its reason — not `width: 100%`, which is what a `.dropdown`
   field is by default and which pushed every picker onto a line of its own,
   making a five-row list read as ten. Capped rather than fixed so a long
   "Maintainer — you are an Admin here…" wraps the reason under the row instead
   of widening the pane. */
.access-row .dropdown.dt-menu-trigger-field {
  flex: none;
  width: 190px;
  max-width: 100%;
}

/* The rung, as text, on a row with no picker — a read-only reader's view of what
   somebody holds. Sized and placed like the picker it stands in for, so the
   column of answers still lines up down the list. */
.access-row-rung {
  flex: none;
  width: 190px;
  max-width: 100%;
  font-size: 12.5px;
  color: var(--head);
  padding: 0 11px;
  line-height: 30px;
}

/* LNL-225: a field somebody else changed while it was being edited here. The
   reader's text stays in the field; this says so, and Reload takes theirs. In the
   warn tone because it is a decision waiting on the reader, not an error. */
.issue-remote-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent);
  background: color-mix(in srgb, var(--yellow) 8%, transparent);
}
.issue-remote-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--body);
}
.issue-remote-note-field { font-weight: 600; color: var(--head); }
.issue-remote-note-text { color: var(--yellow-text); }
.issue-remote-note-sep { color: var(--green-dim); }

/* ============================================================
   Chromeless embed: ?chrome=none|bare (see EmbedChrome.kt).
   The sidebar and tab strip are switched off in the shell spec; the rest
   is here, keyed off the body attribute main.kt sets.

   The window rules target the BOARD pane only, by its pane id: an issue
   opened from the board is a window of its own, and without its close
   button it could not be put away again.
   ============================================================ */

/* The top bar has no switch of its own, so it goes here, and only once
   somebody is signed in. A signed-out visitor keeps it: the sign-in
   button lives in it, and a frame with no way in would be a dead end for
   a private board. */
body[data-lnl-chrome="none"][data-lnl-signed-in="1"] .dt-topbar,
body[data-lnl-chrome="bare"][data-lnl-signed-in="1"] .dt-topbar {
  display: none;
}

/* No app background around the board: the frame's padding is what let it
   show, and the window then fills the frame edge to edge. Important
   because the toolkit lays panes out with inline geometry. */
body[data-lnl-chrome="none"] .dt-app-frame,
body[data-lnl-chrome="bare"] .dt-app-frame {
  background-image: none;
}
body[data-lnl-chrome="none"] .dt-app-frame-main,
body[data-lnl-chrome="bare"] .dt-app-frame-main {
  padding: 0;
}
body[data-lnl-chrome="none"] .dt-pane-root,
body[data-lnl-chrome="bare"] .dt-pane-root {
  border-radius: 0;
}
body[data-lnl-chrome="none"] .dt-pane[data-pane-id^="board-"],
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
  box-shadow: none;
}

/* ...and no window controls on it: the "more" menu (Rename window),
   minimise, maximise/restore and close, nor the corner resize grips.
   There is nothing in a host's block to arrange the window against. */
body[data-lnl-chrome="none"] .dt-pane[data-pane-id^="board-"] .dt-pane-actions,
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] .dt-pane-actions,
body[data-lnl-chrome="none"] .dt-pane[data-pane-id^="board-"] .dt-pane-corner-resize,
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] .dt-pane-corner-resize {
  display: none;
}

/* bare: no title bar and no border either, just the board. */
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] .dt-pane-header,
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] .dt-pane-header-proximity {
  display: none;
}
body[data-lnl-chrome="bare"] .dt-pane[data-pane-id^="board-"] {
  border: 0;
  outline: 0;
}
