/* The chat's decision card (round 3, package C1: docs/CHAT_ROUND3_SPEC.md 5.3). The Simple
   layout's tokens only: no new colour and no new font. One main button in the app's primary
   colour, the others quiet, every button 44 px tall on one line. */

#deskItems > li.dc-li { list-style: none; }
#deskItems > li.dc-receipt { display: none; }

#deskItems .desk-card-d { box-sizing: border-box; width: 100%; max-width: 560px; min-width: 0;
  background: var(--panel-2, var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px;
  color: var(--ink); font-size: 16px; line-height: 1.45; }
#deskItems .desk-card-d > * { margin: 0; }
#deskItems .desk-card-d > * + * { margin-top: 10px; }

#deskItems .dc-verdict { font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
#deskItems .dc-media { max-width: 300px; }
#deskItems .dc-media button { display: block; position: relative; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; min-height: 44px; min-width: 44px; }
#deskItems .dc-media img { display: block; max-width: 300px; max-height: 300px; width: auto; height: auto; object-fit: contain; }
#deskItems .dc-media .dc-play { position: absolute; inset: 0; display: grid; place-items: center; }
#deskItems .dc-media .dc-play svg { width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
#deskItems .dc-media audio { width: 100%; max-width: 300px; }

/* up to three facts, label above value */
#deskItems .dc-facts { display: grid; grid-template-columns: 1fr; gap: 6px; }
#deskItems .dc-facts > div { min-width: 0; }
#deskItems .dc-facts dt { font-size: 13px; color: var(--muted); margin: 0; }
#deskItems .dc-facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#deskItems .dc-facts > div[hidden] { display: none; }
@media (min-width: 900px) { #deskItems .dc-facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
#deskItems .dc-moredet { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 14px; }

#deskItems .dc-warn { padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent); overflow-wrap: anywhere; }
#deskItems .dc-note { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* a typed word: the field above the buttons, 16 px, 44 px tall */
#deskItems .dc-word { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
#deskItems .dc-word input.desk-word { margin: 0; max-width: 260px; min-height: 44px; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }

/* one row of buttons: the main one first, at most two quiet ones beside it, the rest behind the dots */
/* the row clips what the dots have not taken yet; its 6 px of room on every side keeps the focus
   ring (2 px at a 3 px offset) and the flash whole instead of clipped at the row's edge */
#deskItems .desk-card-d .dc-acts { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; min-width: 0; overflow: hidden;
  padding: 6px; margin: 6px -6px -6px; }
#deskItems .desk-card-d .dc-acts button, #deskItems .desk-card-d .dc-menu button, #deskItems .desk-card-d .dc-doneacts button {
  min-height: 44px; height: 44px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2; border-radius: 12px; font-size: 15px; max-width: none; font-variant-numeric: tabular-nums; }
#deskItems .desk-card-d .dc-acts button.dc-main { flex: 0 0 auto; max-width: 100%; font-weight: 600; }
#deskItems .desk-card-d .dc-acts .dc-main.primary:not(.dc-danger) { background: var(--primary); color: var(--primary-ink, #fff); border: 1px solid transparent; }
#deskItems .desk-card-d .dc-acts .dc-other, #deskItems .desk-card-d .dc-acts .dc-choice, #deskItems .desk-card-d .dc-menu button,
#deskItems .desk-card-d .dc-doneacts button { flex: 0 0 auto; background: transparent; color: var(--ink); border: 1px solid var(--line-strong, var(--line)); box-shadow: none; }
#deskItems .desk-card-d .dc-acts .dc-more { flex: none; width: 44px; min-width: 44px; padding: 0; background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong, var(--line)); font-size: 18px; }
#deskItems .desk-card-d .dc-acts .dc-more[hidden] { display: none; }
#deskItems .desk-card-d button[disabled] { opacity: .5; cursor: not-allowed; }
#deskItems .desk-card-d .dc-main.dc-flash { box-shadow: 0 0 0 3px var(--primary-glow, rgba(47, 127, 245, .3)); }

/* danger: red text with a red edge, never a filled red button */
#deskItems .desk-card-d .dc-acts button.dc-danger, #deskItems .desk-card-d .dc-menu button.dc-danger, #deskItems .desk-card-d .dc-doneacts button.dc-danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }

#deskItems .desk-card-d .dc-menu { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#deskItems .desk-card-d .dc-menu[hidden] { display: none; }
#deskItems .desk-card-d .dc-menu button { width: 100%; text-align: left; justify-content: flex-start; }

#deskItems .dc-after { font-size: 13px; color: var(--muted); }
#deskItems .dc-after.dc-bad, #deskItems .dc-done.dc-bad { color: var(--bad); }

/* decided: the card shrinks to one line, with Undo while it lives */
#deskItems .desk-card-d.dc-shrunk { padding: 8px 12px; border-style: dashed; }
#deskItems .desk-card-d.dc-shrunk .dc-done { font-size: 14px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
#deskItems .desk-card-d .dc-doneacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@keyframes dc-shrink { from { opacity: .4; transform: scaleY(.92); } to { opacity: 1; transform: none; } }
#deskItems .desk-card-d.dc-justshrunk { animation: dc-shrink 200ms ease-out; transform-origin: top; }
/* a narrow phone: the main button and two quiet ones still stand in one row at 320 */
@media (max-width: 399px) {
  #deskItems .desk-card-d { padding: 12px 10px 10px; }
  #deskItems .desk-card-d .dc-acts button, #deskItems .desk-card-d .dc-menu button, #deskItems .desk-card-d .dc-doneacts button { padding: 0 9px; font-size: 14px; }
  #deskItems .desk-card-d .dc-acts .dc-more { padding: 0; }
}
@media (min-width: 900px) { #deskItems .desk-card-d { padding: 14px 14px 12px; } #deskItems .desk-card-d .dc-acts { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { #deskItems .desk-card-d.dc-justshrunk { animation: none; } }
/* W3: a "which one?" option with its candidate's picture, 32 px left of its words */
.dc-choice.dc-haspic { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.dc-choice .dc-optpic { width: 32px; height: 32px; flex: none; object-fit: cover; border-radius: 6px; }
.dc-choice.dc-haspic span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the walk (WK): white words on the primary need 4.5:1 at 14 px; the Simple layout's primary
   (#2f7ff5) gives 3.8:1, so the card's main button takes the primary darkened, the same hue */
#deskItems .desk-card-d .dc-acts .dc-main.primary:not(.dc-danger) { background: color-mix(in srgb, var(--primary) 85%, #000); }

/* N0d: a chip whose arg is quiet (the folded "Look at it") is a secondary, quieter button */
#deskItems .dc-acts .dc-chip.dc-quiet, #deskItems .desk-acts button.desk-quiet { background: transparent; color: var(--muted, #a9a39a);
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-weight: 500; }
