/* Doc lab: a form on the left, the specification it writes on the right. */
.dl { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 44px; align-items: center; }
.dl-form { padding: 18px 30px 20px 20px; display: grid; gap: 10px; }
.dl-field {
  appearance: none; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer;
  position: relative; display: grid; gap: 3px; border-radius: 5px;
}
.dl-label { font: 600 0.75rem/1.3 var(--sans); color: var(--soft); }
.dl-input { display: flex; align-items: center; min-height: 34px; padding: 0 12px; font-size: 0.875rem; transition: background-color 160ms ease; }
.dl-select::after { content: ""; margin: 0 6px 0 auto; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); }
.dl-send { margin-top: 6px; justify-self: start; }
.dl-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 4px; background: var(--ink); color: var(--sheet); font: 600 0.8125rem/1 var(--sans); transition: box-shadow 160ms ease; }
.dl-field:active .dl-input, .dl-field:active .dl-pill { transform: scale(0.985); }
.dl-field .mk { position: absolute; right: -11px; bottom: 6px; opacity: 0; transform: scale(0.6); transition: opacity 120ms linear, transform 200ms var(--ease); }
.dl-send .mk { right: -30px; }
.dl-field.on .mk { opacity: 1; transform: none; }
.dl-field.hl .dl-input { background: var(--tint); }
.dl-field.hl .dl-pill { box-shadow: 0 0 0 4px var(--tint); }
.dl-field.hl .mk, tr.hl .mk { transform: scale(1.18); }
@media (hover: hover) and (pointer: fine) {
  .dl-field:not(.on):hover .dl-input { background: var(--paper); }
  .dl-spec tr.on:hover td { background: var(--paper); }
  .dl-spec tr.on.hl:hover td { background: var(--tint); }
}

.dl-sheet { padding: 16px 18px 16px; }
.dl-spec { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.8125rem; line-height: 1.35; }
.dl-spec caption { text-align: left; padding-bottom: 10px; }
.dl-cap { font: 400 1.125rem/1.1 var(--serif); margin-right: 10px; }
.dl-spec th { text-align: left; font-weight: 600; font-size: 0.75rem; padding: 6px 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.dl-spec th:first-child, .dl-spec td:first-child { width: 44px; padding-left: 6px; }
.dl-spec th:nth-child(2) { width: 30%; }
.dl-spec td { height: 44px; padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; transition: background-color 160ms ease; }
.dl-spec td + td, .dl-spec th + th { border-left: 1px solid var(--rule); }
.dl-spec td:nth-child(2) { font-weight: 600; }
.dl-spec tr.on { cursor: pointer; }
.dl-spec .mk { cursor: pointer; opacity: 0; transform: scale(0.6); visibility: hidden; transition: opacity 120ms linear 180ms, transform 200ms var(--ease) 180ms, visibility 0s 180ms; }
.dl-spec .w { display: inline-block; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity 100ms linear, clip-path 160ms var(--ease); }
.dl-spec tr.on .mk { opacity: 1; transform: none; visibility: visible; }
.dl-spec tr.on .w { opacity: 1; clip-path: inset(0); transition: opacity 100ms linear 260ms, clip-path 460ms var(--ease) 260ms; }
.dl-spec tr.on td:nth-child(3) .w { transition-delay: 400ms; }
.dl-spec tr.hl td { background: var(--tint); }
.dl-clear { margin-top: 12px; min-height: 32px; }

@media (max-width: 640px) {
  .dl { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dl-form { padding: 14px 26px 16px 14px; gap: 8px; }
  .dl-sheet { padding: 12px 12px 12px; }
  .dl-spec { font-size: 0.75rem; }
  .dl-spec th:first-child, .dl-spec td:first-child { width: 36px; padding-left: 4px; }
  .dl-spec td { height: 46px; padding: 4px 6px; }
}
