/* node_modules/@fontsource/ibm-plex-sans/latin-400.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./ibm-plex-sans-latin-400-normal-COQVXTP6.woff2") format("woff2"), url("./ibm-plex-sans-latin-400-normal-JC3YNCCZ.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-500.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./ibm-plex-sans-latin-500-normal-JTONHBWS.woff2") format("woff2"), url("./ibm-plex-sans-latin-500-normal-7DOULDHV.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-sans/latin-600.css */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./ibm-plex-sans-latin-600-normal-DTNZULF4.woff2") format("woff2"), url("./ibm-plex-sans-latin-600-normal-B3O423MA.woff") format("woff");
}

/* node_modules/@fontsource/ibm-plex-mono/latin-400.css */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./ibm-plex-mono-latin-400-normal-A2WATXFY.woff2") format("woff2"), url("./ibm-plex-mono-latin-400-normal-4MWPPJAM.woff") format("woff");
}

/* src/style.css */
:root {
  font-family: "IBM Plex Sans", sans-serif;
  color: #131416;
  background: #edf3f3;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  color: #5d5f60;
}
header .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1b6c80;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
header #save-state {
  margin-left: auto;
  font-size: 12px;
}
.layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 64px);
  gap: 8px;
  margin: 0 8px 8px;
}
.navigation {
  flex: 0 0 212px;
  padding: 20px 12px;
}
.nav-label {
  font-weight: 600;
  margin-bottom: 20px;
}
.navigation p {
  font-size: 12px;
  margin-top: 32px;
}
.stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stage-list li {
  padding: 10px 12px;
  margin-bottom: 3px;
  display: flex;
  flex-direction: column;
  color: #5d5f60;
  border-radius: 6px;
}
.stage-list small {
  font-size: 11px;
}
.active {
  background: #e0e8e8 !important;
  color: #131416 !important;
  font-weight: 500;
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.session-list button {
  text-align: left;
  background: transparent;
  border: 0;
}
.session-list small {
  display: block;
  font-weight: 400;
  color: #5d5f60;
}
main {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid #dfe7e7;
  border-radius: 16px;
  padding: 24px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .09em;
  color: #5d5f60;
  margin: 0 0 6px;
}
h1 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 500;
}
h3 {
  font-size: 14px;
}
p {
  margin: 8px 0 16px;
}
.status {
  font-size: 12px;
  border: 1px solid #e1e6e6;
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.35fr);
  gap: 24px;
}
.workspace.reading {
  grid-template-columns: minmax(280px, 1fr) minmax(240px, .8fr);
}
.task {
  min-width: 0;
}
.task article {
  max-height: 70vh;
  overflow: auto;
  padding-right: 12px;
}
.panel-heading {
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8eaec;
  padding: 0 0 12px;
  margin-bottom: 12px;
}
.panel-heading span + span {
  font-size: 12px;
  color: #5d5f60;
  font-weight: 400;
}
article h1 {
  font-size: 18px;
  margin: 16px 0;
}
article h2 {
  font-size: 15px;
  margin: 22px 0 10px;
}
article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
article th,
article td {
  text-align: left;
  border-bottom: 1px solid #e8eaec;
  padding: 8px 6px;
  vertical-align: top;
}
article ul {
  padding-left: 20px;
}
article pre,
pre {
  font: 12px/1.6 "IBM Plex Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f6f8;
  border-radius: 6px;
  padding: 12px;
}
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: .9em;
}
button,
.button {
  font: 500 13px "IBM Plex Sans", sans-serif;
  border: 1px solid #cdced1;
  border-radius: 6px;
  background: #fff;
  color: #252b2e;
  min-height: 34px;
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f0f4f4;
}
button.primary {
  background: #1d343a;
  color: white;
  border-color: #1d343a;
}
button:disabled {
  opacity: .5;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #1b6c80;
  outline-offset: 2px;
}
input,
textarea,
select {
  font: 14px "IBM Plex Sans", sans-serif;
  color: #131416;
  background: #fff;
  border: 1px solid #cdced1;
  border-radius: 6px;
  padding: 9px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0;
}
label input,
label select {
  margin-top: 6px;
}
.muted {
  color: #5d5f60;
  font-size: 12px;
}
.work {
  min-width: 0;
}
#editor {
  border: 1px solid #e8eaec;
  border-radius: 6px;
  overflow: hidden;
}
.cm-editor {
  height: 310px;
  font-size: 12px;
}
.cm-scroller {
  font-family: "IBM Plex Mono", monospace !important;
}
.cm-gutters {
  background: #f4f6f8 !important;
  border-right: 1px solid #e8eaec !important;
}
.checks {
  margin-top: 20px;
}
.check {
  border-bottom: 1px solid #f0f1f2;
  padding: 7px 0;
}
.check summary {
  font-size: 12px;
  cursor: pointer;
}
.check.pass summary span {
  color: #1e7b4f;
}
.check.fail summary span {
  color: #c4242a;
}
.check pre {
  margin: 8px 0;
}
.ai {
  border-top: 1px solid #e8eaec;
  padding-top: 20px;
  margin-top: 24px;
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}
#chat {
  max-height: 320px;
  overflow: auto;
}
.exchange {
  border-top: 1px solid #e8eaec;
  padding: 12px 0;
}
.exchange pre {
  margin: 4px 0 12px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
}
.speaker {
  font-size: 11px;
  color: #5d5f60;
  font-weight: 600;
}
.error {
  color: #b5252d;
}
.notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(650px, 90vw);
  background: white;
  border: 1px solid #cdced1;
  border-radius: 6px;
  padding: 10px 16px;
  z-index: 10;
}
.notice:empty {
  display: none;
}
.pause {
  padding: 12px;
  background: #fffbeb;
  color: #92400e;
}
.controls,
.create-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.controls label {
  min-width: 250px;
}
.create-row label {
  width: 250px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin: 28px 0;
}
.scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 500;
}
details article {
  padding-top: 16px;
}
.audit-chat {
  max-height: 600px;
  overflow: auto;
}
.audit-chat summary {
  font-size: 12px;
}
.audit-chat small {
  overflow-wrap: anywhere;
}
.login {
  max-width: 520px;
  margin: 60px auto;
}
.login input {
  margin-bottom: 16px;
}
.notes {
  margin-top: 24px;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: minmax(320px, .9fr) minmax(400px, 1.4fr);
  }
  .cm-editor {
    height: 380px;
  }
}
@media (max-width: 1050px) {
  .navigation {
    flex-basis: 170px;
  }
  .workspace,
  .workspace.reading {
    grid-template-columns: 1fr;
  }
  .task article {
    max-height: 350px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .cm-editor {
    height: 350px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 0 16px;
    gap: 12px;
  }
  header > span:not(#save-state) {
    display: none;
  }
  .layout {
    display: block;
    margin: 0;
  }
  .navigation {
    padding: 10px 16px;
  }
  .navigation .nav-label {
    margin: 0 0 6px;
  }
  .stage-list {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .stage-list li {
    min-width: 130px;
    font-size: 12px;
  }
  .navigation p {
    display: none;
  }
  main {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 20px 16px;
  }
  .title-row {
    align-items: flex-start;
  }
  h1 {
    font-size: 20px;
  }
  .status {
    white-space: normal;
    max-width: 100px;
  }
  .workspace,
  .workspace.reading {
    display: block;
  }
  .work {
    margin-top: 24px;
  }
  .task article {
    max-height: 320px;
  }
  .controls {
    align-items: stretch;
  }
  .controls label {
    width: 100%;
    min-width: 0;
  }
  .review-grid {
    display: block;
  }
  .session-list {
    flex-direction: row;
    overflow: auto;
  }
  .session-list button {
    min-width: 120px;
  }
  .scores {
    grid-template-columns: 1fr 1fr;
  }
  .create-row label {
    width: 100%;
  }
  .login {
    margin: 30px auto;
  }
}
#results {
  max-height: 190px;
  overflow: auto;
}
.checks .panel-heading {
  margin-bottom: 4px;
}
.check {
  margin: 0;
}
.cm-editor {
  height: 260px;
}
:root {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 650px) {
  .stage-list li:not(.active) {
    display: none;
  }
  .stage-list .active {
    width: 100%;
  }
  .navigation {
    padding-bottom: 8px;
  }
}
pre.code-block {
  font: 13px/1.7 "IBM Plex Mono", monospace;
  white-space: pre;
  overflow: auto;
  tab-size: 2;
  padding: 16px;
  background: #f5f7f9;
  border: 1px solid #e8eaec;
}
pre.code-block code {
  font: inherit;
}
.tok-keyword {
  color: #7846a2;
}
.tok-string {
  color: #12643c;
}
.tok-number,
.tok-bool,
.tok-null {
  color: #995000;
}
.tok-propertyName {
  color: #155f85;
}
.tok-variableName {
  color: #25354a;
}
.tok-comment {
  color: #586872;
  font-style: italic;
}
.tok-operator,
.tok-punctuation {
  color: #4b5563;
}
.assistant-response {
  font-size: 13px;
  line-height: 1.6;
}
.assistant-response pre {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}
.assistant-response p {
  margin: 8px 0;
}
.assistant-response h2,
.assistant-response h3 {
  font-size: 14px;
}
.ai-caution {
  font-size: 13px;
  line-height: 1.5;
  color: #353f43;
  margin: 12px 0 16px;
}
.syntax-status {
  white-space: pre-line;
}
.task-timer {
  margin-left: auto;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.task-timer[data-state=soon],
.task-timer[data-state=paused] {
  color: #92400e;
}
.task-timer[data-state=expired] {
  color: #b5252d;
}
.title-row {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .task-timer {
    margin-left: 0;
  }
}
.workspace.quiz {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}
.workspace.quiz .task article {
  max-height: none;
  overflow: visible;
}
.quiz-question {
  border: 0;
  border-top: 1px solid #e1e6e6;
  padding: 20px 0;
  margin: 0;
  min-width: 0;
}
.quiz-question legend {
  font-size: 15px;
  font-weight: 500;
  padding: 0 0 12px;
  max-width: 100%;
}
.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 6px;
}
.quiz-choice:hover {
  background: #f4f6f8;
}
.quiz-choice:has(input:checked) {
  background: #e0e8e8;
}
.quiz-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: #1b6c80;
}
.quiz-question:disabled {
  opacity: .65;
}
dialog.session-lock {
  max-width: 36rem;
  padding: 2.5rem;
  border: 1px solid #cbd5d8;
  border-radius: 12px;
  color: #19343c;
  background: #fff;
}
dialog.session-lock::backdrop {
  background: #edf3f3;
}
dialog.session-lock h1 {
  font-size: 1.65rem;
}
dialog.session-lock p {
  line-height: 1.6;
}
.learning-activity {
  margin-bottom: 24px;
  max-width: 900px;
}
.learning-activity fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
.learning-activity legend {
  font-weight: 500;
  margin-bottom: 12px;
}
.workspace.reading:not(.quiz) {
  grid-template-columns: 1fr;
  max-width: 1000px;
}
.workspace.reading:not(.quiz) .task article {
  max-height: none;
  overflow: visible;
}
.candidate-task-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
  margin: -24px -24px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #e8eaec;
  border-radius: 16px 16px 0 0;
}
@media (max-width: 650px) {
  .candidate-task-header {
    margin: -20px -16px 20px;
    padding: 12px 16px;
    border-radius: 0;
    gap: 8px;
  }
  .candidate-task-header > div {
    flex-basis: 100%;
  }
  .candidate-task-header .task-timer {
    margin-right: auto;
  }
}
.quiz-choice-content {
  min-width: 0;
  flex: 1;
}
.quiz-choice-content .code-block {
  margin: 6px 0 0;
}
.quiz-choice:has(input:checked) .code-block {
  background: transparent;
}
.candidate-view {
  padding-top: 24px;
}
.candidate-top-strip {
  position: fixed;
  inset: 0 0 auto;
  height: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}
