/* The Desk — app layer over the Botnest design system, semantic tokens only.
   The shell is Logg's, adjusted to the Desk's purpose: a phone first. A sticky
   top bar, the page, a fixed bottom tab bar with the five places; the composer
   sits above the tab bar like a messaging app. From 900px the aurora sidebar
   replaces the tab bar and the Now panel stands beside the chat. */

html, body { height: 100%; }
.dk-body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bn-bg); color: var(--bn-text); }

/* Top bar */
.dk-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding-top: env(safe-area-inset-top); }
.dk-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--bn-weight-bold); text-decoration: none; color: var(--bn-chrome-text, var(--bn-text)); }
.dk-brand:hover { text-decoration: none; }
.dk-topright { margin-left: auto; min-width: 0; font-size: 13px; color: var(--bn-chrome-text-dim, var(--bn-text-3)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-topbar-out { margin: 0; }
.st-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
.st-ext { opacity: 0.55; font-size: 12px; margin-left: 2px; }

/* The page + bottom tab bar */
.dk-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; box-sizing: border-box;
  padding: 14px 14px calc(76px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.dk-main--chat { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.dk-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bn-surface); border-top: 1px solid var(--bn-border); padding-bottom: env(safe-area-inset-bottom); }
.dk-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 7px; font-size: 11px; text-decoration: none; color: var(--bn-text-3); }
.dk-tab:hover { text-decoration: none; }
.dk-tab.is-active { color: var(--bn-action); }
.dk-tab:focus-visible { outline: 2px solid var(--bn-focus-ring); outline-offset: -2px; }
.dk-sidebar { display: none; }

.st-hint { color: var(--bn-text-3); font-size: var(--bn-text-small); margin-top: 6px; }
.st-mt { margin-top: 12px; }
.st-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sign in: .bn-auth is the whole page (two columns), the brand column has the sky. */
.st-body--auth { margin: 0; background: var(--bn-bg); color: var(--bn-text); }
.st-brand { display: inline-flex; align-items: center; gap: 10px; font: var(--bn-weight-heavy) 18px/1 var(--bn-font-ui); text-decoration: none; color: var(--bn-chrome-text); }
.st-brand--auth { padding: 0; font-size: 20px; }
.st-auth-title { margin: 0 0 4px; font: var(--bn-weight-bold) var(--bn-text-h3)/1.2 var(--bn-font-ui); }
.st-auth-hint { color: var(--bn-text-3); font-size: var(--bn-text-small); margin: 0; }
.st-auth-alt { margin-top: 16px; }
.st-totp-setup { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-qr svg { width: 196px; height: 196px; background: #fff; border-radius: var(--bn-radius-sm); padding: 6px; box-sizing: content-box; }
.st-secret { font-size: 13px; letter-spacing: 0.06em; word-break: break-all; text-align: center; padding: 8px 10px; background: var(--bn-surface-2); border-radius: var(--bn-radius-xs); }
.bn-auth-body { flex-direction: column; gap: 0; }

/* ── the chat ──────────────────────────────────────────────────────────────── */
.st-desk { display: flex; flex-direction: column; gap: 10px; }
.st-desk-side { display: none; }
.dk-threadchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.dk-threadchips::-webkit-scrollbar { display: none; }
.dk-threadchips .bn-chip { white-space: nowrap; flex: none; text-decoration: none; }
.dk-threadchips form { display: contents; }
.dk-chip-btn { cursor: pointer; border: 1px dashed var(--bn-border); background: none; color: var(--bn-action); font: inherit; }
.st-desk-main { display: flex; flex-direction: column; gap: 6px; }
.st-desk-log { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.st-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.st-msg--karl { align-self: flex-end; background: var(--bn-action-subtle); border: 1px solid var(--bn-border-subtle); border-bottom-right-radius: 4px; }
.st-msg--desk { align-self: flex-start; max-width: 94%; background: var(--bn-surface); border: 1px solid var(--bn-border); border-bottom-left-radius: 4px; }
.st-msg--system { align-self: flex-start; font-size: 12.5px; font-style: italic; color: var(--bn-text-3); padding: 2px 8px; }
.st-msg-who { font: var(--bn-weight-bold) var(--bn-text-small)/1.3 var(--bn-font-ui); color: var(--bn-text-3); margin-bottom: 3px; }
.st-msg--system .st-msg-who { display: none; }
.st-msg-text { white-space: pre-wrap; }
.st-msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-desk-empty { margin: 24px auto; text-align: center; max-width: 46ch; }
.dk-composer { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 25;
  background: var(--bn-bg); border-top: 1px solid var(--bn-border-subtle); padding: 8px 10px; margin: 0; }
.dk-composer-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.dk-composer textarea { flex: 1; resize: none; max-height: 45vh; min-height: 40px; }

/* ── the Now panel ─────────────────────────────────────────────────────────── */
.st-desk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.st-desk-h { font: var(--bn-weight-bold) var(--bn-text-small)/1.3 var(--bn-font-ui); color: var(--bn-text-3); margin: 14px 0 6px; }
.st-desk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--bn-text-small); }
.st-desk-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.st-desk-prop { padding: 8px 0; border-top: 1px solid var(--bn-border-subtle); }
.st-desk-acts { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.st-desk-acts .bn-btn { flex: 1; justify-content: center; }
.st-desk-issue { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 6px; margin-top: 10px; }
.st-desk-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.st-desk-threads li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: var(--bn-radius-sm); text-decoration: none; color: inherit; }
.st-desk-threads li a:hover { background: var(--bn-action-subtle); }
.st-desk-threads li.is-active a { background: var(--bn-selected); color: var(--bn-link); }

/* ── approvals and issues: one decision per thumb ──────────────────────────── */
.st-card--warning { border-color: var(--bn-warning-border); }
.st-card--danger { border-color: var(--bn-danger-border); }
.st-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.st-proposal { border-top: 1px solid var(--bn-border); padding: 14px 0 4px; }
.st-proposal:first-of-type { border-top: 0; }
.st-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-proposal-title { font-weight: var(--bn-weight-bold); }
.st-proposal-summary { margin: 8px 0 0; overflow-wrap: anywhere; }
.st-proposal-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
.st-proposal-actions form { margin: 0; }
.st-btn-wide { width: 100%; justify-content: center; text-decoration: none; box-sizing: border-box; }
.st-text-danger { color: var(--bn-danger-text); }
.st-trunc { max-width: 100%; overflow-wrap: anywhere; }
.st-details { margin-top: 10px; }
.st-details summary { cursor: pointer; color: var(--bn-link); font-size: var(--bn-text-small); }
.st-pre { font: 12px/1.45 var(--bn-font-mono, ui-monospace, Menlo, Consolas, monospace); background: var(--bn-surface-2);
  padding: 10px 12px; border-radius: var(--bn-radius-sm); overflow: auto; margin: 8px 0 0; white-space: pre-wrap; }
.st-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.st-filters .bn-field { min-width: 100%; margin: 0; }
.st-filter-q { flex: 1 1 280px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.st-actions form { margin: 0; }
.st-row--dim { opacity: 0.6; }
/* A phone reads a table as a list: one row, one card-like block. */
.st-list thead { display: none; }
.st-list, .st-list tbody { display: block; }
.st-list tr { display: block; padding: 10px 0; border-top: 1px solid var(--bn-border-subtle); }
.st-list tr:first-child { border-top: 0; }
.st-list td { display: block; padding: 2px 0; border: 0; }
.st-list td:empty { display: none; }

/* ── wide screens: the aurora sidebar, the Now panel beside the chat ───────── */
@media (min-width: 900px) {
  :root { --dk-sidebar-w: 236px; }
  .dk-sidebar { display: flex; flex-direction: column; gap: 18px; position: fixed; inset: 0 auto 0 0; width: var(--dk-sidebar-w);
    padding: 22px 14px 18px; z-index: 40; box-sizing: border-box; }
  .dk-side-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; color: var(--bn-chrome-text, #fff);
    font-size: 21px; font-weight: var(--bn-weight-heavy); letter-spacing: -0.01em; }
  .dk-side-brand:hover { text-decoration: none; }
  .dk-side-nav { display: flex; flex-direction: column; gap: 2px; }
  .dk-side-nav .bn-sidebar-item { gap: 10px; }
  .dk-side-foot { margin-top: auto; padding: 0 6px; display: flex; flex-direction: column; gap: 10px; }
  .dk-theme-group { display: flex; width: 100%; }
  .dk-theme-group .bn-btn { flex: 1; }
  .dk-version { font-size: var(--bn-text-tiny); color: var(--bn-chrome-text-dim); padding: 4px 6px 0; }

  .dk-topbar { padding-left: calc(var(--dk-sidebar-w) + 18px); }
  .dk-topbar .dk-brand, .dk-topbar-ext { display: none; }
  .dk-tabbar { display: none; }

  .dk-main { margin-left: var(--dk-sidebar-w); max-width: none; width: calc(100% - var(--dk-sidebar-w)); padding: 20px 28px 48px; }
  .dk-main--chat { padding-bottom: 48px; }

  .st-desk { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; max-width: 1400px; }
  .st-desk-side { display: flex; flex-direction: column; gap: 16px; }
  .dk-threadchips { display: none; }
  .st-desk-main { min-height: min(72vh, 760px); gap: 0; overflow: hidden; background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); }
  .st-desk-log { flex: 1; overflow: auto; padding: 16px; background: var(--bn-inset, var(--bn-surface-2)); }
  .st-msg { max-width: 76%; }
  .dk-composer { position: static; background: var(--bn-surface); padding: 12px; }
  .dk-composer-inner { max-width: none; }
  .st-desk-acts { width: auto; margin-left: auto; margin-top: 0; }
  .st-desk-acts .bn-btn { flex: none; }
  .st-desk-prop { border-top: 0; padding: 0; }
  .st-desk-issue { grid-template-columns: minmax(0, 1fr) 110px auto; }

  .st-proposal-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .st-btn-wide { width: auto; min-width: 120px; }
  .st-filters .bn-field { min-width: 150px; }
  .st-trunc { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
  .st-list thead { display: table-header-group; }
  .st-list { display: table; }
  .st-list tbody { display: table-row-group; }
  .st-list tr { display: table-row; padding: 0; border-top: 0; }
  .st-list td { display: table-cell; }
}

/* ── tasks: the list and the timeline ──────────────────────────────────────── */
.st-tasklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-task { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--bn-border-subtle); }
.st-task:first-child { border-top: 0; }
.st-task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.st-task-main:hover { text-decoration: none; }
.st-task-title { font-weight: var(--bn-weight-bold); overflow-wrap: anywhere; }
.st-intent { font-style: italic; }
.st-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.st-step--done { opacity: 0.7; }
.st-step--done > b { text-decoration: line-through; }
.st-step--skipped, .st-step--failed { opacity: 0.6; }
.st-step--doing > b { color: var(--bn-action); }
.st-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: var(--bn-text-small); }
.st-timeline li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--bn-border-subtle); }
.st-timeline li:first-child { border-top: 0; }
.st-timeline .st-what { grid-column: 1 / -1; overflow-wrap: anywhere; }
.st-kind { font-size: 11px; justify-self: start; }
.st-task-done { display: flex; gap: 8px; flex: 1 1 100%; }
.st-task-done .bn-input { flex: 1; min-width: 0; }
@media (min-width: 900px) {
  .st-timeline li { grid-template-columns: 90px auto auto 1fr; }
  .st-timeline .st-what { grid-column: auto; }
  .st-task-done { flex: 0 1 460px; }
}

