/* The chat's context row (round 3, package C2: docs/CHAT_ROUND3_SPEC.md 5.5 and 5.6).
   The "Talking about" pill and the work pill: each 36 px to the eye, 44 px to a finger (the
   buttons reach 4 px past the pill above and below). The Simple layout's tokens; no new
   colour and no new font. */

#desk .desk-context { gap: 8px; margin: 0 0 8px; }
#desk .desk-context .desk-pin { margin: 0; }

/* "Talking about" (5.5) */
#desk .desk-pin.dc-pill { flex: 1 1 60%; min-width: 0; display: flex; align-items: center; gap: 0; height: 36px; min-height: 36px;
  padding: 0 0 0 4px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; line-height: 1.2; }
#desk .desk-pin.dc-pill[hidden] { display: none; }
#desk .dc-about { flex: 1 1 auto; min-width: 0; height: 44px; min-height: 44px; margin: -4px 0; padding: 0 4px 0 8px;
  display: flex; align-items: center; gap: 6px; background: transparent; border: 0; border-radius: 999px; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
#desk .dc-about:focus-visible { outline: 2px solid var(--primary, #3167ed); outline-offset: -2px; }
#desk .dc-about-k { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
#desk .dc-about-k svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#desk .dc-about b#deskPinLabel { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#desk .desk-pin.dc-pill .desk-unpin { flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: -4px 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; }
#desk .desk-pin.dc-pill .desk-unpin:focus-visible { outline: 2px solid var(--primary, #3167ed); outline-offset: -4px; }

