/* Mako Account and Mako Desk, loaded after the kit's mk.css (vendored from mako-kit; see KIT.md). */

/* Brand tokens come from the kit (mk-brand.css, kit brands/design.css), loaded before this file. */

/* Below: kit tokens only; no raw colours. */

.dk-main { display: grid; gap: var(--mk-gap-section); }
.dk-layout { display: grid; gap: var(--mk-gap-card); min-width: 0; }
.dk-side { display: grid; gap: var(--mk-s-3); align-content: start; min-width: 0; }
.dk-list, .dk-feed { display: grid; gap: var(--mk-gap-card); align-content: start; min-width: 0; }
.dk-count { color: var(--mk-muted); font-variant-numeric: tabular-nums; font-weight: 650; }
.dk-fine { font-size: 13.5px; line-height: 1.5; }

/* Forms */
.dk-field { display: grid; gap: var(--mk-s-1); min-width: 0; }
.dk-field > span:first-child { color: var(--mk-muted); font-size: 13px; font-weight: 650; }
.dk-edit-form { display: grid; gap: var(--mk-s-3); }
.dk-edit-form h2 { font-size: 17px; }
.dk-edit-form .mk-btn { justify-self: start; min-height: 44px; }
.dk-btn-small { min-height: 44px; }

/* A project's stage: the word carries the meaning, colour only backs it up. */
.dk-stage { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dk-stage-live { background: var(--mk-brand); color: var(--mk-on-brand); }
.dk-stage-idea, .dk-stage-paused { background: transparent; color: var(--mk-muted); box-shadow: inset 0 0 0 1px var(--mk-edge); }

/* A question card: the question, its options as big tap targets, the recommended one marked with its reason. */
.dk-q { gap: var(--mk-s-3); padding: var(--mk-pad-card); scroll-margin-top: calc(var(--mk-bar-h) + 32px); }
.dk-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1); }
.dk-q-title { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.dk-q-context { color: var(--mk-muted); font-size: 14.5px; line-height: 1.5; }
.dk-edit summary, .dk-post summary { display: inline-flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; color: var(--mk-brand); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.dk-answer { display: grid; gap: var(--mk-s-1); }
.dk-answer-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); font-size: 16px; }
.dk-answer-pick .mk-icon { width: 20px; height: 20px; color: var(--mk-brand); }
.dk-answer-text { padding: var(--mk-s-3); border-radius: 14px; background: var(--mk-tint); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.dk-answer-who { font-size: 13px; }
.dk-answer form { margin-top: var(--mk-s-1); }
.dk-q-answered, .dk-q-closed { opacity: .96; }

/* Open questions come in groups: holding up work (urgent, on top), needing an answer, and going ahead on the default. */
.dk-section { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; gap: var(--mk-gap-card); align-content: start; min-width: 0; }
.dk-section + .dk-section { margin-top: calc(var(--mk-gap-section) - var(--mk-gap-card)); }
.dk-section-head, .dk-section-note, .dk-batch { grid-column: 1 / -1; }
.dk-section-head { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 17px; letter-spacing: -.01em; }
.dk-section-head .mk-icon { width: 20px; height: 20px; }
.dk-section-note { margin-top: calc(-1 * var(--mk-s-1)); color: var(--mk-muted); font-size: 14px; line-height: 1.45; }
.dk-q-urgent { border-color: var(--mk-negative); box-shadow: var(--mk-shadow), inset 4px 0 0 var(--mk-negative); }
.dk-group-urgent .dk-section-head { color: var(--mk-negative); }
.dk-group-urgent .dk-section-head .mk-records-count { background: color-mix(in srgb, var(--mk-negative) 14%, transparent); color: inherit; }
.dk-q-blocks { padding: var(--mk-s-2) var(--mk-s-3); border-radius: 12px; background: color-mix(in srgb, var(--mk-negative) 10%, transparent); font-size: 14.5px; line-height: 1.45; }
.dk-q-blocks strong { color: var(--mk-negative); }
.dk-batch { gap: var(--mk-s-2); padding: var(--mk-s-3) var(--mk-s-4); }
.dk-batch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.dk-batch-head h3 { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 16px; }
.dk-batch-head h3 .mk-icon { width: 18px; height: 18px; color: var(--mk-brand); }
.dk-batch-list { display: grid; gap: var(--mk-s-3); }
.dk-batch-list summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--mk-brand); font-size: 14px; font-weight: 700; cursor: pointer; }
.dk-batch-list[open] { gap: var(--mk-s-3); }
.dk-batch-titles { margin: 0 0 var(--mk-s-2); padding-inline-start: var(--mk-s-4); display: grid; gap: var(--mk-s-1); font-size: 14px; line-height: 1.45; }