/* The brief: other people's words, shown as words. Pre-wrapped rather than
   rendered, so a URL is readable and not clickable (t-12). */
.dk-brief {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
  margin: 8px 0 0;
}

/* ---- t-23: the CEO view. The Bridge and the Floor; tokens only. ---- */
.dk-bridge-title { margin: 0; font-family: var(--bn-font-reading); font-size: 30px; line-height: 1.1; }
.dk-cards { display: flex; flex-direction: column; gap: 8px; }
.dk-decision { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--bn-warning-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; }
.dk-decision:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-decision-title { font-weight: 700; }
.dk-decision-line { color: var(--bn-text-2); }
.dk-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dk-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dk-lines-quiet { margin: 0; display: flex; align-items: center; gap: 8px; }
.dk-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: var(--bn-radius-pill); background: var(--bn-text-3); align-self: center; }
.dk-dot--success { background: var(--bn-success-text); }
.dk-dot--warning { background: var(--bn-warning-text); }
.dk-dot--danger { background: var(--bn-danger-text); }
.dk-dot--info { background: var(--bn-info-text); }
.dk-units { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dk-units .bn-chip { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.dk-summary { margin: 10px 0 0; }
.dk-words { margin: 4px 0 0; font-family: var(--bn-font-reading); font-style: italic; line-height: 1.5; }
.dk-people { display: flex; flex-direction: column; gap: 8px; }
.dk-person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; }
.dk-person:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-person--again { border-color: var(--bn-warning-border); }
.dk-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--bn-radius-pill); background: var(--bn-surface-3); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dk-person-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dk-person-name { font-weight: 700; }
.dk-person-line { font-size: var(--bn-text-small); color: var(--bn-text-2); }
.dk-person--again .dk-person-line b { color: var(--bn-warning-text); }
.dk-person-words { font-family: var(--bn-font-reading); font-style: italic; font-size: var(--bn-text-small); color: var(--bn-text-2); }
.dk-more { display: flex; flex-direction: column; }
.dk-more-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; min-height: 44px; border-top: 1px solid var(--bn-border-subtle); color: var(--bn-text); text-decoration: none; font-weight: 700; }
.dk-more-item:first-child { border-top: 0; }
.dk-more-item .st-hint { font-weight: 400; }

