.workspace {
  padding-block: 32px 72px;
  min-height: 70vh;
}
.desk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 25px;
}
.desk-head h1 {
  font:
    400 clamp(38px, 5.4vw, 68px) / 1.04 DT,
    Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 9px 0 0;
}
.desk-head label,
.desk-tools label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--dim);
}
.desk-head label {
  display: grid;
  gap: 3px;
}
.workspace select,
.question input,
.report-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffef9;
  color: var(--ink);
  padding: 8px 10px;
}
.skill-tabs {
  display: flex;
  gap: 3px;
  border-block: 1px solid var(--line);
  padding-block: 7px;
}
.skill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  border: 0;
  border-radius: 5px;
  padding: 9px 14px;
  font-weight: 640;
  background: transparent;
}
.skill-tab:hover {
  background: #ebeee4;
}
.skill-tab[aria-current="page"] {
  background: var(--green);
  color: white;
}
.skill-tab svg,
.pico {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.desk-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 19px 0;
}
.desk-tools select {
  max-width: 100%;
  font-size: 0.9rem;
  min-width: 16rem;
  max-width: min(100%, 33rem);
}
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.25fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.prompt-panel,
.work-panel,
.review-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.prompt-panel {
  background: #f1f2e8;
  border-top: 4px solid var(--green);
  padding: clamp(19px, 2.4vw, 32px);
}
.work-panel,
.review-panel {
  background: #fffefa;
  padding: clamp(19px, 2.4vw, 32px);
}
.prompt-head,
.work-top,
.review-top,
.row-actions,
.word-foot,
.report-head,
.qhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.prompt-head,
.work-top {
  margin-bottom: 14px;
}
.eyebrow {
  font-weight: 720;
  letter-spacing: 0.12em;
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--green);
}
.detail-tag,
.points-badge {
  padding: 3px 8px;
  background: #e0e9d9;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 650;
  color: #344e40;
}
.prompt-panel h2,
.work-panel h2,
.review-panel h2 {
  font:
    400 clamp(26px, 3.2vw, 43px) / 1.12 DT,
    Georgia,
    serif;
  letter-spacing: -0.037em;
  margin: 0 0 17px;
  overflow-wrap: anywhere;
}
.prompt-panel .prompt-body {
  font:
    400 clamp(19px, 1.8vw, 26px) / 1.43 DT,
    Georgia,
    serif;
  margin: 0 0 15px;
  letter-spacing: -0.013em;
}
.prompt-panel ul {
  padding-inline-start: 22px;
}
.prompt-panel li {
  margin-block: 5px;
}
.cue-steps {
  border-block: 1px solid var(--line);
  padding-block: 11px;
  margin-block: 18px;
}
.passage {
  font:
    16px/1.7 Georgia,
    serif;
  overflow-wrap: anywhere;
}
.passage p:first-letter {
  font-weight: 700;
}
.reading-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.reading-layout .prompt-panel {
  max-height: min(85vh, 860px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.desk-rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.workspace audio {
  width: 100%;
  display: block;
  margin: 10px 0 16px;
}
.writing-box {
  width: 100%;
  border: 1px solid #aebcae;
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  padding: 14px 15px;
  resize: vertical;
  min-height: 15rem;
  font-size: 16px;
  line-height: 1.62;
}
.writing-box.transcript {
  min-height: 9rem;
}
.word-foot {
  font-size: 0.79rem;
  color: var(--dim);
  margin: 4px 0 18px;
}
.row-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.workspace button:disabled {
  cursor: default;
  opacity: 0.6;
}
.workspace .quiet {
  background: transparent;
  border: 0;
  padding: 3px 0;
  color: var(--dim);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error-box {
  border-inline-start: 3px solid #b2553b;
  background: #faeee3;
  padding: 9px 12px;
  color: #723b2a;
}
.statusline {
  font-size: 0.87rem;
  color: var(--dim);
  margin: 9px 0 0;
}
.statusline:empty {
  display: none;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.compare-list li {
  border-block-start: 1px solid var(--line);
  padding: 14px 0;
}
.compare-list blockquote {
  font:
    400 20px/1.4 DT,
    Georgia,
    serif;
  margin: 5px 0;
  color: var(--ink);
}
.compare-list .better {
  border-inline-start: 3px solid #ba7856;
  padding-inline-start: 10px;
  color: var(--green);
}
.review-panel {
  margin-top: 20px;
}
.criterion {
  border-block-start: 1px solid var(--line);
  padding: 7px 0;
}
.criterion summary {
  font-weight: 650;
}
.criterion p {
  margin: 5px 0;
}
.focus-card,
.retest-bar,
.access {
  padding: 15px 17px;
  border: 1px solid #c7d5c0;
  border-radius: 7px;
  background: #edf3e6;
}
.focus-card p {
  margin: 4px 0;
}
.retest-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}
.retest-bar p {
  margin: 0;
  font-size: 0.9rem;
}
.qhead {
  justify-content: space-between;
  padding-bottom: 5px;
}
.qnum {
  font:
    700 10px DM,
    system-ui;
  color: var(--green);
  letter-spacing: 0.12em;
}
.question {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.question legend {
  font-size: 0.98rem;
  font-weight: 640;
  width: 100%;
  padding: 0 0 6px;
}
.question input[type="text"] {
  width: 100%;
  max-width: 25rem;
}
.answer-options {
  display: grid;
  gap: 4px;
}
.answer-options label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.91rem;
  background: #f5f6ee;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 6px 9px;
  cursor: pointer;
}
.answer-options label:has(input:checked) {
  border-color: #6b8975;
  background: #e7eddf;
}
.answer-options input {
  accent-color: var(--green);
}
.verdict {
  font-size: 0.9rem;
  border-inline-start: 3px solid #6d936f;
  background: #eff4e9;
  padding: 8px 10px;
  margin-top: 7px;
}
.verdict.miss {
  background: #faf0e2;
  border-color: #b96c49;
}
.verdict strong {
  display: block;
}
.report-form {
  display: grid;
  gap: 10px;
}
.report-form textarea {
  width: 100%;
}
.report-dlg {
  width: min(430px, calc(100% - 36px));
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 9px;
  padding: 21px;
}
.report-dlg::backdrop {
  background: #182e3170;
}
.report-dlg h2 {
  margin: 0;
  font-size: 24px;
}
.report-dlg button {
  justify-self: start;
}
.report-head button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  background: #edf0e8;
  color: var(--ink);
}
.table-frame {
  overflow-x: auto;
  margin-block: 15px;
}
.chart-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  background: var(--white);
}
.chart-table th,
.chart-table td {
  padding: 7px;
  border: 1px solid var(--line);
  text-align: start;
}
.chart-table th {
  background: #dfe9d8;
}
.diagram {
  display: grid;
  gap: 7px;
  padding-inline-start: 0 !important;
  list-style: none;
  counter-reset: step;
}
.diagram li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 9px;
}
.diagram li::before {
  content: counter(step);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--green);
}
.record-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.record-button:before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #df8e77;
}
.record-button.live:before {
  border-radius: 2px;
  background: #fff;
}
.recorder {
  padding: 17px;
  background: #edf1e5;
  border-radius: 7px;
  margin-bottom: 16px;
}
.rec-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
.access {
  max-width: 700px;
}
.access h2 {
  margin: 4px 0;
  font-size: 30px;
}
.access p {
  margin: 8px 0 17px;
}
.passage-summary {
  margin: 12px 0;
  border-block-start: 1px solid var(--line);
  padding-top: 10px;
}
.passage-summary summary {
  font-weight: 640;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.upload-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.upload-label input {
  max-width: 1px;
  opacity: 0;
  position: absolute;
}
.upload-label:focus-within {
  outline: 2px solid var(--green);
}
.review-panel h3 {
  margin: 20px 0 7px;
  font-size: 23px;
}
.answer-note {
  color: var(--dim);
  font-size: 0.84rem;
}
.timer-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.timer-value {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.work-panel .helper {
  font-size: 0.9rem;
  color: var(--dim);
}
.audio-card {
  padding: 13px;
  border-radius: 7px;
  background: #e2e9dc;
}
.check-info {
  padding-bottom: 9px;
}
.prompt-panel [lang="en"],
.question [lang="en"],
.compare-list [lang="en"] {
  unicode-bidi: isolate;
}
.unlock-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 820px) {
  .practice-grid,
  .reading-layout {
    grid-template-columns: 1fr;
  }
  .reading-layout .prompt-panel {
    max-height: none;
  }
  .workspace .desk-head {
    align-items: flex-start;
  }
  .workspace {
    padding-top: 24px;
  }
  .skill-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .skill-tab {
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 6px;
    font-size: 0.84rem;
  }
  .desk-tools {
    flex-wrap: wrap;
    gap: 5px;
  }
  .desk-tools select {
    min-width: 0;
  }
  .prompt-panel h2 {
    font-size: 31px;
  }
  .writing-box {
    min-height: 11rem;
  }
  .prompt-panel,
  .work-panel,
  .review-panel {
    padding: 17px;
  }
}
@media (max-width: 530px) {
  .workspace .desk-head {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }
  .desk-head label {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .desk-tools {
    display: grid;
  }
  .desk-tools select {
    width: 100%;
  }
  .desk-head .over {
    font-size: 10px;
  }
  .skill-tab {
    flex-direction: column;
    gap: 3px;
  }
  .skill-tab svg {
    width: 17px;
    height: 17px;
  }
  .row-actions .primary {
    width: 100%;
  }
  .prompt-panel .prompt-body {
    font-size: 20px;
  }
  .workspace .desk-head h1 {
    font-size: 40px;
  }
  .work-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .report-dlg {
    padding: 14px;
  }
  .workspace {
    padding-bottom: 36px;
  }
  .word-foot {
    font-size: 0.74rem;
  }
}

.workspace [hidden] {
  display: none !important;
}
.work-top h2 {
  margin: 0;
}
.mobile-steps {
  display: none;
}
@media (max-width: 820px) {
  .mobile-steps {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 12px;
    padding: 5px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .mobile-steps a {
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 650;
    padding: 4px 6px;
  }
  .workspace #prompt-panel,
  .workspace #work-panel,
  .workspace #answer-form {
    scroll-margin-top: 54px;
  }
}

.task-figure {
  margin: 12px 0 8px;
  background: #fdfcf5;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  overflow: hidden;
}
.task-figure canvas {
  display: block;
  max-width: 100%;
}

.desk-tools[hidden] { display: none; }

.listening-plan { margin: 16px 0; }
.listening-plan figcaption { margin-bottom: 8px; font-weight: 650; }
.listening-plan img { display: block; width: 100%; height: auto; max-width: 480px; }
.listening-plan details { margin-top: 8px; font-size: .88rem; }
.listening-plan summary { cursor: pointer; }
.listening-plan details li { margin-block: .3rem; }