.candidate-view .candidate-task-header {
  top: 24px;
}
.connector-reference table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.55;
}
.connector-reference th,
.connector-reference td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid #dfe7e7;
  overflow-wrap: anywhere;
}
.connector-reference th {
  font-weight: 500;
  color: #5d5f60;
  padding-top: 0;
  padding-bottom: 10px;
}
.connector-reference th:nth-child(1) {
  width: 28%;
}
.connector-reference th:nth-child(2) {
  width: 29%;
}
.connector-reference th:nth-child(3) {
  width: 43%;
}
.connector-reference th:first-child,
.connector-reference td:first-child {
  padding-left: 0;
}
.connector-reference th:last-child,
.connector-reference td:last-child {
  padding-right: 0;
}
@media (max-width: 650px) {
  .connector-reference th,
  .connector-reference td {
    padding: 10px 8px;
  }
  .connector-reference table {
    font-size: 12px;
  }
}
.reference-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 0;
  border: 1px solid #dfe7e7;
  border-radius: 12px;
  color: #131416;
  background: white;
}
.reference-dialog::backdrop {
  background: rgba(20, 35, 40, .4);
}
.reference-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #dfe7e7;
  position: sticky;
  top: 0;
  background: white;
}
.reference-dialog-header h2 {
  margin: 0;
}
.reference-dialog-content {
  padding: 8px 24px 24px;
}
.candidate-task-header {
  flex-wrap: wrap;
}
@media (min-width: 1051px) {
  .candidate-view .work:not(:has(.ai)):not(:has(.learning-activity)) .cm-editor {
    height: max(320px, calc(100dvh - 550px));
  }
  .candidate-view .workspace:not(.reading) .task > article {
    max-height: calc(100dvh - 300px);
  }
}
.check-hint-toggle {
  margin: 2px 0 8px;
  font-size: 12px;
}
.check-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #527782;
  background: #f4f7f8;
  font-size: 13px;
  line-height: 1.6;
}
.check-hint[hidden] {
  display: none;
}
.check-hint-anchor {
  display: inline-block;
  position: relative;
  margin-left: 6px;
}
.check-info {
  border: 0;
  background: transparent;
  padding: 2px 5px;
  min-width: 24px;
  color: #315a66;
  font-size: 16px;
  cursor: help;
}
.check-info:focus-visible {
  outline: 2px solid #315a66;
  outline-offset: 2px;
}
.check-tooltip {
  display: none;
  position: absolute;
  right: 0;
  bottom: 100%;
  width: min(300px, 60vw);
  padding: 12px;
  background: #1d343c;
  color: white !important;
  border-radius: 5px;
  box-shadow: 0 3px 12px #0002;
  z-index: 20;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  cursor: default;
}
.check-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  border: 0;
  max-height: calc(100dvh - 16px);
  overflow: auto;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
}
.check-tooltip:popover-open {
  display: block;
}
.check-tooltip code {
  color: #9ee7ff;
  background: rgba(0, 0, 0, .18);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: .95em;
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (min-width: 1051px) {
  .candidate-view .workspace:has(.ai) .task > article {
    max-height: calc(100dvh - 250px);
  }
}
.editor-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.editor-controls label {
  margin: 0;
  font-size: 12px;
}
.editor-controls select {
  width: auto;
  font-size: 12px;
  padding: 6px;
}
.editor-panel #editor {
  resize: vertical;
  min-height: 240px;
  max-height: 85vh;
  overflow: auto;
}
.candidate-view .editor-panel #editor .cm-editor {
  height: 100%;
}
.editor-panel.editor-fullscreen {
  position: fixed;
  inset: var(--editor-top,120px) 8px 8px;
  z-index: 15;
  background: white;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid #dfe7e7;
  border-radius: 8px;
}
.editor-fullscreen #editor {
  flex: 1;
  min-height: 180px;
  max-height: none;
  resize: none;
}
.editor-fullscreen .checks {
  flex: 0 1 auto;
  max-height: 24vh;
  overflow: auto;
  margin-top: 8px;
}
.editor-fullscreen .syntax-status {
  flex-shrink: 0;
}
.editor-fullscreen #editor-size,
.editor-fullscreen label[for=editor-size] {
  display: none;
}
@media (max-width: 650px) {
  .editor-panel > .panel-heading {
    flex-wrap: wrap;
  }
  .editor-controls {
    gap: 4px;
  }
}
header .brand .brand-logo {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
}
header .brand {
  color: #005653;
}