/* ---- t-23 audit: the Bridge and the Floor as the design canvas has them. Tokens only. ---- */
.dk-screen { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.dk-head { display: flex; flex-direction: column; gap: 6px; }
.dk-eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bn-text-2); font-weight: 400; }
.dk-sub { margin: 0; font-size: 17px; line-height: 1.4; color: var(--bn-text-2); }
.dk-bridge-title { font-size: 38px; line-height: 1.05; }
.dk-decision { gap: 8px; padding: 16px; border-color: var(--bn-border); border-radius: var(--bn-radius-lg); }
.dk-decision-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--bn-text); text-decoration: none; }
.dk-decision-line { font-size: 15px; line-height: 1.4; color: var(--bn-text-2); }
.dk-decision-meta { font-size: var(--bn-text-small); color: var(--bn-text-3); }
.dk-decision-acts { display: flex; gap: 8px; }
.dk-decision-acts form { display: flex; flex: 1 1 auto; margin: 0; }
.dk-decision-acts .bn-btn { min-height: 44px; }
.dk-act-main { flex: 1 1 auto; justify-content: center; }
.dk-rows, .dk-block { display: flex; flex-direction: column; gap: 8px; }
.dk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 44px; border: 1px solid transparent; border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; }
.dk-row:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-row--warn { background: var(--bn-warning-subtle); border-color: var(--bn-warning-border); }
.dk-row--danger { background: var(--bn-danger-subtle); border-color: var(--bn-danger-border); }
.dk-row-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dk-row-name { font-size: 16px; font-weight: 700; }
.dk-row-role { font-weight: 400; color: var(--bn-text-2); }
.dk-row-line { font-size: 14px; color: var(--bn-text-2); overflow-wrap: anywhere; }
.dk-row-line--ok { color: var(--bn-success-text); }
.dk-row-line--warn { color: var(--bn-warning-text); }
.dk-row-go { font-size: 20px; color: var(--bn-link); }
.dk-ref { font-family: var(--bn-font-mono); font-size: 12px; }
.dk-dot--ring { background: transparent; border: 1.5px dashed var(--bn-warning-text); }
.dk-avatar--ok { background: var(--bn-success-subtle); color: var(--bn-success-text); }
.dk-avatar--warn { background: var(--bn-warning-subtle); color: var(--bn-warning-text); }
.dk-picker { position: relative; align-self: flex-start; }
.dk-picker-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-pill); background: var(--bn-surface); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; list-style: none; }
.dk-picker-button::-webkit-details-marker { display: none; }
.dk-picker-dim { color: var(--bn-text-2); }
.dk-picker-button .st-ic { width: 14px; height: 14px; color: var(--bn-link); transition: transform var(--bn-dur-1, 120ms); }
.dk-picker[open] .dk-picker-button .st-ic { transform: rotate(180deg); }
.dk-picker-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 240px; display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); background: var(--bn-surface); box-shadow: var(--bn-shadow-3); }
.dk-picker-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--bn-radius-sm); color: var(--bn-text); text-decoration: none; font-size: 16px; }
.dk-picker-item:hover, .dk-picker-item.is-current { background: var(--bn-surface-2); text-decoration: none; }
.dk-picker-all { color: var(--bn-link); font-size: 15px; font-weight: 700; }
.dk-headline { margin: 0; font-family: var(--bn-font-reading); font-size: 32px; line-height: 1.1; }
.dk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dk-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-tile b { font-family: var(--bn-font-reading); font-size: 26px; }
.dk-tile span { font-size: 13px; color: var(--bn-text-2); }
.dk-tile--warn { background: var(--bn-warning-subtle); border: 1px solid var(--bn-warning-border); }
.dk-tile--warn b, .dk-tile--warn span { color: var(--bn-warning-text); }
.dk-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; font-size: 14px; }
.dk-strip:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-strip-item { display: inline-flex; align-items: center; gap: 6px; }
.dk-strip-item--warn { color: var(--bn-warning-text); }
.dk-strip-go { margin-left: auto; font-weight: 700; color: var(--bn-link); }
.dk-working { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bn-text-2); }
.dk-verdict { margin: 0; font-size: 15px; line-height: 1.45; color: var(--bn-text-2); }
.dk-verdict b { color: var(--bn-text); }
.dk-daynav { margin: 0; font-size: var(--bn-text-small); }

