/* C · Dispatch — the team as a calm board. One gesture: a single large
   "last dispatch" line with its timestamp, above quiet, grouped work lanes. */
.dp-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "stamp thumb id stats" "stamp thumb id btns"; align-items: center; gap: 6px 18px; padding: 26px 0 18px; }
.dp-head:not(:has(.dp-thumb)) { grid-template-areas: "stamp id id stats" "stamp id id btns"; }
.stamp { grid-area: stamp; width: 68px; height: 68px; padding: 13px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); outline: 2px dashed var(--accent); outline-offset: 4px; margin: 6px; }
:root[data-shape="round"] .stamp { border-radius: 50%; }
.dp-thumb { grid-area: thumb; width: 68px; height: 68px; border-radius: var(--r-sm); overflow: hidden; position: relative; display: none; }
:root[data-cover="small"] .dp-thumb { display: block; }
.dp-id { grid-area: id; min-width: 0; }
.dp-id h1 { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: var(--display-lh); font-style: var(--display-style); font-size: calc(52px * var(--display-k)); }
.dp-id p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 60ch; }
.dp-stats { grid-area: stats; display: flex; gap: 22px; justify-self: end; }
.dp-stats div { display: grid; }
.dp-stats dt { font: 500 10px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dp-stats dd { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.dp-head .btns { grid-area: btns; justify-self: end; }
.dp-cover { position: relative; height: 168px; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; background: var(--surface-2); }
.dp-cover .cover { position: absolute; inset: 0; object-position: 50% 58%; }
.dp-cover figcaption { position: absolute; z-index: 3; left: 14px; bottom: 12px; background: #000a; color: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 9px; border-radius: 4px; }
:root[data-cover="small"] .dp-cover, :root[data-cover="hidden"] .dp-cover { display: none; }

.dispatch-line { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 20px; text-align: left; padding: 18px 22px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--r); }
.dispatch-line .kicker { color: var(--accent-text); }
.dl-text { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-style: var(--display-style); font-size: calc(22px * var(--display-k) + 8px); line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
button.dispatch-line:hover .dl-text { color: var(--accent-text); }

.dp-grid { display: grid; gap: var(--gap); margin-top: var(--gap); grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto auto 1fr; align-items: start;
  grid-template-areas: "board who" "board chat" "board treasury" "board exchange" "board ."; }
:root[data-chat="top"] .dp-grid { grid-template-areas: "chat chat" "board who" "board treasury" "board exchange" "board ."; }
:root[data-chat="bottom"] .dp-grid { grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "board who" "board treasury" "board exchange" "board ." "chat ."; }
.dp-grid > .board { grid-area: board; min-width: 0; }
.dp-grid > .who { grid-area: who; }
.dp-grid > .chatbox { grid-area: chat; }
.dp-grid > .treasury { grid-area: treasury; }
.dp-grid > .exchange { grid-area: exchange; }
:root[data-chat="top"] .dp-chat .chat-list { max-height: 160px; }

.lane { margin-top: calc(16px * var(--s)); }
.lane:first-of-type { margin-top: 6px; }
.lane-title { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.count { font-weight: 600; color: var(--ink); }
.lane-empty { font-size: 13.5px; color: var(--muted); padding: 9px 0 2px 26px; }
.dp-row { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 180px) 128px 72px; align-items: center; gap: 12px; text-align: left; padding: calc(11px * var(--s)) 2px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); font-size: 14.5px; }
button.dp-row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.dp-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-who { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; overflow: hidden; white-space: nowrap; }
.dp-when { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-row .num { text-align: right; font-weight: 600; }
.dp-dot { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid var(--muted); }
.dp-dot.st-in-progress { border-color: var(--live); background: conic-gradient(var(--live) 0 50%, #0000 50% 100%); }
.dp-dot.st-in-review { border-color: var(--accent-text); background: radial-gradient(var(--accent-text) 0 2.5px, #0000 3px); }
.dp-dot.st-accepted { border-color: var(--ink); background: var(--ink); }
.lane-done .dp-title { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }

.who-list { display: grid; gap: 2px; }
.who-list li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.who-list li:first-child { border-top: 0; }
.who-list .av { grid-row: span 2; }
.who-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.who-line { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board > .list-title { margin: 20px var(--pad) 0; }
.board .events { margin: 6px var(--pad) var(--pad); }
.board > .panel-head { margin: var(--pad) var(--pad) 0; }
.board > .lane { margin-left: var(--pad); margin-right: var(--pad); }

@container room (max-width: 960px) {
  .dp-head, .dp-head:not(:has(.dp-thumb)) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "stamp id" "stats stats" "btns btns"; }
  .dp-thumb { display: none !important; }
  .dp-stats, .dp-head .btns { justify-self: stretch; }
  .dp-grid, :root[data-chat] .dp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "board" "who" "chat" "treasury" "exchange"; }
  :root[data-chat="top"] .dp-grid { grid-template-areas: "chat" "board" "who" "treasury" "exchange"; }
}
@container room (max-width: 720px) {
  .dp-head { padding: 16px 0 12px; gap: 10px 14px; }
  .stamp { width: 48px; height: 48px; padding: 9px; outline-offset: 3px; margin: 4px; }
  .dp-id h1 { font-size: calc(40px * var(--display-k)); }
  .dp-id p { font-size: 14px; }
  .dp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .dp-stats dd { font-size: 17px; }
  .dp-head .btns > * { flex: 1; }
  .dp-cover { height: 120px; }
  .dispatch-line { grid-template-columns: 1fr; padding: 14px 16px; }
  .dl-text { font-size: calc(16px * var(--display-k) + 7px); -webkit-line-clamp: 3; }
  .dp-grid > .board { margin: 0 -16px; border-left: 0; border-right: 0; border-radius: 0; }
  .dp-row { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "dot title num" ". who when"; row-gap: 3px; padding: 12px 0; }
  .dp-row .dp-dot { grid-area: dot; }
  .dp-title { grid-area: title; white-space: normal; }
  .dp-who { grid-area: who; }
  .dp-when { grid-area: when; text-align: right; }
  .dp-row .num { grid-area: num; }
}
.dp-log ol { display: grid; }
.dp-log li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 8px 0 8px 2px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); font-size: 14px; }
.dp-log time { font: 500 11.5px/1.9 var(--mono); color: var(--muted); }
@container room (max-width: 720px) { .dp-log li { grid-template-columns: 62px 1fr; } }
