.work-test-invite { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px 0 0; border-top: 1px dashed #a79879; }
.work-test-invite p { max-width: 470px; margin: 0; font-size: .85rem; line-height: 1.5; }
.work-test-invite button, .work-test-tabs button, .work-test-actions button, .work-test-delete button,
#task-workshop-open, #task-test-forget, #task-test-new-plan, #task-test-resume-draft-button, .work-test-history-open { min-height: 46px; padding: 11px 15px; border: 1px solid #244b40; border-radius: 2px; color: #244b40; background: #fffdf8; font: 750 .83rem / 1.4 var(--home-sans, sans-serif); cursor: pointer; }
.work-test-invite button { flex: 0 0 auto; background: #244b40; color: #fffdf8; }
.work-test-invite button:hover, .work-test-actions button:hover, #task-workshop-open:hover { color: #fffdf8; background: #244b40; }
#task-review { min-width: 0; }
#task-review :is(button, select, input, textarea):focus-visible, .work-test-invite button:focus-visible { outline: 3px solid #b34f30; outline-offset: 4px; }
#task-review :is(button, select):disabled { cursor: default; opacity: .55; }
#task-review :is(p, dd, h4, h5) { overflow-wrap: anywhere; }
.work-test-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 24px 0 20px; padding: 15px 0; border-block: 1px solid #bac5b8; }
.work-test-tabs button[aria-pressed="true"] { background: #244b40; color: #fffdf8; box-shadow: inset 0 -4px #cfe0a2; }
.work-test-tabs p { margin: 0 0 0 auto; color: #664f38; font: 750 .65rem / 1.5 var(--home-mono); letter-spacing: .04em; }
.work-test-kicker { margin: 0; color: #805037; font: 750 .64rem / 1.5 var(--home-mono); letter-spacing: .04em; }
.work-test-summary { position: relative; padding: 22px; border: 1px solid #987b60; border-left: 9px solid #244b40; background: #e8e2d4; box-shadow: 5px 5px 0 #d0c5b0; scroll-margin-top: 24px; }
.work-test-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.work-test-summary h4, .work-test-report h4, .work-test-draft-head h4 { margin: 7px 0 0; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; }
.work-test-page-count { flex-shrink: 0; padding: 6px 10px; border: 1px solid #7f705c; font: 750 .65rem var(--home-mono); transform: rotate(3deg); }
.work-test-source { font-size: .78rem; line-height: 1.5; color: #4c5948; }
.work-test-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 15px 0; }
.work-test-pages > :only-child { grid-column: 1 / -1; }
.work-test-page { position: relative; min-width: 0; padding: 19px 18px 16px 23px; border: 1px solid #baa68a; background: #fffdf5; box-shadow: 0 3px 0 #cfc4b1; }
.work-test-page::after { position: absolute; right: -1px; top: -1px; width: 20px; height: 20px; border-left: 1px solid #baa68a; border-bottom: 1px solid #baa68a; background: #e8e2d4; clip-path: polygon(100% 0, 100% 100%, 0 100%); content: ""; }
.work-test-page[data-observation="needs-change"] { border-top: 4px solid #aa5038; }
.work-test-page[data-observation="not-run"] { border-top: 4px solid #57775b; }
.work-test-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-right: 9px; margin: 8px 0 16px; }
.work-test-page-head h5 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.work-test-stamp { border: 1px solid #476b53; padding: 4px 6px; font: 750 .57rem / 1.35 var(--home-mono); color: #244b40; }
.work-test-facts { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.work-test-facts dt { align-self: start; color: #76634e; font: 750 .63rem / 1.55 var(--home-mono); }
.work-test-facts dd { min-width: 0; margin: 0; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
.work-test-guess { position: relative; margin: 18px 0 0; padding: 14px; border: 1px solid #bfa773; background: #f7ecc1; }
.work-test-guess::before { position: absolute; top: -5px; left: 18px; width: 33px; height: 9px; border: 1px solid #c6ba90; background: #e9dba6; content: ""; transform: rotate(-5deg); }
.work-test-after { margin: 10px 0 0; padding: 14px; border: 1px solid #aeb9a3; background: #eaf0e4; }
.work-test-page[data-observation="needs-change"] .work-test-after { border-color: #c19175; background: #fbe8dc; }
.work-test-page .work-test-answer { margin: 5px 0; font-size: 1rem; font-weight: 780; line-height: 1.4; }
.work-test-guess p, .work-test-after p { margin: 7px 0 0; font-size: .8rem; line-height: 1.5; white-space: pre-wrap; }
.work-test-after .work-test-empty { padding-top: 9px; border-top: 1px dashed #889477; color: #4a5b42; font-size: .74rem; }
.work-test-page .work-test-next { margin: 15px 0 0; font-size: .75rem; line-height: 1.55; }
.work-test-limit { margin: 13px 0 0; color: #635542; font-size: .76rem; line-height: 1.55; }
.work-test-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.work-test-actions button:first-child { color: #fffdf8; background: #244b40; }
.work-test-actions button:first-child:hover { background: #356551; }
.work-test-feedback { margin: 17px 0; font-size: .83rem; font-weight: 650; line-height: 1.55; color: #244b40; }
.work-test-feedback:empty { display: none; }
.work-test-history { margin: 20px 0; padding: 13px 17px; border: 1px solid #baa68a; background: #f4eee1; }
.work-test-history summary { min-height: 40px; padding: 8px 0; cursor: pointer; font-size: .83rem; font-weight: 750; }
.work-test-history details > p { color: #635542; font-size: .76rem; }
.work-test-history .work-test-page { margin: 12px 0; }
.work-test-report { margin: 20px 0; padding: 24px; border: 1px solid #a88768; border-left: 5px solid #aa5038; background: #fff7ed; scroll-margin-top: 24px; }
.work-test-report > p { font-size: .85rem; line-height: 1.5; }
.work-test-stop-editor { margin: 20px 0; padding: 23px; border: 1px dashed #9b664c; border-left: 5px solid #805037; background: #f6eddf; scroll-margin-top: 24px; }
.work-test-stop-editor h4 { margin: 8px 0; font-size: 1.4rem; line-height: 1.2; }
.work-test-stop-editor > p { font-size: .83rem; line-height: 1.55; }
.work-test-stop-editor label { display: block; margin-top: 17px; font-size: .88rem; font-weight: 720; line-height: 1.5; }
.work-test-stop-editor label span { color: #635542; font-size: .75rem; font-weight: 450; }
.work-test-stop-editor textarea { display: block; box-sizing: border-box; width: 100%; min-height: 78px; margin-top: 8px; padding: 11px 12px; border: 1px solid #839482; border-radius: 1px; background: #fffef9; color: #244b40; font: 400 1rem / 1.5 var(--home-sans, sans-serif); }
.work-test-ending { position: relative; margin: 22px 0; padding: 25px; border: 1px solid #987b60; border-left: 10px solid #805037; background: #e8e2d4; box-shadow: 4px 4px 0 #c5baa4, 7px 7px 0 #e8e2d4; scroll-margin-top: 24px; animation: notebook-close 230ms ease-out; }
.work-test-ending-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.work-test-ending h4 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; scroll-margin-top: 34px; }
#task-test-ending-title:focus { outline: 3px solid #805037; outline-offset: 5px; }
.work-test-closed-mark { flex-shrink: 0; margin-top: 8px; padding: 7px 9px; border: 2px solid #805037; color: #805037; font: 750 .65rem / 1.3 var(--home-mono); transform: rotate(-4deg); }
.work-test-ending .work-test-ending-reason { margin: 3px 0 10px; font-size: 1.12rem; line-height: 1.4; font-weight: 750; }
.work-test-ending-note, .work-test-history-ending p { white-space: pre-wrap; font-size: .85rem; line-height: 1.6; }
.work-test-ending-note { padding: 14px; border-left: 3px solid #805037; background: #fff7ed; }
.work-test-ending .work-test-page { margin-top: 17px; }
.work-test-ending .work-test-page-head { margin-bottom: 13px; }
.work-test-history-ending { margin: 0 0 17px; padding: 12px; border-left: 3px solid #805037; background: #f6eddf; }
.work-test-history-ending strong { font-size: .9rem; }
.work-test-history-ending p { margin: 7px 0 0; }
.work-test-next-page { margin-top: 21px; padding-top: 14px; border-top: 1px dashed #987b60; }
.work-test-next-page p { margin: 0 0 8px; font-size: .8rem; line-height: 1.5; }
#task-test-new-plan { padding-inline: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
#task-test-new-plan:hover { color: #805037; }
#task-test-resume-draft-button { margin-left: 7px; }
#task-review :is(select, textarea) { box-sizing: border-box; }
.work-test-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin: 21px 0; }
.work-test-report label, .work-test-controls label, .work-test-before label { display: block; min-width: 0; font-size: .88rem; font-weight: 720; line-height: 1.5; }
.work-test-report label span, .work-test-before label span { font-size: .75rem; font-weight: 450; color: #635542; }
.work-test-report textarea, .work-test-controls textarea, #task-review select, .work-test-before textarea { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 8px 0 0; padding: 11px 12px; border: 1px solid #839482; border-radius: 1px; background: #fffef9; color: #244b40; font: 400 1rem / 1.5 var(--home-sans, sans-serif); }
#task-review textarea { resize: vertical; }
#task-review .task-form :is(input, textarea), #task-review .task-email-field :is(input, textarea) { font-size: 1rem; }
#task-review select { padding-right: 25px; }
.work-test-controls > p { align-self: center; margin: 10px 0 0; }
.work-test-before { position: relative; margin: 25px 0 0; padding: 22px; border: 1px solid #bfa773; background: #f7ecc1; box-shadow: 3px 3px 0 #e2d6aa; }
.work-test-before label { margin-top: 14px; }
.work-test-draft-head { margin: 24px 0 0; }
.work-test-draft-head > p:last-child { color: #635542; font-size: .8rem; line-height: 1.5; }
.work-test-delete { margin: 18px 0; padding: 18px; border: 1px solid #aa5038; background: #fbe8dc; }
.work-test-delete p { margin: 0 0 14px; font-size: .85rem; line-height: 1.5; }
.work-test-delete button { margin: 0 7px 7px 0; }
#task-review .task-rule { animation: none; }
#task-return-summary .task-return-top strong { font-size: 1rem; transform: none; }
#task-test-return-entry button { min-height: 44px; }
.work-test-page:last-child { animation: notebook-unfold 200ms ease-out; transform-origin: top left; }
@keyframes notebook-unfold { from { transform: translateY(5px) rotate(.3deg); } to { transform: none; } }
@keyframes notebook-close { from { transform: translateY(4px); box-shadow: 0 0 0 #c5baa4; } to { transform: none; } }
@media (max-width: 760px) {
  .work-test-pages, .work-test-controls { grid-template-columns: minmax(0, 1fr); }
  .work-test-summary { padding: 17px 13px; border-left-width: 5px; box-shadow: 3px 3px 0 #d0c5b0; }
  .work-test-tabs p { flex-basis: 100%; margin: 4px 0 0; }
  .work-test-summary-head { align-items: start; }
  .work-test-page-count { padding: 5px; font-size: .6rem; }
  .work-test-page { padding: 16px 14px; }
  .work-test-report { padding: 18px 14px; }
  .work-test-stop-editor { padding: 18px 14px; }
  .work-test-ending { padding: 20px 13px; border-left-width: 5px; box-shadow: 3px 3px 0 #c5baa4; }
  .work-test-ending-head { display: block; }
  .work-test-closed-mark { display: inline-block; margin: 0 0 17px; }
  #task-test-resume-draft-button { display: block; margin: 8px 0 0; }
  .work-test-invite { flex-direction: column; align-items: stretch; }
  .work-test-invite button { width: 100%; }
  .work-test-before { padding: 18px 14px; }
  .work-test-actions { align-items: stretch; flex-direction: column; }
  .work-test-actions button { width: 100%; }
}
@media (max-width: 420px) {
  .work-test-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .work-test-facts dt:not(:first-child) { margin-top: 6px; }
  .work-test-summary-head { display: block; }
  .work-test-page-count { display: inline-block; margin: 12px 0 2px; }
}
@media (prefers-reduced-motion: reduce) { .work-test-page:last-child, .work-test-ending { animation: none; } }