/* ---- t-23: people and processes at the Desk's own address. Tokens only. ---- */
.dk-screen--wide { max-width: none; }
.dk-back { font-size: 15px; text-decoration: none; }
.dk-person-head { display: flex; align-items: center; gap: 14px; }
.dk-avatar--lg { width: 56px; height: 56px; font-size: 22px; }
.dk-headline--person { font-size: 30px; }
.dk-bigstat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--bn-radius-lg); background: var(--bn-surface); }
.dk-bigstat b { font-family: var(--bn-font-reading); font-size: 34px; line-height: 1; }
.dk-bigstat span { font-size: 15px; color: var(--bn-text-2); }
.dk-bigstat--warn { background: var(--bn-warning-subtle); border: 1px solid var(--bn-warning-border); }
.dk-bigstat--warn b, .dk-bigstat--warn span { color: var(--bn-warning-text); }
.dk-entry { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-entry-meta { font-size: var(--bn-text-small); color: var(--bn-text-3); }
.dk-entry-text { margin: 0; font-family: var(--bn-font-reading); font-size: 16px; line-height: 1.5; }
.dk-card-link { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; }
.dk-card-link:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-card-link--warn { border-color: var(--bn-warning-border); }
.dk-card-top { display: flex; align-items: center; justify-content: space-between; }
.dk-card-clock { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dk-card-clock.is-ok { color: var(--bn-success-text); }
.dk-card-clock.is-warn { color: var(--bn-warning-text); }
.dk-card-clock.is-bad { color: var(--bn-danger-text); }
.dk-faces { display: inline-flex; padding-left: 6px; }
.dk-face { width: 26px; height: 26px; margin-left: -6px; border-radius: var(--bn-radius-pill); border: 2px solid var(--bn-surface); background: var(--bn-surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* ---- t-24: who you are talking to ---- */
.dk-talking { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-talking .dk-avatar { width: 36px; height: 36px; }
.dk-talk-form { display: flex; margin: 0; }
.dk-talk-form .bn-btn { min-height: 44px; }

/* ---- t-27: the Desk on desktop. A phone keeps its layout; from 1100px the pages spread out
   as the design canvas has them. Tokens only. ---- */
.dk-topdate, .dk-ask { display: none; }
.dk-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box;
  border-radius: var(--bn-radius-pill); background: var(--bn-surface-3); color: var(--bn-text-2); font-size: 12px; letter-spacing: 0; }
.dk-count--bad { background: var(--bn-danger-subtle); color: var(--bn-danger-text); }
.dk-empty { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); background: var(--bn-surface); }
.dk-empty-mark { width: 40px; height: 40px; flex: none; border-radius: var(--bn-radius-pill); background: var(--bn-success-subtle); color: var(--bn-success-text); display: flex; align-items: center; justify-content: center; }
.dk-bridge-main, .dk-proc-split, .dk-proc-body, .dk-tasks, .dk-detail, .dk-approvals, .dk-issues, .dk-news { display: flex; flex-direction: column; gap: 14px; }
.dk-bridge-main { gap: 16px; }
.dk-talkto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-talkto-list form { margin: 0; }
.dk-talkto-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--bn-radius-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dk-talkto-btn:hover { background: var(--bn-surface-2); }
.dk-talkto-btn .dk-avatar { width: 32px; height: 32px; }
.st-desk-about { display: none; }
.dk-about { display: flex; flex-direction: column; gap: 10px; }
.dk-namechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 3px; border-radius: var(--bn-radius-pill); background: var(--bn-surface-2); font-size: 13px; color: var(--bn-text-2); }
.dk-namechip .dk-face { margin: 0; width: 22px; height: 22px; border: 0; }
.dk-namechip--you { background: var(--bn-warning-subtle); }
.dk-card-when { color: var(--bn-text-3); }
.dk-card-purpose { font-size: 15px; line-height: 1.4; color: var(--bn-text-2); }
@media (max-width: 1099px) { .dk-wide-only { display: none !important; } }

@media (min-width: 900px) {
  .dk-topdate { display: inline; margin-left: 16px; font-size: 14px; color: var(--bn-chrome-text-dim, var(--bn-text-3)); white-space: nowrap; }
  .dk-ask { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; margin-right: 12px; min-height: 36px; padding: 0 14px; border-radius: var(--bn-radius-pill);
    border: 1px solid var(--bn-border); background: var(--bn-surface-2); color: var(--bn-text); font-size: 14px; font-weight: 700; text-decoration: none; }
  .dk-ask:hover { text-decoration: none; background: var(--bn-surface-3); }
  .dk-ask .st-ic { width: 17px; height: 17px; color: var(--bn-success-text); }
  .st-desk { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "side main" "about main"; }
  .st-desk-side { grid-area: side; }
  .st-desk-main { grid-area: main; }
  .st-desk-about { grid-area: about; display: flex; flex-direction: column; gap: 16px; }
}

@media (min-width: 1100px) {
  .dk-narrow-only { display: none !important; }
  .dk-main { padding: 28px 40px 56px; }
  .dk-screen, .dk-screen--wide { max-width: 1400px; width: 100%; }
  .dk-bridge-title { font-size: 48px; }
  .dk-headline { font-size: 40px; }
  .dk-eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bn-text-3); }

  /* the Bridge: what needs Karl on the left, where things stand on the right */
  .dk-bridge { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 28px; align-items: start; }
  .dk-bridge > .dk-head { grid-column: 1 / -1; }
  .dk-bridge-main { gap: 24px; }
  .dk-bridge-side { gap: 16px; }
  .dk-rows--bad { gap: 0; border: 1px solid var(--bn-danger-border); border-radius: var(--bn-radius-lg); overflow: hidden; background: var(--bn-danger-subtle); }
  .dk-rows--bad > .dk-eyebrow { padding: 14px 18px 8px; margin: 0; background: var(--bn-surface); }
  .dk-rows--bad .dk-row { border: 0; border-top: 1px solid var(--bn-danger-border); border-radius: 0; min-height: 56px; }
  .dk-row--card { align-items: flex-start; padding: 18px 20px; border-color: var(--bn-border); border-radius: var(--bn-radius-lg); }
  .dk-row--card > .dk-dot { margin-top: 7px; align-self: flex-start; }
  .dk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
  .dk-stat { display: flex; flex-direction: column; gap: 2px; }
  .dk-stat b { font-family: var(--bn-font-reading); font-size: 30px; line-height: 1.05; }
  .dk-stat span { font-size: 14px; color: var(--bn-text-3); }
  .dk-proclist { display: flex; flex-direction: column; margin-top: 6px; }
  .dk-procline { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--bn-border-subtle); font-size: 15px; }
  .dk-procline:first-child { border-top: 0; }
  .dk-procline > span:last-child { color: var(--bn-text-2); font-size: 14px; }

  /* the Floor: the numbers and the people on the left, the head's line and how it runs on the right */
  .dk-floor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px 28px; align-items: start;
    grid-template-areas: "picker picker" "headline headline" "tiles verdict" "block strip" "block working" "block ." "daynav daynav"; grid-template-rows: auto auto auto auto auto 1fr auto; }
  .dk-floor > .dk-picker { grid-area: picker; }
  .dk-floor > .dk-headline { grid-area: headline; }
  .dk-floor > .dk-tiles { grid-area: tiles; }
  .dk-floor > .dk-strip { grid-area: strip; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px 20px; border-radius: var(--bn-radius-lg); }
  .dk-floor > .dk-strip .dk-strip-go { margin-left: 0; }
  .dk-floor > .dk-working { grid-area: working; }
  .dk-floor > .dk-block { grid-area: block; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .dk-floor > .dk-block > .dk-eyebrow { grid-column: 1 / -1; }
  .dk-floor > .dk-block > .dk-row { align-items: flex-start; padding: 16px; border-color: var(--bn-border); border-radius: var(--bn-radius-lg); }
  .dk-floor > .dk-block > .dk-row--warn { border-color: var(--bn-warning-border); }
  .dk-floor > .dk-block > .dk-row--quiet { padding: 10px 14px; background: var(--bn-surface-2); border-color: var(--bn-border-subtle); }
  .dk-floor > .dk-block > .dk-row--quiet .dk-avatar { width: 30px; height: 30px; }
  .dk-floor > .dk-verdict { grid-area: verdict; padding: 18px 20px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); background: var(--bn-surface);
    font-family: var(--bn-font-reading); font-size: 17px; line-height: 1.45; }
  .dk-floor > .dk-daynav { grid-area: daynav; }
  .dk-tiles { gap: 14px; }
  .dk-tile { padding: 16px 18px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); }
  .dk-tile b { font-size: 32px; }

  /* processes: three across */
  .dk-proc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .dk-proc-cards .dk-card-link { gap: 14px; padding: 22px 24px; }
  .dk-proc-cards .dk-row-name { font-family: var(--bn-font-reading); font-size: 24px; }
  .dk-proc-cards .dk-faces { display: none; }
  .dk-namechips { display: flex; flex-wrap: wrap; gap: 6px; }
  .dk-processes > .dk-row { max-width: none; }

  /* a process: the chart and the opened step side by side */
  .dk-proc-split.has-panel { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
  .dk-proc-split.has-panel > .st-proc-panel { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }

  /* a person: who they are beside their worklog */
  .dk-person-page { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: 16px 36px; align-items: start; }
  .dk-person-page > * { grid-column: 1; }
  .dk-person-page > .dk-block { grid-column: 2; grid-row: 1 / span 8; }
  .dk-person-page .dk-entry { padding: 18px 20px; }
  .dk-person-page .dk-entry-text { font-size: 18px; }

  /* lists and the item beside them: tasks, approvals */
  .dk-split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1480px; }
  .dk-listpane { position: sticky; top: 64px; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
  .dk-listpane-head { display: flex; align-items: center; justify-content: space-between; }
  .dk-listpane-head a { font-size: 14px; font-weight: 700; }
  .dk-listpane-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .dk-listpane-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--bn-radius-md); color: var(--bn-text); text-decoration: none; }
  .dk-listpane-item:hover { background: var(--bn-surface-2); text-decoration: none; }
  .dk-listpane-item.is-current { background: var(--bn-selected, var(--bn-surface-3)); box-shadow: inset 0 0 0 1px var(--bn-border-strong); }
  .dk-listpane-item code { font-size: 13px; color: var(--bn-text-3); padding-top: 2px; min-width: 38px; }
  .dk-listpane-item .dk-row-name { font-size: 15px; line-height: 1.3; }
  .dk-task { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); gap: 16px 20px; align-items: start;
    grid-template-areas: "head head" "time hand" "time plan" "time out" "time ."; }
  .dk-task > .bn-alert { grid-column: 1 / -1; }
  .dk-t-head { grid-area: head; } .dk-t-time { grid-area: time; } .dk-t-hand { grid-area: hand; } .dk-t-plan { grid-area: plan; } .dk-t-out { grid-area: out; }
  .dk-t-hand .st-proposal-actions { flex-direction: column; align-items: stretch; }
  .dk-t-hand .st-btn-wide { width: 100%; }
  .dk-t-hand .st-task-done { flex: 1 1 auto; }
  .dk-tasks { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 20px 28px; align-items: start; max-width: 1400px; }
  .dk-tasks > .dk-tasks-file { grid-column: 2; grid-row: 1; }
  .dk-tasks > section:not(.dk-tasks-file) { grid-column: 1; grid-row: 1; }
  .dk-approvals { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 28px; align-items: start; max-width: 1400px; }

  /* issues: the list, and writing one down beside it; the brief: a reading column and a rail */
  .dk-issues { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 20px 28px; align-items: start; max-width: 1400px; }
  .dk-issues > .dk-i-list { grid-column: 1; grid-row: 1; }
  .dk-issues > .dk-i-form { grid-column: 2; grid-row: 1; }
  .dk-i-form .st-filters .bn-field { min-width: 100%; }
  .dk-news { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 340px); gap: 20px 36px; align-items: start; justify-content: center; }
  .dk-n-brief { grid-column: 1; grid-row: 1 / span 3; }
  .dk-n-earlier, .dk-n-how { grid-column: 2; }
  .dk-brief { font-family: var(--bn-font-reading); font-size: 18px; line-height: 1.6; }
}

