/* Working documents for discovery, interviews, validation, and scope. */
.fde-task {
  --fde-pad: clamp(16px, 2.1vw, 28px);
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fde-task .workshop-heading { align-items: center; gap: 12px; }
.fde-task .workshop-heading .source-link { flex: none; }
.fde-task > :is(.panel, .fde-alternatives) + :is(.panel, .fde-alternatives),
.fde-task > .fde-actions { margin-top: 12px; }
.fde-task > .workshop-stale { margin: 0 0 14px; }
.fde-task .panel { min-width: 0; }
.fde-task .fde-primary { border-top: 3px solid var(--green); }
.fde-paper-heading, .fde-section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px 24px;
}
.fde-paper-heading { padding: 18px var(--fde-pad) 0; }
.fde-paper-heading h2, .fde-section-title h2 {
  margin: 0; color: var(--green-dark); font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45; font-weight: 690; letter-spacing: -.035em;
}
.fde-paper-heading p, .fde-paper-heading small, .fde-document > summary span,
.fde-task .field small, .fde-task .fde-fold > p, .fde-scope-grid dt { color: var(--muted); font-size: 13px; line-height: 1.65; }
.fde-paper-heading p { margin: 4px 0 0; max-width: 68ch; }
.fde-paper-heading small { flex: none; }
.fde-paper-content { display: grid; gap: 14px; padding: 18px var(--fde-pad) 22px; }
.fde-paper-content h3 { margin: 0; color: var(--green-dark); font-size: 14px; }
.fde-paper-content > p, .fde-paper-content > div > p { margin: 0; font-size: 14px; line-height: 1.72; }
.fde-paper-content .field { gap: 6px; }
.fde-paper-content textarea.field-input { width: 100%; min-height: 0; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.fde-task details > summary { cursor: pointer; }
.fde-task summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 4px; }
.fde-task .fde-fold { min-width: 0; border-top: 1px solid var(--line); }
.fde-fold > summary, .fde-task .prep-interview-guide > summary {
  padding: 10px 0; color: var(--green-dark); font-size: 13px; line-height: 1.55; font-weight: 620;
}
.fde-fold > :not(summary) { margin: 2px 0 10px; }
.fde-document > summary {
  padding: 14px var(--fde-pad); color: var(--green-dark); font-weight: 640; line-height: 1.5; font-size: 14px;
}
.fde-document[open] > summary { border-bottom: 1px solid var(--line); }
.fde-document > summary span { margin-inline-start: 12px; font-weight: 400; }
.fde-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 17px; }
.fde-submit-row { padding: 0 var(--fde-pad) 22px; }
.fde-task .fde-actions :is(.button, .source-link), .fde-task .fde-paper-heading .source-link { min-height: 40px; }
.fde-task .source-link { font-size: 13px; }
.fde-task .prep-interview-guide { border: 0; padding: 0; background: transparent; }
.fde-task .guide-group h3 { border: 0; background: transparent; padding: 0; font-size: 13px; }
.fde-task .guide-group li { padding: 9px 0; }
.fde-task .fde-fold ul, .fde-paper-content > ul:not(.diagnostic-list) { margin-block: 0 8px; padding-inline-start: 20px; }
.fde-task .guide-group ul { padding: 0; }
.fde-task .fde-fold > .field + .field, .fde-task .fde-fold > .fde-evidence-entry + .fde-evidence-entry { margin-top: 14px; }
.fde-task .question { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 1px 0 14px; }
.fde-sample-replies { justify-self: start; }
.fde-more-questions .question + .question { margin-top: 10px; }
.fde-task .question label { font-size: 14px; }
.fde-task .question p { margin-left: 20px; }
.fde-task .question textarea { background: var(--surface); }
.fde-decision { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.fde-decision .field { width: min(100%, 260px); }
.fde-decision [data-verification-next] { display: flex; align-items: center; min-height: 38px; }
.fde-decision [data-verification-next]:empty { display: none; }
.fde-section-title { padding: 0 0 12px; }
.fde-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fde-path-grid > .panel + .panel { margin-top: 0; }
.fde-path { display: flex; flex-direction: column; }
.fde-path .fde-paper-content { flex: 1; grid-template-rows: auto 1fr auto; }
.fde-path .fde-paper-content > button { justify-self: start; }
.fde-path .fde-fold { align-self: start; }
.fde-task .fde-costs { padding: 0; list-style: none; }
.fde-costs li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fde-costs small { display: block; color: var(--muted); }
.fde-costs li > span { flex: none; max-width: 35%; }
.fde-document .fde-alternatives { padding: 15px var(--fde-pad); }
.fde-scope-grid { display: grid; grid-template-columns: .65fr 1.35fr 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fde-scope-grid dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.fde-scope-text { white-space: pre-line; }
@media (max-width: 700px) {
  .fde-path-grid, .fde-scope-grid { grid-template-columns: minmax(0, 1fr); }
  .fde-task .workshop-heading, .fde-paper-heading { flex-wrap: wrap; }
  .fde-paper-heading small { flex: auto; }
  .fde-task textarea.field-input, .fde-task .question textarea { font-size: 16px; }
  .fde-document > summary span { display: block; margin: 2px 0 0; }
}
