.task-practice {
  --ink: #182f26;
  --muted: #46584e;
  --line: #bbc9b9;
  --accent: #285640;
  --dark-accent: #163b2c;
  --paper: #f8f7ed;
  background: var(--paper);
}

.task-cover {
  --splash-glow: #3f614c;
  overflow: hidden;
}

.workshop-label {
  margin-bottom: .45rem;
  color: #d9e8d8;
  font-size: .89rem;
  font-weight: 700;
}

.task-cover h1 {
  font-family: var(--serif);
  font-weight: 400;
}

.task-cover .landing-splash__photo { object-position: 66% 55%; }

.practice-section { margin-block: clamp(1.25rem, 4vw, 3rem); }
.task-practice h2 {
  color: var(--ink);
  font: 400 clamp(1.66rem, 1.25rem + 1.7vw, 2.9rem)/1.12 var(--serif);
  letter-spacing: -.028em;
}

.task-practice h3 {
  font: 400 clamp(1.18rem, 1.06rem + .55vw, 1.54rem)/1.2 var(--serif);
}

.task-practice .intro { max-width: 63ch; margin-top: .5rem; color: var(--muted); }
.task-practice :is(a, button, input, select, summary, textarea):focus-visible { outline-offset: 3px; }
.task-practice button:disabled { cursor: default; }
.task-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  min-inline-size: 0;
  padding: 0;
  margin: .8rem 0 0;
  border: 0;
}

.task-choice {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 64px;
  padding: .62rem .72rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fffefa;
  cursor: pointer;
}

