/* Deskhand playground. Uses the kit colour tokens (the site brand). */
.dh-play { margin-block: 24px 8px; }
.dh-play h2 { font: 700 1.5rem/1.15 var(--font-head); letter-spacing: -.01em; margin: 0 0 6px; }
.dh-play .dh-sub { color: var(--ink2); max-width: 68ch; margin: 0 0 14px; }
.dh-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-row input { flex: 1 1 280px; min-width: 0; font: 16px var(--font-mono); padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); color: var(--ink); }
.dh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.dh-chip { appearance: none; font: 13px var(--font-mono); padding: 5px 9px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); border-radius: 999px; cursor: pointer; min-height: 32px; }
.dh-chip:hover { border-color: var(--grease); color: var(--grease); }
.dh-out { min-height: 120px; }
.dh-empty { color: var(--ink2); border: 2px dashed var(--rule); border-radius: 14px; padding: 22px; margin: 0; }
/* the receipt */
.dh-receipt { background: var(--sheet); border: 1px solid var(--rule); border-top: 6px solid var(--amber); border-radius: 6px 6px 18px 18px; padding: 14px 16px 6px; box-shadow: 0 1px 0 var(--rule); }
.dh-receipt p { margin: 0 0 8px; max-width: 80ch; }
.dh-lbl { font: 600 12px var(--font-mono); color: var(--ink2); }
.dh-you { font: 15px var(--font-mono); padding-bottom: 8px; border-bottom: 1px dashed var(--ink2); margin-bottom: 10px !important; }
.dh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dh-step { padding: 10px 0 12px; border-bottom: 1px dashed var(--rule); }
.dh-step:last-child { border-bottom: 0; }
.dh-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dh-head b { font: 700 1.05rem var(--font-head); }
.dh-grp { font: 12px var(--font-mono); color: var(--ink2); }
.tag { font: 600 11px var(--font-mono); padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; }
.tag.ok { color: var(--good); } .tag.ask { color: var(--mid); } .tag.no { color: var(--grease); }
.dh-ask { border-left: 3px solid var(--mid); padding-left: 10px; }
.dh-chain { font: 13px var(--font-mono); color: var(--ink2); }
.dh-inside { color: var(--ink2); font-size: 14px; }
.dh-os { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dh-box { min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 10px; }
.dh-box h4 { margin: 0 0 4px; font: 600 12px var(--font-mono); color: var(--ink2); }
.dh-box pre { margin: 0; font: 12px/1.45 var(--font-mono); white-space: pre-wrap; word-break: break-word; max-height: 190px; overflow: auto; }
.dh-none { margin: 0; color: var(--ink2); font-size: 13px; }
.dh-runs { margin: 6px 0 4px !important; }
@media (max-width: 760px) { .dh-os { grid-template-columns: minmax(0, 1fr); } }
.dh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.dh-facts div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.dh-facts b { display: block; font: 700 1.02rem var(--font-head); margin-bottom: 2px; }
.dh-facts span { color: var(--ink2); font-size: 14px; }
.dh-code { background: var(--film); border: 1px solid var(--line); color: #e8ebf1; border-radius: 14px; padding: 12px 14px; font: 13.5px/1.55 var(--font-mono); overflow-x: auto; margin: 10px 0; max-width: 72ch; }
.dh-table { overflow-x: auto; margin: 12px 0; }
.dh-table table { min-width: 560px; }
@media (prefers-reduced-motion: no-preference) { .dh-receipt { animation: dhprint .28s ease-out; } }
@keyframes dhprint { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* this page puts the playground first, so the intro is tighter than on the other tool pages */
.dh-page .intro { padding-block: 26px 6px; }
.dh-page .intro h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 26ch; }
.dh-page .intro p { max-width: 70ch; }
.dh-page .dh-play { margin-block: 14px 4px; }
@media (max-width: 640px) {
  .dh-table { overflow: visible; }
  .dh-table table { min-width: 0; }
  .dh-table thead { display: none; }
  .dh-table tr { display: block; padding: 8px 12px; border-bottom: 1px solid var(--rule); }
  .dh-table td, .dh-table th[colspan] { display: block; border: 0; padding: 0; }
  .dh-table th[colspan] { padding: 4px 0; color: var(--ink); }
  .dh-table tr:has(th[colspan]) { background: var(--paper); }
  .dh-table td:first-child { font-weight: 600; }
  .dh-table td:nth-child(2) { color: var(--ink2); font-size: 14px; }
  .dh-table td:last-child:empty { display: none; }
  .dh-table td:last-child { font: 600 12px var(--font-mono); color: var(--mid); margin-top: 2px; }
}