@media (min-width: 1500px) {
  .st-desk { grid-template-columns: 280px minmax(0, 1fr) 320px; grid-template-areas: "side main about"; max-width: none; }
  .st-desk-main { min-height: calc(100vh - 150px); }
}

/* ---- 24 Sep: the Floor's org chart (wide only; a phone keeps the list). Tokens only. ---- */
@media (min-width: 1100px) {
  .dk-floor { grid-template-areas: "picker picker" "headline headline" "tiles verdict" "strip verdict" "working verdict" "block block" "daynav daynav";
    grid-template-rows: auto auto auto auto auto auto auto; }
  .dk-floor > .dk-strip { flex-direction: row; align-items: center; gap: 6px 16px; padding: 12px 16px; border-radius: var(--bn-radius-md); }
  .dk-floor > .dk-strip .dk-strip-go { margin-left: auto; }
  .dk-floor > .dk-verdict { align-self: stretch; }
  .dk-floor > .dk-org { grid-area: block; }
  .dk-org { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 20px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-lg); background: var(--bn-surface); }
  .dk-org > .dk-eyebrow { align-self: flex-start; margin-bottom: 12px; }
  .dk-org-over { display: flex; align-items: center; gap: 8px; color: var(--bn-text-3); }
  .dk-org-pill { display: inline-flex; gap: 4px; padding: 4px 12px; border-radius: var(--bn-radius-pill); background: var(--bn-surface-2); border: 1px solid var(--bn-border); color: var(--bn-text); font-size: 14px; font-weight: 700; }
  .dk-org-pill span { color: var(--bn-text-3); font-weight: 400; }
  .dk-org-stem { width: 2px; height: 20px; background: var(--bn-border-strong); }
  .dk-org-head { width: min(340px, 100%); }
  .dk-org-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; }
  .dk-org-card:hover { text-decoration: none; background: var(--bn-surface-2); border-color: var(--bn-border-strong); }
  .dk-org-card--lead { border: 2px solid var(--bn-border-strong); }
  .dk-org-card--warn { border-color: var(--bn-warning-border); background: var(--bn-warning-subtle); }
  .dk-org-card--quiet { background: var(--bn-surface-2); border-color: var(--bn-border-subtle); }
  .dk-org-card--quiet .dk-row-name { color: var(--bn-text-2); }
  .dk-org-card .dk-row-role { font-size: 13px; color: var(--bn-text-3); }
  .dk-org-card .dk-row-line { font-size: 13px; }
  .dk-org-card .dk-avatar { width: 34px; height: 34px; }
  /* t-58: a workbench under its owner's card, a quiet link that still takes a 44px press */
  .dk-org-bench { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px 0; font-size: 14px; font-weight: 600; color: var(--bn-link); text-decoration: none; }
  .dk-org-bench:hover { text-decoration: underline; }
  .dk-org-groups { list-style: none; margin: 0; padding: 20px 0 0; width: 100%; display: grid; gap: 16px; align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--bn-border-strong); }
  .dk-org-group { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--bn-radius-lg); background: var(--bn-surface-2); border: 1px solid var(--bn-border-subtle); }
  .dk-org-group::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 20px; background: var(--bn-border-strong); }
  .dk-org-group--wide { grid-column: span 2; }
  .dk-org-group--wide > .dk-org-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-org-group-name { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bn-text-3); }
  .dk-org-group-name a { color: inherit; }
  .dk-org-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
}

/* ---- 24 Sep: the chat is an app on a wide screen, not a long page (Karl: "the rail on the right is
   so long so you scroll past the chat - doesnt feel natural"). The page stands still; each pane
   scrolls on its own and the composer stays at the bottom. A phone is unchanged. ---- */