.task-choice:has(:checked) { border-color: var(--accent); background: #e4efe1; }
.task-choice:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.task-choice input { flex: none; inline-size: 1.1rem; block-size: 1.1rem; accent-color: var(--accent); }
.task-choice span { min-width: 0; overflow-wrap: anywhere; }
.task-choice strong, .task-choice small { display: block; line-height: 1.35; }
.task-choice small { margin-top: .2rem; color: var(--muted); }

@media (min-width: 48rem) {
  .task-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 26rem) {
  .task-choice { align-items: flex-start; gap: .4rem; padding-inline: .5rem; }
  .task-choice input { margin-top: .13rem; }
  .task-choice strong { font-size: .92rem; }
}

.practice-bench {
  display: grid;
  align-items: start;
  gap: clamp(1rem, 3.6vw, 2.3rem);
}

.practice-bench > * { min-width: 0; }
.rubric, .comparison, .next-trial {
  padding: clamp(.75rem, 2.6vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
}

.rubric {
  margin-block: 1rem .7rem;
  background: #edf1e3;
}

.rubric p, .rubric li { color: var(--muted); }
.rubric p { margin-top: .35rem; }
.rubric ul, .pair-differences { margin-top: .45rem; padding-inline-start: 1.2rem; }
.rubric li + li, .pair-differences li + li { margin-top: .3rem; }

.run-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.task-run { border: 1px solid var(--line); border-radius: .52rem; background: #fffefa; }
.task-run[open] { border-color: #839e89; }
.task-run > summary {
  min-height: 48px;
  padding: .63rem .7rem;
  font-weight: 700;
  cursor: pointer;
}

.task-run > summary::marker { color: var(--accent); }
.run-state { margin-left: .45rem; color: var(--muted); font-size: .84rem; font-weight: 500; }
.run-body { min-width: 0; padding: .08rem .72rem .75rem; }
.customer-request {
  margin: .4rem 0 .7rem;
  padding: .45rem .75rem;
  border-inline-start: 3px solid #719581;
  color: #274638;
  background: #f0f4eb;
  font: 400 1.08rem/1.5 var(--serif);
}

.prompt-options { margin-bottom: .6rem; }
.prompt-options > summary, .practice-transfer > summary {
  min-height: 44px;
  padding-block: .61rem;
  color: var(--dark-accent);
  font-weight: 670;
  cursor: pointer;
}

.prompt-options textarea, .run-fields :is(input, select), .resume-file input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: .24rem;
  padding: .45rem;
  border: 1px solid #a2b09f;
  border-radius: .3rem;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

.prompt-options textarea { margin-bottom: .45rem; resize: vertical; }
.timing-controls, .result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
}

.clock-face { font-variant-numeric: tabular-nums; font-weight: 700; }
.run-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}

.run-fields label, .resume-file { min-width: 0; font-weight: 640; }
.run-fields input, .run-fields select { min-height: 44px; font-weight: 500; }
.run-fields .outcome-field { grid-column: 1 / -1; overflow-x: clip; overflow-clip-margin: 6px; }
.resume-file { flex: 1 1 100%; }
.resume-file input { min-height: 44px; font-weight: 500; }
.resume-file input::file-selector-button { min-height: 36px; margin-inline-end: .55rem; font: inherit; }

.comparison { background: #eef2e6; }
.result-header .state { margin-block: .32rem .62rem; }
.method-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.method-summary {
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fffefa;
}
.method-summary.assisted { background: #e1ecdf; }
.method-summary h3 { overflow-wrap: anywhere; }
.method-summary dl { margin-block: .5rem 0; }
.method-summary dl > div + div { margin-top: .44rem; }
.method-summary dt { color: var(--muted); font-size: .8rem; line-height: 1.32; }
.method-summary dd { margin: .13rem 0 0; font-weight: 720; font-variant-numeric: tabular-nums; }
.pair-differences { color: var(--muted); font-size: .91rem; }
.decision { margin-block: .74rem; padding-inline-start: .64rem; border-inline-start: 3px solid #719581; }
.decision[data-verdict="quality"] { border-inline-start-color: #a66a29; }
.practice-transfer { margin-top: .7rem; padding-top: .22rem; border-top: 1px solid var(--line); }
.practice-transfer p:not(:empty) { margin-bottom: .54rem; color: var(--muted); }
.next-trial { background: #fffefa; }
.next-trial ol { padding-inline-start: 1.25rem; }
.next-trial li + li { margin-top: .33rem; }
.method-note { color: var(--muted); }
.next-actions { margin-top: .7rem; }
.print-plan, .print-workflow, .practice-handout { display: none; }
.handout-actions { margin-top: .65rem; }
.handout-actions:has([hidden]) { display: none; }

@media (min-width: 54rem) {
  .practice-bench { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

@media (min-width: 34rem) {
  .run-fields { grid-template-columns: minmax(4rem, .43fr) minmax(4rem, .43fr) minmax(0, 1.14fr); }
  .run-fields .outcome-field { grid-column: auto; }
}

@media (max-height: 430px) and (orientation: landscape) {
  .task-cover { padding-block: .85rem; }
  .task-cover h1 { font-size: clamp(2rem, 5.6vw, 3.15rem); }
  .task-cover .landing-splash__photo { max-height: 14rem; }
}

@media print {
  @page { margin: .55in; }
  :root, .task-practice { background: white; color: #14251c; font-size: 10.5pt; }
  .task-practice .wrap { width: 100%; }
  .task-practice :is(.top, .skip, .task-cover img, #practice, .run-panel, .result-actions, .practice-transfer, .foot) { display: none; }
  .task-cover, .comparison, .next-trial, .method-summary { background: white; color: #14251c; box-shadow: none; }
  .task-cover { display: block; margin-top: 0; padding: 0 0 .45rem; border: 0; }
  .task-cover h1 { font-size: 27pt; }
  .task-cover :is(.workshop-label, .landing-splash__lede) { color: #2b4838; }
  .task-cover :is(.landing-splash__actions, .workshop-label) { display: none; }
  .practice-bench { display: block; }
  .comparison, .next-trial { break-inside: avoid; }
  .comparison { margin-block: .5rem; }
  .method-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
  .method-summary dl > div + div { margin-top: .2rem; }
  .method-summary dd { margin: 0; }
  .next-trial ol { margin-block: .45rem; }
  .next-trial { margin-block: .6rem; }
  .task-practice h2 { font-size: 19pt; }
  .print-plan, .print-workflow { display: block; }
  .print-plan p { padding-bottom: 13pt; margin-top: .55rem; border-bottom: 1px solid #aab8ab; }

  .task-practice[data-print-view="handout"] main > :not(.practice-handout) { display: none; }
  .task-practice[data-print-view="handout"] .practice-handout { display: block; }
  .practice-handout { color: #14251c; font: 10.5pt/1.4 system-ui, sans-serif; }
  .practice-handout :is(h3, p, ul, ol) { margin: 0; }
  .handout-header { border-top: 3pt solid #285640; padding-top: 9pt; }
  .handout-header h2 { margin-block: 3pt 6pt; font-size: 25pt; }
  .handout-header > p:first-child { font-size: 9pt; color: #285640; font-weight: 750; }
  .handout-guide, .handout-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11pt; }
  .handout-guide { margin-block: 11pt; }
  .handout-guide section { padding-top: 7pt; border-top: 1px solid #8ca397; }
  .handout-guide h3 { margin-bottom: 4pt; font-size: 13.5pt; }
  .handout-guide ul { padding-left: 12pt; }
  .handout-guide p + p, .handout-guide ul + p { margin-top: 4pt; }
  .handout-cases { list-style: none; padding: 0; }
  .handout-cases li {
    display: flex;
    flex-direction: column;
    min-block-size: 96pt;
    padding: 7pt 8pt;
    border: 1px solid #aab8ab;
    break-inside: avoid;
  }
  .handout-cases h3 { margin-bottom: 4pt; color: #285640; font: 750 9.7pt/1.25 system-ui, sans-serif; }
  .handout-cases .handout-record { margin-top: auto; padding-top: 5pt; color: #335241; font-size: 9pt; }
  .practice-handout .handout-note { margin-top: 11pt; padding-bottom: 20pt; border-bottom: 1px solid #aab8ab; }
  .handout-access { display: flex; gap: 8pt; align-items: center; margin-top: 7pt; break-inside: avoid; font-size: 9pt; }
  .handout-access img { width: 1.06in; height: 1.06in; flex: none; image-rendering: pixelated; }
  .handout-access a { color: #1f593f; overflow-wrap: anywhere; }
}