/* Projects */
.dk-projects { display: grid; gap: var(--mk-s-4); margin: 0; padding: 0; list-style: none; }
.dk-project { gap: var(--mk-s-3); padding: var(--mk-s-4); scroll-margin-top: calc(var(--mk-bar-h) + 32px); }
.dk-project-head { display: flex; align-items: center; gap: var(--mk-s-3); }
.dk-project-icon { width: 52px; height: 52px; }
.dk-project-icon .mk-icon { width: 26px; height: 26px; }
.dk-project-name { display: grid; justify-items: start; gap: var(--mk-s-1); flex: 1; min-width: 0; }
.dk-project-name h2 { font-size: 17px; letter-spacing: -.01em; }
.dk-open-count { display: inline-flex; align-items: center; justify-content: center; gap: var(--mk-s-1); min-width: 44px; min-height: 44px; padding: 0 var(--mk-s-2); border-radius: 999px; background: color-mix(in srgb, var(--mk-dot) 20%, transparent); color: var(--mk-ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.dk-open-count .mk-icon { width: 16px; height: 16px; }
.dk-facts { display: grid; gap: var(--mk-s-2); margin: 0; }
.dk-facts div { display: grid; gap: 2px; }
.dk-facts dt { color: var(--mk-muted); font-size: 12.5px; font-weight: 650; }
.dk-facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.dk-facts a { color: var(--mk-ink); text-decoration-color: color-mix(in srgb, var(--mk-brand) 50%, transparent); text-underline-offset: 3px; }
.dk-edit { border-top: 1px solid var(--mk-edge); padding-top: var(--mk-s-1); }
.dk-edit[open] .dk-edit-form { padding: var(--mk-s-2) 0 var(--mk-s-1); }

/* Updates */
.dk-post { gap: 0; padding: var(--mk-s-1) var(--mk-s-4); }
.dk-post[open] { padding-bottom: var(--mk-s-4); }
.dk-group { display: grid; gap: var(--mk-s-2); }
.dk-group-head { display: flex; align-items: center; gap: var(--mk-s-3); }
.dk-group-head .mk-appbar-icon { width: 32px; height: 32px; border-radius: 10px; }
.dk-group-head .mk-appbar-icon .mk-icon { width: 18px; height: 18px; }
.dk-group-head h2 { flex: 1; min-width: 0; font-size: 16px; }
.dk-group-head h2 a { color: inherit; text-decoration: none; }
.dk-summary { display: grid; gap: var(--mk-s-1); font-size: 14.5px; line-height: 1.5; }
.dk-updates { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--mk-edge); border-radius: var(--mk-r-card); background: var(--mk-glass); box-shadow: var(--mk-shadow), inset 0 1px 0 var(--mk-hi); backdrop-filter: blur(var(--mk-blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(170%); overflow: hidden; }
.dk-update { position: relative; display: flex; gap: var(--mk-s-3); padding: var(--mk-s-3) var(--mk-s-4) var(--mk-s-3) var(--mk-s-6); }
.dk-update + .dk-update { border-top: 1px solid var(--mk-edge); }
.dk-update-main { display: grid; gap: var(--mk-s-1); min-width: 0; }
.dk-update-line { font-size: 15px; font-weight: 600; line-height: 1.4; }
summary.dk-update-line { min-height: 24px; cursor: pointer; }
.dk-update-detail { margin-top: var(--mk-s-1); color: var(--mk-muted); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.dk-update-meta { display: flex; align-items: center; gap: var(--mk-s-1); font-size: 12.5px; }
.dk-update-meta .mk-icon { width: 14px; height: 14px; }
.dk-dot { position: absolute; inset-inline-start: 11px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-dot) 25%, transparent); }

/* Lists of rows inside cards (devices, passkeys, agents, audit) */
.dk-rows { margin: 0; padding: 0; list-style: none; }
.dk-rows .mk-menu-label { display: grid; gap: 2px; min-width: 0; }
.dk-sub { font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.dk-this { justify-self: start; padding: 1px var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand); font-size: 11.5px; font-weight: 750; }
.dk-time { flex: none; font-size: 12.5px; }
.dk-rows form { margin: 0; }
.dk-row-block { display: grid; }
.dk-row-block > * + * { border-top: 1px solid var(--mk-edge); }
.dk-token-item { padding-inline-start: var(--mk-s-8); }
.dk-token-new { gap: var(--mk-s-2); box-shadow: var(--mk-shadow), inset 0 0 0 1.5px var(--mk-brand); }
.dk-token-row { display: flex; align-items: center; gap: var(--mk-s-2); }
.dk-token { flex: 1; min-width: 0; padding: var(--mk-s-2) var(--mk-s-3); border-radius: 12px; background: var(--mk-surface); font-size: 13px; overflow-wrap: anywhere; }
.dk-audit .mk-menu-item { min-height: 52px; }

/* Account */
.dk-account { display: grid; gap: var(--mk-s-4); }
.mk-card.dk-section { gap: var(--mk-gap-in); padding: var(--mk-pad-card); scroll-margin-top: calc(var(--mk-bar-h) + 32px); }
.dk-section h2 { font-size: 17px; }
.dk-section-top { display: flex; align-items: center; gap: var(--mk-s-2); }
.dk-section .mk-menu { margin: 0; }
.dk-passkey-add { display: grid; gap: var(--mk-s-2); justify-items: start; }
.dk-passkey-add .mk-btn { min-height: 44px; }

/* Settings sheet */
.dk-settings { display: grid; gap: var(--mk-s-5); }
.dk-settings .mk-menu { margin: 0; }
.dk-channel { min-height: 60px; }
.dk-channel .mk-menu-label { display: grid; gap: 1px; }
.dk-channel-hint { font-size: 12px; font-weight: 500; }

/* The consent screen. */
.dk-consent-actions { display: flex; flex-wrap: wrap; gap: var(--mk-s-3); margin-top: var(--mk-s-3); }
.dk-consent-actions form { margin: 0; }

/* Tablets and desktops (>= 900px): a side column for filters and forms, the cards beside it. */
@media (min-width: 900px) {
  .dk-layout { grid-template-columns: var(--mk-side-w) minmax(0, 1fr); align-items: start; }
  .dk-side { position: sticky; top: calc(var(--mk-bar-h) + var(--mk-s-6)); }
  .dk-q-title { font-size: 20px; }
  .dk-account { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; }
  .dk-account > #devices { grid-column: 2; grid-row: 1 / span 3; }
}

/* Wide desktops: the account's sections in three columns. The projects and updates are kit boards (mk-board). */
@media (min-width: 1800px) {
  .dk-account { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-account > #devices { grid-column: 3; }
}

/* "Sign in with Mako" on the Desk's signed-out page. */
.dk-mako-button { justify-self: start; min-height: 48px; margin-top: var(--mk-s-3); }
.dk-mako-button .mk-mark { width: 26px; height: 26px; }

/* ===== The Desk home: what needs you now, the questions, and projects and activity beside them =====
   Phone: one column (now, search, questions, projects, activity). >= 900px: filters beside the questions.
   >= 1400px: a third column for projects and activity. Kit tokens only. */
.dk-home { display: grid; gap: var(--mk-s-4); min-width: 0; grid-template-areas: "now" "list" "rail"; }
.dk-now { grid-area: now; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mk-s-2); }
.dk-home > .dk-qcol { grid-area: list; display: grid; gap: var(--mk-gap-card); align-content: start; min-width: 0; }
/* The questions: the kit's record-list; each row is a question card, with the group headings as rows of their own. */
.dk-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.dk-records .mk-records-list { gap: var(--mk-gap-card); }
.dk-group-row { display: grid; gap: var(--mk-s-1); padding-top: var(--mk-s-2); }
.dk-group-row + .dk-q-row { margin-top: 0; }
.dk-q-row + .dk-group-row { margin-top: calc(var(--mk-gap-section) - var(--mk-gap-card)); }
.dk-q-row { display: grid; min-width: 0; }
.dk-q-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-1); margin: 0; }
.dk-q-tags a.mk-tag { min-height: 32px; padding: 0 var(--mk-s-3); color: var(--mk-ink); text-decoration: none; }
.dk-q-tags a.mk-tag:hover { border-color: var(--mk-brand); }
.dk-answer-pick .mk-tag .mk-icon { width: 13px; height: 13px; }
.dk-rail { grid-area: rail; display: grid; gap: var(--mk-s-4); align-content: start; min-width: 0; }
.dk-now .mk-stat { min-width: 0; }
.dk-now .mk-stat-value { font-size: 26px; font-variant-numeric: tabular-nums; }
.dk-now .mk-stat-note { overflow: hidden; color: var(--mk-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.mk-stat.dk-stat-urgent { border-color: var(--mk-negative); box-shadow: var(--mk-shadow), inset 0 3px 0 var(--mk-negative); }
.mk-stat.dk-stat-urgent .mk-stat-value { color: var(--mk-negative); }
@media (max-width: 599.98px) {
  .dk-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-now .mk-stat-value { font-size: 22px; }
}
.dk-search { margin: 0; }
.dk-search > .mk-icon { flex: none; width: 20px; height: 20px; color: var(--mk-muted); }
.dk-no-match { justify-items: center; color: var(--mk-muted); }
.dk-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mk-s-2); }
.dk-card-head h2 { display: flex; align-items: center; gap: var(--mk-s-2); font-size: 17px; letter-spacing: -.01em; }
.dk-card-head .mk-chip { flex: none; padding: 0 var(--mk-s-3); color: var(--mk-brand); }
.dk-card-head .mk-appbar-icon { width: 36px; height: 36px; }
.dk-progress, .dk-activity { grid-template-columns: minmax(0, 1fr); gap: var(--mk-s-3); padding: var(--mk-s-4); }
.dk-rows, .dk-activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.dk-rows > li + li, .dk-activity-list > li + li { border-top: 1px solid var(--mk-edge); }
.dk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--mk-s-3); min-height: 64px; padding: var(--mk-s-2) var(--mk-s-1); border-radius: 14px; color: var(--mk-ink); text-decoration: none; }
.dk-row:hover { background: var(--mk-tint); }
.dk-row-icon { width: 40px; height: 40px; }
.dk-row-icon .mk-icon { width: 20px; height: 20px; }
.dk-row-main { display: grid; gap: var(--mk-s-1); min-width: 0; }
.dk-row-top { display: flex; align-items: center; gap: var(--mk-s-2); min-width: 0; }
.dk-row-top strong { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.dk-row-line { overflow: hidden; color: var(--mk-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dk-row-progress { height: 4px; }
.dk-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 0 var(--mk-s-2); border-radius: 999px; background: var(--mk-tint); color: var(--mk-brand); font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-badge-urgent { background: color-mix(in srgb, var(--mk-negative) 14%, transparent); color: var(--mk-negative); }
.dk-badge-quiet { background: transparent; color: var(--mk-muted); box-shadow: inset 0 0 0 1px var(--mk-edge); }
.dk-activity-list > li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--mk-s-2); padding: var(--mk-s-3) var(--mk-s-1); }
.dk-activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mk-tint); color: var(--mk-brand); }
.dk-activity-icon .mk-icon { width: 16px; height: 16px; }
.dk-activity-main { display: grid; gap: var(--mk-s-1); min-width: 0; font-size: 14px; line-height: 1.4; }
.dk-activity-main a { color: var(--mk-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dk-activity-main a:hover { text-decoration: underline; text-decoration-color: var(--mk-brand); }
.dk-activity-main .mk-muted { font-size: 12.5px; }
.dk-activity-list .dk-dot { inset-inline-start: auto; inset-inline-end: 4px; top: 18px; }
.dk-activity-new .dk-activity-main a { color: var(--mk-brand); }

/* Projects: cards with stage, the track and the counts; each opens its project page. */
.dk-cards { margin: var(--mk-s-4) 0 0; padding: 0; list-style: none; } /* a kit board (mk-board) */
.dk-cards > li { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dk-pcard { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: var(--mk-s-3); padding: var(--mk-s-4); color: var(--mk-ink); text-decoration: none; transition: border-color var(--mk-m-quick) var(--mk-e-out), transform var(--mk-m-quick) var(--mk-e-spring); }
.dk-pcard:hover { border-color: color-mix(in srgb, var(--mk-brand) 45%, var(--mk-edge)); }
.dk-pcard:active { transform: scale(var(--mk-press)); }
.dk-pcard-urgent { box-shadow: var(--mk-shadow), inset 4px 0 0 var(--mk-negative); }
.dk-pcard-head { display: flex; align-items: center; gap: var(--mk-s-3); }
.dk-pcard-name { display: grid; justify-items: start; gap: var(--mk-s-1); min-width: 0; }
.dk-pcard-name strong { font-size: 17px; letter-spacing: -.01em; }
.dk-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--mk-s-1); }
.dk-track > span { display: grid; gap: var(--mk-s-1); color: var(--mk-muted); font-size: 11px; font-weight: 650; text-align: center; }
.dk-track > span::before { content: ""; height: 6px; border-radius: 3px; background: var(--mk-line); }
.dk-track .dk-track-on::before { background: var(--mk-brand); }
.dk-track .dk-track-now { color: var(--mk-brand); }
.dk-pcard-facts { display: grid; gap: var(--mk-s-2); font-size: 14px; line-height: 1.45; }
.dk-pcard-facts > span { display: grid; gap: 1px; }
.dk-pcard-facts small { color: var(--mk-muted); font-size: 12px; font-weight: 650; }
.dk-pcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mk-s-2); }
.dk-pcard-last { flex-basis: 100%; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

/* One project: status, its questions and its updates in one place. */
.dk-project-page { display: grid; gap: var(--mk-s-4); min-width: 0; grid-template-areas: "status" "questions" "updates"; }
.dk-status { grid-area: status; gap: var(--mk-s-3); padding: var(--mk-s-4); }
.dk-project-questions { grid-area: questions; display: grid; gap: var(--mk-s-3); align-content: start; }
.dk-project-updates { grid-area: updates; gap: var(--mk-s-2); padding: var(--mk-s-4); align-content: start; }
.dk-project-updates .dk-updates { margin: 0 calc(-1 * var(--mk-s-4)); }
.dk-answered summary { display: flex; align-items: center; gap: var(--mk-s-2); min-height: 44px; cursor: pointer; font-weight: 650; }
.dk-group-head .dk-new { margin-inline-start: auto; }
.dk-chips .mk-chip { gap: var(--mk-s-1); font-size: 13px; }

/* Tablet: filters beside the questions, projects and activity under them. From 1400px: the kit's three columns
   (--mk-side-w, the questions, --mk-rail-w). From 1800px the questions and the "going ahead" projects fill as many
   columns as fit (at least 420px each): two on a desktop, three or four on an ultra-wide screen. */
@media (min-width: 900px) {
  .dk-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-project-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "status status" "questions updates"; column-gap: var(--mk-gap-card); align-items: start; }
  .dk-status { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--mk-gap-section); }
  .dk-status > .dk-card-head, .dk-status > .dk-edit { grid-column: 1 / -1; }
  .dk-status .dk-track { align-self: center; }
}
@media (min-width: 1400px) {
  .dk-home { grid-template-columns: minmax(0, 1fr) var(--mk-rail-w); grid-template-areas: "now now" "list rail"; column-gap: var(--mk-gap-card); align-items: start; }
  .dk-rail { grid-template-columns: minmax(0, 1fr); position: sticky; top: calc(var(--mk-bar-h) + var(--mk-s-6)); max-height: calc(100vh - var(--mk-bar-h) - var(--mk-s-12)); overflow-y: auto; scrollbar-width: thin; }
  .dk-project-page { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 1800px) {
  .dk-page-questions .dk-records .mk-records-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
  .dk-page-questions .dk-group-row { grid-column: 1 / -1; }
  .dk-page-questions .dk-batch { align-content: start; }
}

/* Phones: the summary, then the questions, then the rest; nothing sits under the bottom bar. */
@media (max-width: 899.98px) {
  .dk-app .mk-main { padding-bottom: calc(var(--mk-tabbar-h) + 2 * var(--mk-s-3) + var(--mk-safe-bottom)); }
}
@media (min-width: 900px) {
  /* The header carries the Desk's buttons on wide screens; the bottom bar is for phones. */
  .dk-bottombar { display: none; }
}

/* Answer one at a time: the kit's question card on its own screen. */
.dk-one-start { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
.dk-one-urgent .mk-qcard-badge { color: var(--mk-negative); background: color-mix(in srgb, var(--mk-negative) 12%, transparent); }
.dk-one-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mk-s-2); margin: 0; }

