body { font-family: Arial, sans-serif; margin: 0; background: #f8f9fb; }
nav { background: #1e293b; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
nav a { color: #fff; margin-right: 12px; text-decoration: none; }
nav .nav-links { color: #fff; }
.language-toggle { white-space: nowrap; }
.language-toggle a { margin-right: 0; opacity: 0.75; }
.language-toggle a.active { font-weight: 700; text-decoration: underline; opacity: 1; }
nav button {
  background: #334155;
  color: #fff;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
nav button:hover { background: #475569; }
main { padding: 18px; }
.controls, .filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #d1d5db; padding: 8px; font-size: 14px; text-align: left; vertical-align: top; }
.hidden { display: none; }
.page-help {
  margin: 0 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.page-help summary {
  cursor: pointer;
  font-weight: 600;
}

.page-help-content {
  margin-top: 8px;
}

.page-help-content p,
.page-help-content ul {
  margin: 0 0 8px;
}

.page-help-content ul {
  padding-left: 18px;
}

.about-layout {
  max-width: 960px;
}

.about-layout section {
  margin-bottom: 18px;
}

.about-layout h2,
.about-layout h3 {
  margin-bottom: 8px;
}

.about-layout p,
.about-layout ul,
.about-layout ol {
  margin-top: 0;
}

.doc-note {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: 8px;
}

.inline-help {
  font-size: 13px;
  color: #334155;
  margin: 4px 0 10px;
}

.thumb { width: 80px; cursor: pointer; }
.pagination { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.modal { position: fixed; inset: 0; z-index: 99; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
#modalImage {
  position: absolute;
  left: 30px;
  top: 50%;
  transform-origin: left center;
  max-width: calc(100vw - 60px);
  max-height: calc(100vh - 40px);
}

.testbench-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.module-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.module-button { width: 100%; text-align: left; border: 1px solid #cbd5e1; background: #fff; padding: 8px; cursor: pointer; }
.module-button:hover { background: #f1f5f9; }
pre { background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 4px; overflow-x: auto; }
