.messages .turn {
  max-width: 880px;
  margin: 0 auto 28px;
}
.messages .question {
  background: #f0f4ed;
  white-space: pre-wrap;
  border-radius: 14px 14px 3px 14px;
  margin-left: auto;
  width: fit-content;
  max-width: 87%;
  padding: 10px 16px;
}
.byline,
.small-tag,
.file-subtitle {
  font-size: 12px;
  color: #687163;
}
.byline {
  font-weight: 600;
  margin-bottom: 6px;
}
.turn h2,
.work-dialog h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 7px 0 13px;
}
.turn h3,
.work-dialog h3 {
  font-size: 17px;
}
.turn h4 {
  margin: 10px 0 4px;
}
.turn ol,
.turn ul {
  padding-left: 1.65em;
}
.prose {
  line-height: 1.8;
}
.prose p {
  margin: 0.6em 0;
}
.prose blockquote,
.turn blockquote {
  border-left: 3px solid #b6c7ae;
  margin: 8px 0;
  padding-left: 12px;
}
.prose pre,
.preview-text,
.equation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.55 ui-monospace,
    monospace;
}
.equation {
  display: block;
  padding: 4px 0;
}
.model-panel {
  padding: 15px 16px;
  margin: 12px 0 16px;
  border: 1px solid #d8dfd4;
  border-radius: 10px;
  background: #fcfdfa;
}
.result-head,
.plotbar,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.small-tag {
  white-space: nowrap;
}
.details {
  margin: 8px 0;
  overflow: auto;
}
.details summary {
  cursor: pointer;
  font-size: 14px;
  color: #4a624b;
}
.parameters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.parameters label,
.work-dialog label {
  display: block;
  font-size: 13px;
  color: #545d50;
}
.parameters input,
.work-dialog input,
.work-dialog textarea,
.plotbar select {
  width: 100%;
  margin: 3px 0 5px;
  border: 1px solid #cfd5cc;
  border-radius: 6px;
  padding: 6px 8px;
  background: white;
  color: #272d25;
  font: inherit;
}
.plotbar select {
  width: auto;
  max-width: 62%;
}
.parameter-form {
  margin: 12px 0;
}
.graph svg {
  width: 100%;
  height: auto;
}
.graph svg text {
  font: 12px system-ui;
  fill: #576651;
}
.graph figcaption {
  text-align: center;
  font-size: 12px;
  color: #52614c;
}
.verifications {
  margin: 14px 0;
}
.verifications small {
  display: block;
  color: #687061;
}
.passed {
  color: #286338;
}
.error {
  color: #a1382b;
}
.neutral,
.pending {
  color: #746a4b;
}
.tool-btn,
.primary-btn,
.mini {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #d1d8cc;
  margin: 3px 5px 3px 0;
  background: #fff;
}
.primary-btn {
  background: #164a29;
  color: white;
  border-color: #164a29;
}
.tool-btn:hover,
.mini:hover,
.file-link:hover,
.session-item:hover,
.example-card:hover {
  background: #edf4e9;
}
.mini {
  font-size: 12px;
  padding: 2px 5px;
}
.turn table {
  border-collapse: collapse;
  font-size: 13px;
}
.turn th,
.turn td {
  border: 1px solid #dde2d8;
  padding: 3px 8px;
}
.session-item,
.file-link,
.example-card {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.session-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-item.current {
  background: #e6e9e2;
}
.file-row {
  border-bottom: 1px solid #e6e9e2;
  padding-bottom: 6px;
}
.file-link {
  color: #315b38;
}
.file-subtitle {
  margin: 16px 0 5px;
}
.work-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, 94vw);
  max-height: 84dvh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #d9ded4;
  border-radius: 14px;
  background: #fff;
  color: #252923;
  box-shadow: 0 15px 85px #18261930;
}
.work-dialog::backdrop {
  background: #26302355;
}
.work-dialog textarea {
  min-height: 90px;
}
.work-dialog textarea.source-editor {
  min-height: 48vh;
  font:
    13px/1.5 ui-monospace,
    monospace;
}
.preview-image {
  max-width: 100%;
  max-height: 48vh;
  display: block;
}
.preview-text {
  max-height: 48vh;
  overflow: auto;
  background: #f7f8f5;
  padding: 10px;
}
.example-card {
  border: 1px solid #dce1d8;
  padding: 12px 14px;
  margin-top: 10px;
}
.example-card small,
.example-card span,
.example-card strong {
  display: block;
}
.example-card small {
  color: #457348;
}
.example-card strong {
  font-size: 17px;
  margin: 4px 0;
}
.example-card span {
  color: #63705f;
}
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #243d28;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 90vw;
}
.formula {
  overflow-x: auto;
}
.paper {
  padding: 12px 0;
  border-bottom: 1px solid #dee3da;
}
.paper a,
.literature-link {
  color: #326039;
}
.literature-link {
  font-size: 12px;
  text-decoration: underline;
}
.modal-head h2 {
  margin: 0;
}
.work-dialog label {
  margin: 10px 0;
}
.prose h1,
.prose h2 {
  font-size: 18px;
}
.prose h3 {
  font-size: 16px;
}