@media (min-width: 900px) {
  .dk-body[data-page="desk"] { height: 100dvh; min-height: 0; overflow: hidden; }
  .dk-main--chat { flex: 1 1 auto; min-height: 0; overflow: hidden; padding-bottom: 20px; }
  .dk-main--chat > .st-desk { flex: 1 1 auto; min-height: 0; height: 100%; align-items: stretch;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .dk-main--chat .st-desk-side, .dk-main--chat .st-desk-about { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .dk-main--chat .st-desk-main { min-height: 0; height: 100%; }
  .dk-main--chat .st-desk-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .dk-main--chat .dk-composer { flex: none; }
}
@media (min-width: 1500px) {
  .dk-main--chat > .st-desk { grid-template-rows: minmax(0, 1fr); }
  .dk-main--chat .st-desk-main { min-height: 0; }
}

/* ---- t-28: who a worker is, from the Character section of their role file ---- */
.dk-character { margin: 0; font-family: var(--bn-font-reading); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--bn-text-2); }

/* ---- t-29: the run log on a process page ---- */
.dk-entry--again { border: 1px solid var(--bn-warning-border); }
.dk-runlog .dk-entry-meta b { color: var(--bn-text); }

/* ---- 24 Sep: the workers' faces, where their initial used to be ---- */
.dk-avatar:has(.dk-face-img), .dk-face:has(.dk-face-img) { padding: 0; overflow: hidden; background: var(--bn-surface-2); }
.dk-face-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.dk-org-card .dk-avatar, .dk-row .dk-avatar { flex: none; }

/* ---- t-30: a process's executions, as n8n lists them ---- */
.dk-exec-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--bn-border); border-radius: 0 var(--bn-radius-sm) var(--bn-radius-sm) 0; color: var(--bn-text); text-decoration: none; font-size: 14px; }
.dk-exec-item:hover { background: var(--bn-surface-2); text-decoration: none; }
.dk-exec-item.is-current { background: var(--bn-surface-2); box-shadow: inset 0 0 0 1px var(--bn-border-strong); }
.dk-exec-item--success { border-left-color: var(--bn-success-text); } .dk-exec-item--danger { border-left-color: var(--bn-danger-text); }
.dk-exec-item--info { border-left-color: var(--bn-info-text); } .dk-exec-item--warning { border-left-color: var(--bn-warning-text); }
.dk-exec-state { font-size: 13px; } .dk-exec-state--success { color: var(--bn-success-text); } .dk-exec-state--danger { color: var(--bn-danger-text); }
.dk-exec-state--info { color: var(--bn-info-text); } .dk-exec-state--warning { color: var(--bn-warning-text); }
@media (min-width: 1100px) {
  .dk-process.has-execs { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .dk-process.has-execs > * { grid-column: 2; }
  .dk-process.has-execs > .dk-exec-list { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 64px; max-height: calc(100vh - 90px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
}

/* ---- 24 Sep: the issues, easier to read (Karl): grouped by kind, one card each ---- */
.dk-i-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.dk-i-head .bn-card-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.dk-i-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-i-filter { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--bn-radius-pill); border: 1px solid var(--bn-border); color: var(--bn-text-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.dk-i-filter:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-i-filter.is-on { background: var(--bn-surface-3); border-color: var(--bn-border-strong); color: var(--bn-text); }
.dk-i-search { display: flex; gap: 6px; margin-left: auto; margin-bottom: 0; }
.dk-i-search .bn-input { min-width: 200px; }
.dk-i-group { margin-top: 18px; }
.dk-i-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bn-text-3); }
.dk-i-hint { font-weight: 400; letter-spacing: 0; text-transform: none; }
.dk-i-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dk-issue { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--bn-border); border-left-width: 4px; border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-i-group--bug .dk-issue { border-left-color: var(--bn-danger-text); }
.dk-i-group--feature .dk-issue { border-left-color: var(--bn-info-text); }
.dk-i-group--chore .dk-issue { border-left-color: var(--bn-border-strong); }
.dk-issue-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dk-issue-ref { font-size: 13px; color: var(--bn-text-3); }
.dk-issue-tile { font-size: 13px; color: var(--bn-text-3); }
.dk-issue-tile::before { content: "· "; }
.dk-issue-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.dk-issue-body summary { list-style: none; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--bn-text-2); }
.dk-issue-body summary::-webkit-details-marker { display: none; }
.dk-issue-body:not([open]) summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-issue-body:not([open]) summary:hover { color: var(--bn-text); }
.dk-issue-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 2px; }
.dk-issue-meta { font-size: 13px; color: var(--bn-text-3); }
.dk-issue-meta b { color: var(--bn-text-2); }
.dk-issue-acts { display: flex; gap: 6px; }
.dk-issue-acts form { margin: 0; }
@media (max-width: 700px) { .dk-i-search { margin-left: 0; width: 100%; } .dk-i-search .bn-input { flex: 1; min-width: 0; } }
.dk-ask-issue { margin-right: auto; }
.dk-issue-acts { align-items: center; }

/* ---- 24 Sep: an idea in three parts, so it reads at a glance ---- */
.dk-idea { margin: 2px 0 0; display: grid; gap: 8px; }
.dk-idea-part { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.dk-idea dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bn-text-3); }
.dk-idea dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bn-text-2); }
.dk-idea-part--1 dd { font-size: 16px; font-weight: 700; color: var(--bn-text); }
.dk-wild { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: var(--bn-radius-pill); background: var(--bn-warning-subtle); color: var(--bn-warning-text); font-size: 12px; font-weight: 700; }
.dk-issue-note { margin: 2px 0 0; padding: 8px 12px; border-radius: var(--bn-radius-sm); background: var(--bn-surface-2); font-size: 14px; line-height: 1.45; color: var(--bn-text-2); }
.dk-issue-note b { margin-right: 6px; color: var(--bn-text); }
@media (max-width: 700px) { .dk-idea-part { grid-template-columns: minmax(0, 1fr); } }

/* ---- 24 Sep: a worker Eric asked, answering in the thread ---- */
.st-msg--staff { align-self: flex-start; max-width: 90%; margin-left: 24px; background: var(--bn-surface-2); border: 1px dashed var(--bn-border-strong); border-bottom-left-radius: 4px; }

