.moments-workspace {
  --moments-blue: #2365a8;
  --moments-border: #c4d2df;
}
.moments-note {
  padding: 1rem 1.2rem;
  border-left: 4px solid #28717d;
  background: #eff7f8;
  border-radius: 5px;
  color: #163d46;
}
.moments-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
  margin: 1.25rem 0;
}
.moments-controls label {
  display: grid;
  gap: 0.4rem;
  flex: 1 1 180px;
}
.moments-workspace input[type="number"] {
  max-width: 100%;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #8599ae;
  border-radius: 6px;
  background: #fff;
  color: #152f48;
  font: inherit;
}
.moments-workspace button {
  margin: 0.4rem 0.25rem 0.4rem 0;
}
.moments-apparatus-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--moments-border);
  border-radius: 12px;
  background: #f5f9fc;
}
.moments-workspace [data-moments-apparatus] {
  width: 100%;
  min-width: 720px;
  display: block;
}
.moments-workspace svg text {
  font:
    16px system-ui,
    sans-serif;
  fill: #243d55;
}
.moments-instruments {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.moments-instruments > div {
  flex: 1 1 200px;
  padding: 1rem;
  border: 1px solid var(--moments-border);
  border-radius: 12px;
  background: #f2f6fa;
}
.moments-instruments output {
  display: block;
  font:
    600 1.8rem ui-monospace,
    monospace;
  background: #102c40;
  color: #bcf5e1;
  padding: 0.7rem;
  border-radius: 6px;
  margin-top: 0.6rem;
}
.moments-table-wrap,
[data-moments-graph] {
  overflow-x: auto;
  margin: 1.3rem 0;
}
.moments-workspace [data-moments-graph] svg {
  width: 100%;
  min-width: 640px;
  background: #fff;
  display: block;
}
.moments-minor {
  stroke: #e9eef3;
  stroke-width: 0.6;
}
.moments-major {
  stroke: #bac9d7;
  stroke-width: 1;
}
.moments-point {
  fill: #2468a5;
}
.moments-fit {
  stroke: #d06e2d;
  stroke-width: 2.3;
}
.moments-workspace table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.moments-workspace th,
.moments-workspace td {
  padding: 0.7rem;
  text-align: left;
  border: 1px solid #d3dde7;
  white-space: nowrap;
}
.moments-workspace th {
  background: #eaf1f7;
  color: #193b5a;
}
.moments-workspace tbody tr:nth-child(even) {
  background: #f7fafc;
}
.moments-workspace td input {
  min-width: 120px;
}
.moments-correction {
  background: #fff1d2 !important;
  color: #734600;
  font-weight: 600;
}
.moments-equilibrated {
  color: #1c6743;
}
.moments-restart {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #d2dce5;
}
.moments-workspace details summary {
  cursor: pointer;
  font-weight: 600;
}
.moments-workspace [data-moments-status]:not(:empty) {
  padding: 0.8rem;
  border: 1px solid #c8d9e7;
  border-radius: 7px;
  background: #f0f6fb;
}
.moments-workspace button:focus-visible,
.moments-workspace input:focus-visible {
  outline: 3px solid #d59a34;
  outline-offset: 3px;
}
.moments-workspace input:disabled {
  opacity: 0.65;
}
.moments-workspace form {
  margin: 1rem 0;
}

.moments-workspace select {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #8599ae;
  border-radius: 6px;
  background: #fff;
  color: #152f48;
}
.moments-workspace input[type="range"] {
  width: 100%;
  min-height: 36px;
}
.moments-workspace [data-moments-probe-graph] {
  overflow-x: auto;
  margin: 1.3rem 0;
}
.moments-workspace [data-moments-probe-graph] svg {
  display: block;
  width: 100%;
  min-width: 640px;
  background: #fff;
}
.moments-errorbar {
  stroke: #497992;
  stroke-width: 1.5;
}
.moments-unknown {
  stroke: #8c3b78;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  fill: none;
}
.moments-probe {
  fill: none;
  stroke: #2468a5;
  stroke-width: 2;
}

.moments-workspace select {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #8599ae;
  border-radius: 6px;
  background: #fff;
}
.moments-workspace [data-moments-vernier],
.moments-workspace [data-moments-micrometer] {
  display: block;
  width: 100%;
  min-width: 900px;
}
.moments-workspace [data-moments-cylinder] {
  display: block;
  width: 100%;
  min-width: 720px;
}
.moments-movable {
  cursor: ew-resize;
  touch-action: none;
}
.moments-sight {
  cursor: ns-resize;
  touch-action: none;
}
.moments-movable:focus,
.moments-sight:focus {
  outline: none;
  stroke: #bd7b13;
  stroke-width: 3;
}

.moments-workspace [data-moments-vernier] {
  min-width: 1000px;
}

.moments-workspace [data-moments-apparatus],
.moments-workspace [data-moments-magnifier] {
  display: block;
  width: 100%;
  min-width: 850px;
}
.moments-workspace [data-moments-magnifier] {
  min-width: 600px;
}
.moments-handle {
  cursor: ew-resize;
  touch-action: none;
}
.moments-handle:focus {
  outline: none;
  stroke: #bd7b13;
  stroke-width: 3;
}
.moments-workspace [data-moments-unknown-graph],
.moments-workspace [data-moments-rule-graph] {
  overflow-x: auto;
  margin: 1.3rem 0;
}
.moments-workspace [data-moments-unknown-graph] svg,
.moments-workspace [data-moments-rule-graph] svg {
  display: block;
  width: 100%;
  min-width: 650px;
  background: #fff;
}
