@import url("../../listening/styles/listening-mock.css");

.main {
  margin-bottom: 86px;
}

.main.split-layout {
  display: flex;
  flex-direction: row;
}

.pane.left-pane {
  flex: 0 0 var(--left-pane-width, 46%);
  min-width: 320px;
}

.pane.right-pane {
  flex: 1 1 auto;
  min-width: 340px;
  background: #fbfbff;
}

.splitter {
  flex: 0 0 10px;
  position: relative;
  cursor: col-resize;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.15));
}

.splitter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
}

.pane-header-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

#promptPane {
  background: #ffffff;
}

#promptPane .questions-section {
  max-width: 880px;
  margin: 0 auto;
}

.writing-prompt-section {
  display: grid;
  gap: 14px;
}

.prompt-kicker {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d4ed8;
  font-weight: 900;
}

.prompt-lead {
  font-weight: 800;
}

.prompt-footnote {
  font-weight: 800;
  color: #0f172a;
}

.prompt-figure,
.writing-prompt-section img,
.writing-prompt-section svg {
  width: 100%;
  max-width: 100%;
}

.prompt-figure {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
}

.prompt-media-fallback {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.answer-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 14px;
}

.task-guidance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
}

.task-guidance strong {
  font-size: 15px;
}

.task-guidance span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.answer-editor-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-editor {
  flex: 1 1 auto;
  min-height: 360px;
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.answer-editor:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.answer-editor[readonly] {
  background: #f8fafc;
  color: #475569;
  cursor: not-allowed;
}

.answer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.word-count {
  font-weight: 900;
  color: var(--text);
}

.word-count.is-warning {
  color: #c2410c;
}

.submitted-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  background: var(--green-bg);
  color: #065f46;
  border: 1px solid var(--green);
}

.bottom-part-nav {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bottom-task-btn {
  min-width: 146px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.bottom-task-btn.is-active {
  border-color: #93c5fd;
  background: #e0e7ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.bottom-task-btn.is-done {
  border-color: var(--green);
  background: var(--green-bg);
  color: #065f46;
}

.bottom-task-label {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.bottom-task-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.session-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.results-answer-preview {
  white-space: pre-wrap;
  word-break: break-word;
}

.results-review-item {
  cursor: default;
}

.results-review-item:hover {
  background: #fff;
}

@media (max-width: 1080px) {
  .main.split-layout {
    flex-direction: column;
  }

  .pane.left-pane,
  .pane.right-pane {
    flex: 1 1 auto;
    min-width: 0;
  }

  .splitter {
    display: none;
  }

  .answer-editor {
    min-height: 260px;
  }

  .bottombar {
    flex-direction: column;
    align-items: stretch;
  }

  .session-meta {
    margin-left: 0;
  }
}