/* Right to left (Persian): the select's arrow sits at the start of the line. */

/* The kit's live-status, quiet, at the top right of every Desk page. */
.dk-live-row { display: flex; justify-content: flex-end; margin-block: calc(-1 * var(--mk-s-4)) calc(-1 * var(--mk-gap-section) + var(--mk-s-2)); }

/* What happens if nobody answers, and by when. */
.dk-q-default { display: flex; align-items: flex-start; gap: var(--mk-s-2); margin: 0; color: var(--mk-ink); font-size: 14px; line-height: 1.45; }
.dk-q-default .mk-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--mk-muted); }

/* Errors in place, with what to do next. */
.dk-inline-error { display: flex; align-items: flex-start; gap: var(--mk-s-2); padding: var(--mk-s-2) var(--mk-s-3); border-radius: 12px; background: color-mix(in srgb, var(--mk-warn) 12%, transparent); font-size: 13.5px; line-height: 1.45; }
.dk-inline-error .mk-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--mk-warn); }

/* Deploy and health per product: a dot and a word, never colour alone. */
.dk-products { gap: var(--mk-gap-in); padding: var(--mk-s-4); }
.dk-products form { margin: 0; }
.dk-health-sum { margin: 0; font-size: 14px; }
.dk-bad { color: var(--mk-negative); }
.dk-health { display: grid; margin: 0; padding: 0; list-style: none; }
.dk-health > li + li { border-top: 1px solid var(--mk-edge); }
.dk-health-row { display: flex; align-items: center; gap: var(--mk-s-3); min-width: 0; padding: var(--mk-s-2) var(--mk-s-1); }
dd.dk-health-row { padding: 0; gap: var(--mk-s-2); }
.dk-health-main { display: grid; gap: 2px; min-width: 0; }
.dk-health-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mk-brand); }
.dk-health-bad .dk-health-dot { background: var(--mk-negative); }
.dk-health-bad .dk-row-line { color: var(--mk-negative); white-space: normal; }

/* The timeline: days, then what happened, each with its icon. */
.dk-day { margin: var(--mk-s-2) 0 0; color: var(--mk-muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dk-timeline > li { padding-top: var(--mk-s-2); padding-bottom: var(--mk-s-2); }
.dk-activity-icon.dk-tone-on { background: var(--mk-brand); color: var(--mk-on-brand); }
.dk-activity-icon.dk-tone-urgent { background: color-mix(in srgb, var(--mk-negative) 14%, transparent); color: var(--mk-negative); }
.dk-activity-line { font-weight: 600; overflow-wrap: anywhere; }
.dk-chart { padding: var(--mk-s-4); }