/* the list of others: a popover anchored to the pill, 56 px rows */
.dc-pop { position: fixed; z-index: 92; max-height: min(392px, 60vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.dc-pop .dc-other { display: flex; align-items: center; justify-content: flex-start; gap: 12px; box-shadow: none; width: 100%; min-height: 56px; padding: 8px 10px; margin: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.dc-pop .dc-other:hover, .dc-pop .dc-other:focus-visible { background: var(--accent-soft); outline: none; }
.dc-pop .dc-other img, .dc-pop .dc-noimg { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line); }
.dc-pop .dc-ot { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-pop .dc-ot b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-pop .dc-ot small { font-size: 13px; color: var(--muted); }
.dc-pop .dc-none, .dc-worksheet .dc-none { margin: 0; padding: 14px 10px; color: var(--muted); font-size: 15px; }

/* "Talk about this" under every thing: a quiet line, 44 px to a finger */
#desk #deskItems button.dc-talk { display: inline-flex; flex: none; align-self: flex-start; justify-self: start; justify-content: flex-start; align-items: center;
  gap: 6px; width: auto; max-width: 100%; min-width: 44px; min-height: 44px; height: 44px; margin: 0; padding: 0 12px 0 8px; border: 0;
  border-radius: 999px; background: transparent; box-shadow: none; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
#desk #deskItems button.dc-talk svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#desk #deskItems button.dc-talk:hover, #desk #deskItems button.dc-talk:focus-visible { color: var(--ink); background: var(--accent-soft); outline: none; }

/* the work pill (5.6) */
#desk .desk-workpill.dc-work { flex: 0 1 auto; min-width: 64px; max-width: 55%; height: 44px; min-height: 44px; margin: -4px 0; padding: 4px 0;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
#desk .desk-workpill.dc-work:only-child, #desk .desk-pin[hidden] + .desk-workpill.dc-work { max-width: 100%; }
#desk .dc-work[hidden] { display: none; }
#desk .dc-wface { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); min-width: 0; font-variant-numeric: tabular-nums; }
#desk .dc-work:focus-visible .dc-wface { outline: 2px solid var(--primary, #3167ed); outline-offset: 1px; }
#desk .dc-work.ready .dc-wface { border-color: var(--primary, #3167ed); color: var(--primary, #3167ed); }
#desk .dc-wbar { flex: none; width: 16px; height: 4px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, transparent 0, var(--primary, #3167ed) 0 50%, transparent 50%) 0 0 / 32px 4px repeat-x,
  color-mix(in srgb, var(--primary, #3167ed) 22%, transparent);
  animation: dc-wmove 1.1s linear infinite; }
#desk .dc-work.ready .dc-wbar { animation: none; background: var(--primary, #3167ed); }
@keyframes dc-wmove { to { background-position: 32px 0, 0 0; } }
#desk .dc-ww { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#desk .dc-wn { display: none; }

/* the "Being made" sheet: 64 px a row, Cancel quiet in red text and edge */
.dc-worksheet .dc-wrows { list-style: none; margin: 0; padding: 0; }
.dc-worksheet .dc-wrow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dc-worksheet .dc-wrow:last-child { border-bottom: 0; }
.dc-worksheet .dc-wl { flex: 1 1 auto; min-width: 0; }
.dc-worksheet .dc-wl b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-worksheet .dc-wt { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.dc-worksheet .dc-wl .bar { margin: 6px 0 0; }
/* no measure, no fraction: a short stripe that travels the track, never a bar that reads "30 percent done" */
.dc-worksheet .dc-nomeasure > i { width: 30%; animation: dc-wslide 1.6s ease-in-out infinite, bar-flow 2.4s linear infinite; }
@keyframes dc-wslide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.dc-worksheet .dc-cancel { flex: none; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent;
  color: var(--bad, #d64545); border: 1px solid var(--bad, #d64545); font-size: 14px; white-space: nowrap; }
.dc-worksheet .dc-cancel:disabled { opacity: .5; }
/* Open: a clip or a picture being made, where it lives (Z13), quiet beside Cancel */
.dc-worksheet .dc-wopen { flex: none; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent;
  color: var(--ink, inherit); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }

/* the label keeps 120 px (context.js fit): first the work pill is its bar and its count, then the
   words "Talking about:" are the speech mark */
#desk .desk-context.dc-tight .desk-workpill.dc-work { flex: none; max-width: 64px; }
#desk .desk-context.dc-tight .dc-wface { padding: 0 10px; gap: 6px; }
#desk .desk-context.dc-tight .dc-ww { display: none; }
#desk .desk-context.dc-tight .dc-wn { display: inline; }
#desk .desk-context.dc-tight .dc-work.ready .dc-wn { display: none; }
#desk .desk-context.dc-tight .dc-work.ready .dc-ww { display: inline; }
#desk .desk-context.dc-tight .dc-work.ready { max-width: 50%; }
#desk .desk-context.dc-tighter .dc-about-w { display: none; }
#desk .desk-context.dc-tighter .dc-about-k svg { display: block; }

/* under 360 px: "Talking about:" is a speech mark (the words stay in the button's label), and
   the work pill is its bar and its count, at most 64 px */
@media (max-width: 359px) {
  #desk .dc-about-w { display: none; }
  #desk .dc-about-k svg { display: block; }
  #desk .desk-workpill.dc-work { flex: none; max-width: 64px; }
  #desk .dc-wface { padding: 0 10px; gap: 6px; }
  #desk .dc-ww { display: none; }
  #desk .dc-wn { display: inline; }
  #desk .dc-work.ready .dc-wn { display: none; }
  #desk .dc-work.ready .dc-ww { display: inline; }
  #desk .desk-workpill.dc-work.ready { max-width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  #desk .dc-wbar { animation: none; }
  .dc-worksheet .dc-nomeasure > i { animation: none; width: 100%; opacity: .35; }
}

/* the walk (WK): on a desk the thing's row is a grid with the studio's mark in a 30 px first
   column; "Talk about this" sits under the thing, in the content's column, never squeezed into
   the mark's and cut ("Talk about this" read 44 px wide at 1440) */
#desk #deskItems > li.desk-item > button.dc-talk { grid-column: -2 / -1; }