/* ---- t-33: the Software Factory at the Desk: its floor and a change's cards ---- */
.dk-issue-acts { flex-wrap: wrap; }
.dk-fx { gap: 22px; }
.dk-fx-waiting, .dk-fx-work, .dk-fx-line, .dk-fx-score, .dk-fx-staff { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dk-fx-stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dk-fx-station { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--bn-radius-md); background: var(--bn-surface); border: 1px solid var(--bn-border-subtle); min-width: 0; }
.dk-fx-station--you { background: var(--bn-warning-subtle); border-color: var(--bn-warning-border); }
.dk-fx-station--busy { border-color: var(--bn-info-border, var(--bn-border-strong)); }
.dk-fx-station-name { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dk-fx-station-who { font-size: 13px; color: var(--bn-text-3); }
.dk-fx-station-refs { display: flex; flex-wrap: wrap; gap: 4px; }
.dk-fx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dk-fx-tiles .dk-tile b { font-size: 24px; }
.dk-fx-none { font-family: var(--bn-font-ui); font-size: 15px; font-weight: 400; color: var(--bn-text-3); }
.dk-fx-over { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--bn-text-3); }
.dk-fx-over .dk-org-pill { display: inline-flex; gap: 4px; padding: 4px 12px; border-radius: var(--bn-radius-pill); background: var(--bn-surface-2); border: 1px solid var(--bn-border); color: var(--bn-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.dk-fx-over .dk-org-pill span { color: var(--bn-text-3); font-weight: 400; }
.dk-fx-head-card { max-width: 360px; }
.dk-fx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dk-fx-sub { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bn-text-3); }
.dk-fx-person { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); color: var(--bn-text); text-decoration: none; min-width: 0; }
.dk-fx-person:hover { text-decoration: none; background: var(--bn-surface-2); }
.dk-fx-person--lead { border: 2px solid var(--bn-border-strong); }
.dk-fx-person--off .dk-row-name { color: var(--bn-text-2); }
.dk-fx-person--machine { border-style: dashed; background: var(--bn-surface-2); }
.dk-fx-person .dk-row-role { font-size: 13px; color: var(--bn-text-3); }
.dk-fx-person .dk-row-line { font-size: 13px; }
.dk-fx-person .dk-avatar { width: 38px; height: 38px; }
.dk-fx-person .dk-avatar .st-ic { width: 20px; height: 20px; }
.dk-fx-change { gap: 18px; }
.dk-fx-kv { margin: 0; display: grid; gap: 12px; }
.dk-fx-kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.dk-fx-kv dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bn-text-3); }
.dk-fx-kv dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.dk-fx-evidence, .dk-fx-findings, .dk-fx-blockers { margin: 4px 0 0; padding-left: 18px; }
.dk-fx-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: var(--bn-radius-md); background: var(--bn-surface-2); }
.dk-fx-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dk-fx-tap { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dk-fx-tap .bn-btn { align-self: stretch; justify-content: center; }
.dk-fx-comment { width: 100%; box-sizing: border-box; resize: vertical; }
.dk-fx-more summary { cursor: pointer; font-weight: 700; color: var(--bn-link); padding: 6px 0; }
.dk-fx-steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dk-fx-step { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dk-fx-step--todo, .dk-fx-step--skipped { color: var(--bn-text-3); }
/* Burl's questions as a form (Karl, 25 Sep 2026): one row per question, his three suggested
   answers in a choice with the recommended one picked, a field for Karl's own words, and one
   wide box for anything else. Targets are 44 px; text is 16 px so a phone does not zoom in. */
.dk-qf { display: flex; flex-direction: column; gap: 16px; margin: 14px 0 0; }
.dk-qf [hidden] { display: none !important; }
.dk-qf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dk-qf-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); min-width: 0; }
.dk-qf-q { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.dk-qf-n { color: var(--bn-text-3); }
.dk-qf-why { margin: 0; font-size: 14px; line-height: 1.45; color: var(--bn-text-2); overflow-wrap: anywhere; }
.dk-qf-wins { font-weight: 400; color: var(--bn-text-3); }
.dk-qf.is-live .dk-qf-wins { display: none; }
.dk-qf .bn-select, .dk-qf .dk-qf-input { min-height: 44px; font-size: 16px; }
.dk-qf .bn-select { text-overflow: ellipsis; }
.dk-qf-allown { min-height: 44px; align-self: flex-start; }
.dk-qf-box { width: 100%; box-sizing: border-box; min-height: 132px; font-size: 16px; resize: vertical; }
.dk-qf-send, .dk-fx-tap .bn-btn { min-height: 44px; }
.dk-fx-card .dk-fx-more summary { padding: 11px 0; }
.dk-qf-send { align-self: stretch; justify-content: center; }
@media (min-width: 700px) {
  .dk-qf-send { align-self: flex-start; min-width: 220px; }
  .dk-fx-acts > .dk-fx-tap.dk-fx-tap--wide { flex: 1 1 100%; }
  .dk-fx-acts > .dk-fx-tap--wide .bn-btn { align-self: flex-start; }
}
@media (min-width: 700px) {
  .dk-fx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dk-fx-kv > div { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .dk-fx-acts { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .dk-fx-acts > .dk-fx-tap { flex: 0 0 auto; }
  .dk-fx-acts > .dk-fx-tap .bn-btn { min-width: 180px; }
  .dk-fx-more { flex: 1 1 260px; }
}
@media (min-width: 1100px) {
  .dk-fx { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 28px; align-items: start;
    grid-template-areas: "head head" "waiting score" "line line" "work staff"; }
  .dk-fx > .dk-fx-head { grid-area: head; }
  .dk-fx > .dk-fx-waiting { grid-area: waiting; }
  .dk-fx > .dk-fx-score { grid-area: score; }
  .dk-fx > .dk-fx-line { grid-area: line; }
  .dk-fx > .dk-fx-work { grid-area: work; }
  .dk-fx > .dk-fx-staff { grid-area: staff; }
  .dk-fx .dk-fx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-fx-stations { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .dk-fx-change { max-width: 980px; }
}

/* Karl, 25 Sep: "use the full space when there is more screen space available". On a wide
   screen the process page drops the Desk's 1400 px cap and its chart fills the window's
   height, so a long line such as the factory's shows whole rather than in a small window.
   Here, not in process.css, which is a copy of Status's and is checked to stay one. */
@media (min-width: 1100px) {
  .dk-screen--wide.dk-process { max-width: none; }
  .dk-process .st-proc-frame.is-canvas { height: calc(100vh - 250px); min-height: 480px; max-height: none; }
}

/* Formatted worker text (desk/mdlite.py): Alder's plan, Burl's spec and questions, the card. */
.dk-fx-text.dk-md { white-space: normal; }
.dk-md > :first-child { margin-top: 0; }
.dk-md > :last-child { margin-bottom: 0; }
.dk-md p, .dk-md ul, .dk-md ol, .dk-md pre { margin: 0 0 10px; }
.dk-md ul, .dk-md ol { padding-left: 22px; }
.dk-md li { margin: 2px 0; }
.dk-md h3, .dk-md h4, .dk-md h5, .dk-md h6 { margin: 18px 0 8px; font-family: var(--bn-font-display, inherit); line-height: 1.25; }
.dk-md h3 { font-size: 20px; } .dk-md h4 { font-size: 17px; } .dk-md h5, .dk-md h6 { font-size: 15px; }
.dk-md code { font-family: var(--bn-font-mono, monospace); font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--bn-surface-3, var(--bn-surface)); overflow-wrap: anywhere; }
.dk-md pre { padding: 10px 12px; border-radius: var(--bn-radius-sm); background: var(--bn-surface); overflow-x: auto; }
.dk-md pre code { padding: 0; background: none; }
.dk-md hr { border: 0; border-top: 1px solid var(--bn-border); margin: 16px 0; }
.dk-md-table { overflow-x: auto; margin: 0 0 10px; }
.dk-md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.dk-md th, .dk-md td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--bn-border); }
.dk-md th { font-weight: 700; }

/* The side chat with Burl on his questions (t-45) */
.dk-chat { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bn-border); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dk-chat-title { margin: 0; font-size: 17px; }
.dk-chat-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dk-chat-msg { padding: 10px 14px; border-radius: var(--bn-radius-md); min-width: 0; overflow-wrap: anywhere; }
.dk-chat-msg--karl { background: var(--bn-surface-2); margin-left: 24px; }
.dk-chat-msg--burl { background: var(--bn-surface); border: 1px solid var(--bn-border); margin-right: 24px; }
.dk-chat-msg--factory { background: transparent; border: 1px dashed var(--bn-border); margin-right: 24px; color: var(--bn-text-2); }
.dk-chat-who { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.dk-chat-at { font-weight: 400; color: var(--bn-text-3); }
.dk-chat-text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.dk-chat-text.dk-md { white-space: normal; }
.dk-chat-wait { margin: 0; font-size: 14px; color: var(--bn-text-2); }
.dk-chat-form { display: flex; flex-direction: column; gap: 8px; }
.dk-chat-send, .dk-qf-ask { min-height: 44px; align-self: flex-start; }
.dk-chat-box { min-height: 96px; }

/* The workbenches (t-48): Chio's and Peeks', read-only */
.dk-bench-head { display: flex; flex-direction: column; gap: 6px; }
.dk-bench-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--bn-text-2); }
.dk-bench-name { margin: 0; font-size: 17px; }
.dk-bench-piece { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.dk-bench-drawing summary { cursor: pointer; color: var(--bn-link); font-size: 15px; }
.dk-bench-drawing .dk-md { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.dk-bench-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.dk-bench-label { color: var(--bn-text-2); }
.dk-bench-label--used { color: var(--bn-success-text); }
.dk-bench-label--missing { color: var(--bn-danger-text); font-weight: 700; }
/* t-58: on the phone's list the bench sits under its row, indented to the name */
.dk-org-bench--row { display: flex; align-items: center; min-height: 44px; padding: 0 0 6px 58px; font-size: 14px; font-weight: 600; color: var(--bn-link); text-decoration: none; }
/* t-57: the editions page */
.dk-edition { display: flex; flex-direction: column; gap: 10px; }
.dk-edition-verdict { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600; color: var(--bn-text); }
.dk-edition-switches { margin: 0; font-size: 14px; color: var(--bn-text-2); }
.dk-edition-held { color: var(--bn-danger-text); }
.dk-edition-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dk-edition-list > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-edition-list--plain > li { background: transparent; }
.dk-edition-kicker { font-size: 13px; font-weight: 700; color: var(--bn-text-3); }             /* sentence case (design system rule) */
.dk-edition-acts { margin: 4px 0 0; }
/* t-59: the release decisions on the Desk */
.dk-inline-form { display: inline-flex; margin: 0; }
.dk-edition-flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--bn-radius-md); background: var(--bn-success-subtle); border: 1px solid var(--bn-success-border); color: var(--bn-text); }
.dk-release-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--bn-border); border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-release-headline { font-size: 17px; font-weight: 700; color: var(--bn-text); }
.dk-release-claims summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--bn-link); font-weight: 600; }
.dk-release-claims ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.dk-release-claims blockquote { margin: 4px 0; padding-left: 10px; border-left: 2px solid var(--bn-border-strong); color: var(--bn-text-2); }
.dk-release-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dk-release-acts .bn-btn { min-height: 44px; }
.dk-release-publish { min-height: 48px; }
/* t-60: the newsroom on the Desk: one list of areas, and each area's page */
.dk-nr-up { color: inherit; }
.dk-nr-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-nr-areas .bn-chip { min-height: 32px; text-decoration: none; }
.dk-nr-list { display: flex; flex-direction: column; border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-nr-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-top: 1px solid var(--bn-border-subtle); color: var(--bn-text); text-decoration: none; }
.dk-nr-item:first-child { border-top: 0; }
.dk-nr-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dk-nr-item > .st-ic { flex: 0 0 auto; color: var(--bn-text-2); }
.dk-nr-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; }
.dk-nr-filter a { display: inline-flex; align-items: center; min-height: 36px; color: var(--bn-link); }
.dk-nr-filter a.is-on { color: var(--bn-text); font-weight: 700; text-decoration: none; }
.dk-nr-filter-gap { flex: 0 0 100%; height: 0; }
.dk-nr-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dk-nr-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-nr-row-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dk-nr-thumb { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; border-radius: var(--bn-radius-sm); background: var(--bn-surface-2); }
.dk-nr-empty { margin: 0; padding: 12px; color: var(--bn-text-2); font-size: 14px; border: 1px dashed var(--bn-border-subtle); border-radius: var(--bn-radius-md); list-style: none; }
.dk-nr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-nr-fig { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dk-nr-fig img, .dk-nr-none { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bn-radius-sm); background: var(--bn-surface-2); }
.dk-nr-none { display: flex; align-items: center; justify-content: center; color: var(--bn-text-3); font-size: 13px; }
.dk-nr-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 4px 0 0; font-size: 14px; }
.dk-nr-facts dt { color: var(--bn-text-3); }
.dk-nr-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dk-nr-why { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.dk-nr-why .bn-input { flex: 1 1 14rem; min-width: 0; }
.dk-nr-why .bn-btn { min-height: 44px; }
.dk-nr-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.dk-nr-form > .bn-btn { align-self: flex-start; min-height: 44px; }
.dk-nr-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--bn-link); font-weight: 600; }
.dk-nr-because { margin: 0; color: var(--bn-text); }
.dk-nr-signal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--bn-text-2); }
.dk-nr-links { display: flex; flex-wrap: wrap; gap: 12px; }
.dk-nr-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.dk-nr-kpi { padding: 10px 12px; border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); }
.dk-nr-kpi dt { font-size: 13px; color: var(--bn-text-2); }
.dk-nr-kpi dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: var(--bn-text); }
.dk-nr-kpi.is-quiet dd { font-size: 14px; font-weight: 400; }
.dk-nr-caveats { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--bn-text-2); }
/* t-60: an icon beside words (a link's arrow, a chevron) sits in the line, at the text's size */
.st-ic--text { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }
/* t-61: the leads page's filters. Each row of choices scrolls sideways on a phone rather than wrapping */
.dk-lf { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.dk-lf-search { display: flex; gap: 8px; }
.dk-lf-search .bn-input { flex: 1 1 auto; min-width: 0; }
.dk-lf-search .bn-btn { min-height: 44px; flex: 0 0 auto; }
.dk-lf-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.dk-lf-chips::-webkit-scrollbar { display: none; }
.dk-lf-chips .bn-chip { flex: 0 0 auto; min-height: 36px; padding: 0 12px; text-decoration: none; white-space: nowrap; }
.dk-lf-n { margin-left: 4px; opacity: .7; font-variant-numeric: tabular-nums; }
.dk-lf-more > summary { min-height: 40px; }
.dk-lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.dk-lf-grid .bn-select { width: 100%; }
.dk-lf-count { margin: 0; font-size: 15px; color: var(--bn-text-2); }
.dk-lf-count b { color: var(--bn-text); }
.dk-lf-moreb { min-height: 44px; }
.dk-lf-box { border: 1px solid var(--bn-border-subtle); border-radius: var(--bn-radius-md); background: var(--bn-surface); padding: 0 14px; }
.dk-lf-box > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.dk-lf-box > summary::-webkit-details-marker { display: none; }
.dk-lf-box > summary::after { content: ""; margin-left: auto; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--bn-text-2); border-bottom: 2px solid var(--bn-text-2); transform: rotate(45deg); transition: transform .15s; }
.dk-lf-box[open] > summary::after { transform: rotate(-135deg); }
.dk-lf-sum-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bn-text); flex: 0 0 auto; }
.dk-lf-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--bn-text-2); }
.dk-lf-box[open] > .dk-lf { padding-bottom: 14px; }
.dk-lf-box .dk-lf-chips { margin: 0 -14px; padding: 0 14px; }
/* t-71: the Cases page. Its headings are sentence case at reading size, not an uppercase eyebrow */
.dk-nr-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--bn-text); }
.dk-nr-h-note { font-size: 14px; font-weight: 400; color: var(--bn-text-2); }
.dk-cs-stories { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--bn-text-2); overflow-wrap: anywhere; }
.dk-cs-story { color: var(--bn-text); }
.dk-cs-sofar { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; padding: 8px 12px; border-left: 3px solid var(--bn-border-strong); font-size: 14px; color: var(--bn-text); overflow-wrap: anywhere; }
.dk-cs-sofar p { margin: 0; }
.dk-cs-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--bn-text); }
.dk-cs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 8px; }
.dk-cs-fields .bn-select, .dk-cs-form .bn-select { width: 100%; max-width: 100%; }
