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

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

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

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

.newton-workspace [data-newton-vernier] {
  display: block;
  width: 100%;
  min-width: 950px;
}
.newton-workspace [data-newton-apparatus] {
  display: block;
  width: 100%;
  min-width: 850px;
}
.newton-handle {
  cursor: ew-resize;
  touch-action: none;
}
.newton-handle:focus {
  outline: none;
  stroke: #bd7b13;
  stroke-width: 3;
}
.newton-workspace [data-newton-force-graph],
.newton-workspace [data-newton-mass-graph] {
  overflow-x: auto;
  margin: 1.3rem 0;
}
.newton-workspace [data-newton-force-graph] svg,
.newton-workspace [data-newton-mass-graph] svg {
  display: block;
  width: 100%;
  min-width: 650px;
  background: #fff;
}
.newton-weigh-bench { display: block; width: 100%; height: auto; max-height: 320px; margin: 1rem 0; background: #f1f6f8; border: 1px solid #d2dee5; border-radius: 16px; touch-action: none; }
.newton-weigh-bench text { font-family: system-ui, sans-serif; font-size: 14px; }
.newton-workspace svg text.newton-digits { fill: #e0fff4; font-family: monospace !important; font-size: 19px !important; font-weight: 700; }
.newton-bench-note { font-size: 13px !important; fill: #334f63; }
.newton-draggable { cursor: grab; }
.newton-draggable:focus { outline: 3px solid #e28920; outline-offset: 3px; }
.newton-draggable[aria-disabled="true"] { cursor: default; }
