.task-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 148px clamp(18px, 4vw, 32px) 76px;
}

.task-hero {
  max-width: 760px;
  padding-bottom: 54px;
}

.task-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.task-hero p:last-child {
  max-width: 65ch;
  margin-top: 22px;
  font-size: 1.14rem;
}

.task-workbench {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid #000;
  background: #fff;
}

.task-form,
.task-output {
  padding: clamp(22px, 4vw, 38px);
}

.task-form {
  border-right: 1px solid #000;
  background: #f7f7f7;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

legend,
.output-label {
  margin-bottom: 9px;
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

label { font-weight: 600; }

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
}

input:not([type="checkbox"]),
select { min-height: 44px; padding: 0 11px; }

.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.field-row > div { display: grid; gap: 10px; }

.checkline { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; font-weight: 500; }
.checkline input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #000; }

.task-output { display: flex; flex-direction: column; }
.task-output textarea { min-height: 360px; flex: 1; resize: vertical; padding: 16px; line-height: 1.6; }
.task-output .button { align-self: flex-start; margin-top: 16px; }
.copy-status { min-height: 1.65em; margin: 12px 0 0; font-size: .92rem; }

.task-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; border: 1px solid #000; background: #000; }
.task-notes p { min-height: 136px; margin: 0; padding: 22px; background: #fff; }
.task-notes b { display: block; margin-bottom: 14px; font-family: "Courier New", monospace; font-size: 1.15rem; }
.task-disclosure { max-width: 67ch; margin: 24px 0 0; color: #626262; font-size: .92rem; }

input:focus-visible, select:focus-visible, textarea:focus-visible, .checkline:has(input:focus-visible) { outline: 2px solid #000; outline-offset: 3px; }

@media (max-width: 760px) {
  .task-shell { padding-top: 112px; }
  .task-workbench, .task-notes { grid-template-columns: 1fr; }
  .task-form { border-right: 0; border-bottom: 1px solid #000; }
  .task-notes p { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
