.oa-app.ob-app {
  min-height: calc(100dvh - var(--oa-header-height, 78px));
}
.ob-app [hidden] {
  display: none !important;
}
.ob-app .oa-scoring .ob-purple {
  color: #8b35d1;
}
.ob-app .oa-scoring .ob-amber {
  color: #b96800;
}
.ob-app .oa-scoring .ob-green {
  color: #078958;
}
.ob-app .ob-exam {
  background: transparent;
}
.ob-app .ob-workspace {
  flex: 1;
  width: min(100%, 900px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px 16px 24px;
  gap: 14px;
}
.ob-workspace h2 {
  font-family: inherit;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  margin: 0;
  white-space: pre-line;
}
.ob-workspace form {
  width: 100%;
  min-width: 0;
}
.ob-cards {
  display: grid;
  gap: 6px;
}
.ob-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid #d4dcec;
  border-radius: 12px;
  padding: 5px;
  background: #fff;
}
.ob-app .ob-quote {
  min-width: 0;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  background: #f4f6fc;
  color: #293752;
  cursor: pointer;
}
.ob-quote span,
.ob-quote small {
  display: block;
  line-height: 1.4;
}
.ob-quote span {
  font-size: 16px;
  font-weight: 600;
}
.ob-quote small {
  font-size: 13px;
  color: #54627b;
}
.ob-app .ob-quote[data-side="sell"] {
  background: #f1f7f5;
}
.ob-app .ob-quote[data-selected="true"] {
  border-color: var(--oa-accent);
  box-shadow: inset 0 0 0 1px var(--oa-accent);
}
.ob-quote:disabled {
  cursor: default;
}
.ob-actions,
.ob-selections {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ob-actions {
  align-items: center;
}
.ob-selections {
  font-size: 12px;
  margin: 10px 0 0;
}
.ob-selected {
  border: 1px solid #cbd5e5;
  background: white;
  border-radius: 8px;
  padding: 5px 9px;
  color: #334569;
  min-height: 32px;
  font: inherit;
  cursor: pointer;
}
.ob-clear {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #485b78;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ob-clear:disabled {
  opacity: 0.5;
}
.ob-notice {
  min-height: 1.5em;
  color: #8b3346;
  text-align: center;
  font-size: 13px;
  margin: 4px 0;
}
.ob-app .oa-information-benchmarks {
  width: 100%;
  max-width: none;
}
.ob-tutorial {
  margin: 1em 0;
  font-size: 14px;
}
.ob-tutorial summary,
.ob-app .oa-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.ob-app .oa-previous-metrics > span {
  white-space: nowrap;
}
.ob-app .oa-result-score small {
  font-size: 0.45em;
}
.ob-app .oa-score-info {
  min-width: 20px;
  min-height: 20px;
}
.ob-app .ob-exam:has([data-ob-starting]:not([hidden])) .ob-workspace,
.ob-app .ob-exam:has([data-ob-starting]:not([hidden])) footer {
  visibility: hidden;
}
@media (max-width: 620px) {
  .ob-app .ob-workspace {
    padding: 10px 4px 16px;
  }
  .ob-app .ob-quote {
    padding: 6px;
  }
  .ob-quote span {
    font-size: 14px;
  }
  .ob-selections {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ob-app * {
    scroll-behavior: auto !important;
  }
}

.ob-app .ob-exam button {
  touch-action: manipulation;
}

.ob-app [data-ob-results] { width: 100%; }
.ob-review { overflow: hidden; border: 1px solid #d7dfeb; border-radius: 12px; background: white; text-align: left; font-size: 14px; line-height: 1.55; }
.ob-review > header { display: flex; gap: 10px; align-items: center; padding: 12px 18px; }
.ob-status { margin-left: auto; border-radius: 6px; background: #f1f3f8; color: #536075; padding: 2px 8px; font-size: 12px; }
.ob-solved { color: #156046; background: #e5f4ec; }
.ob-unsolved { color: #943641; background: #fff1f2; }
.ob-review-body { padding: 0 clamp(12px,2vw,22px) 18px; border-top: 1px solid #e1e7f2; }
.ob-review-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.ob-review > header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.ob-review h4 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.ob-review p { margin: 10px 0; }
.ob-quotes { width: 100%; border-collapse: collapse; }
.ob-quotes td, .ob-quotes th { padding: 5px 8px; border-bottom: 1px solid #e7ecf4; }
.ob-quotes caption { caption-side:top; padding:0 0 6px; color:#51617d; font-size:12px; }
.ob-quotes thead { background:#f3f6fb; }
.ob-quotes tbody th { font-weight:500; }
.ob-quotes td, .ob-quotes thead th:not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
.ob-quotes small { display:block; white-space:nowrap; color:#536075; font-size:12px; }
.ob-submission + .ob-submission { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e1e7f2; }
.ob-review ul, .ob-review ol { padding-left: 1.4rem; margin: 4px 0; }
.ob-example { background: #f3f6fc; border-radius: 8px; padding: 12px 16px; margin-top: 16px; }
.ob-example p { margin-bottom: 0; }
@media (max-width: 720px) { .ob-review-columns { grid-template-columns: minmax(0,1fr); } }

.ob-app.oa-results-preparing .ob-workspace,
.ob-app.oa-results-preparing .oa-exam-centre,
.ob-app.oa-results-preparing .oa-exam-bottom { visibility:hidden; }
