.rubber-note {
  border-left: 4px solid #246b85;
  background: #eff7fa;
  padding: 1rem;
  border-radius: 6px;
}
.rubber-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin: 1.2rem 0;
}
.rubber-controls label {
  display: grid;
  gap: 0.5rem;
  flex: 1 1 190px;
}
.rubber-workspace input[type="number"],
.rubber-workspace select {
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #8b9daf;
  border-radius: 6px;
  background: white;
  color: #17364b;
  max-width: 100%;
  width: 100%;
}
.rubber-workspace input[type="range"] {
  width: 100%;
  min-height: 36px;
}
.rubber-workspace button {
  margin: 0.4rem 0.25rem 0.4rem 0;
}
.rubber-workspace button:focus-visible,
.rubber-workspace input:focus-visible {
  outline: 3px solid #d79b2e;
  outline-offset: 3px;
}
.rubber-apparatus-wrap,
.rubber-graph-wrap,
.rubber-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}
.rubber-apparatus-wrap {
  background: #f5f9fc;
  border: 1px solid #c4d2df;
  border-radius: 12px;
}
.rubber-workspace [data-rubber-apparatus] {
  display: block;
  width: 100%;
  min-width: 850px;
}
.rubber-workspace svg text {
  font:
    16px system-ui,
    sans-serif;
  fill: #233f52;
}
.rubber-workspace [data-rubber-graph] svg {
  display: block;
  width: 100%;
  min-width: 700px;
  background: white;
}
.rubber-workspace table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 1rem 0;
}
.rubber-workspace th,
.rubber-workspace td {
  padding: 0.7rem;
  border: 1px solid #d1dce5;
  text-align: left;
  white-space: nowrap;
}
.rubber-workspace th {
  background: #eaf1f7;
  color: #193d55;
}
.rubber-workspace tr:nth-child(even) {
  background: #f7fafc;
}
.rubber-workspace td input {
  min-width: 130px;
}
.rubber-correction {
  background: #fff1d2 !important;
  color: #754600;
  font-weight: 600;
}
.rubber-handle {
  cursor: ns-resize;
  touch-action: none;
}
.rubber-handle:focus {
  outline: none;
  stroke: #bd7b13;
  stroke-width: 3;
}
.rubber-minor {
  stroke: #e8eef3;
  stroke-width: 0.6;
}
.rubber-major {
  stroke: #b8c8d5;
  stroke-width: 1;
}
.rubber-loading {
  stroke: #196cb0;
  fill: none;
  stroke-width: 2.5;
}
.rubber-unloading {
  stroke: #ae4b24;
  fill: none;
  stroke-width: 2.5;
}
.rubber-loading-point {
  fill: #196cb0;
}
.rubber-unloading-point {
  fill: #ae4b24;
}
.rubber-errorbar {
  fill: none;
  stroke: #54778c;
  stroke-width: 1.2;
}
.rubber-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.rubber-loading-key {
  color: #196cb0;
  font-weight: 600;
}
.rubber-unloading-key {
  color: #963e1c;
  font-weight: 600;
}
.rubber-workspace [data-rubber-status]:not(:empty) {
  background: #eff6fa;
  border: 1px solid #cadce7;
  padding: 0.8rem;
  border-radius: 6px;
}
.rubber-workspace details {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #cad6df;
}
.rubber-workspace summary {
  font-weight: 600;
  cursor: pointer;
}

.rubber-mass { cursor: grab; touch-action: none; }
.rubber-mass:focus { outline: none; }
.rubber-mass:focus rect { stroke: #165fba; stroke-width: 4; }
