.__ns__ {
  --length1: 3.25px;
  --length2: 6.5px;
  --length3: 13px;
  --label-width: 120px;
  --input-width: 240px;
  font: 13px/1.2 var(--sans-serif);
}
form.__ns__ {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 25.5px;
  margin: var(--length3) 0;
}
form.__ns__ > label {
  width: 100%;
  padding-bottom: 3px;
}
form.__ns__-toggle {
  flex-wrap: nowrap;
}
form.__ns__-toggle > label {
  align-self: start;
  padding: 5px 0 4px 0;
  margin-right: var(--length2);
}
form.__ns__-toggle > label,
form.__ns__-toggle .__ns__-input {
  width: initial;
}
@media only screen and (min-width: 30em) {
  form.__ns__ {
    flex-wrap: nowrap;
    width: calc(var(--input-width) + var(--label-width));
    max-width: 100%;
    margin: initial;
  }
  form.__ns__ > label {
    flex-shrink: 0;
    align-self: start;
    padding: 5px 0 4px 0;
    width: var(--label-width);
    margin-right: var(--length2);
  }
}
.__ns__ button,
.__ns__ input,
.__ns__ select,
.__ns__ table,
.__ns__ textarea {
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.__ns__ button,
.__ns__ input {
  line-height: normal;
}
.__ns__ button {
  margin: 0;
}
.__ns__ button + button {
  margin-left: var(--length1);
}
.__ns__-textarea {
  --input-width: 520px;
}
.__ns__-textarea > div {
  width: 100%;
  text-align: right;
}
.__ns__-textarea > div textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px;
  min-height: calc(2.5em + 8px);
  max-height: calc(14em + 8px);
  resize: vertical;
}
.__ns__-textarea > div button {
  margin: 4px 0 0;
}
.__ns__ input[type=radio],
.__ns__ input[type=checkbox] {
  margin-right: var(--length2);
}
.__ns__-input {
  display: flex;
  align-items: center;
  width: 100%;
}
.__ns__-input > input,
.__ns__-input > button,
.__ns__-input > output {
  width: inherit;
  min-width: 0;
}
.__ns__-input > button,
.__ns__-input > output,
.__ns__-input > input[type=number] {
  flex-shrink: 2.5;
}
.__ns__-input > output {
  white-space: pre;
  margin-left: var(--length2);
}
.__ns__-input > button {
  margin-left: var(--length1);
}
.__ns__-input > input[type=number] {
  font-variant-numeric: tabular-nums;
  flex-shrink: 1.5;
  text-overflow: ellipsis;
}
.__ns__-input > input[type=color] ~ output {
  font-family: ui-monospace, var(--monospace);
}
.__ns__-input:not(:only-child) > input[type=color] ~ output {
  flex-shrink: 1;
}
.__ns__-input > input[type=range] {
  margin: 0;
  margin-left: var(--length2);
}
.__ns__-input > input[type=date],
.__ns__-input > input[type=datetime-local] {
  height: 22px;
}
form.__ns__-checkbox {
  width: auto;
  max-width: 640px;
}
.__ns__-checkbox div label {
  display: inline-flex;
  align-items: center;
  margin-right: var(--length3);
}
form.__ns__-table {
  display: block;
  overflow-y: auto;
  width: 100%;
}
.__ns__-table table {
  max-width: initial;
  min-height: 33px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.__ns__-table tr:not(:last-child) td,
.__ns__-table tr:not(:last-child) th {
  border-bottom: solid 1px var(--theme-foreground-faintest);
}
.__ns__-table thead tr td,
.__ns__-table thead tr th {
  border-bottom: solid 1px var(--theme-foreground-fainter);
}
.__ns__-table thead th span {
  display: inline-block;
  width: 0.5em;
  margin-left: -0.5em;
}
.__ns__-table td,
.__ns__-table th {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 3px 6.5px 3px 0;
}
.__ns__-table tr > :not(:first-of-type) {
  padding-left: var(--length2);
}
.__ns__-table tr > :last-of-type {
  padding-right: var(--length3);
}
.__ns__-table tr > :first-of-type {
  text-overflow: unset;
  width: 19px;
}
.__ns__-table tr > :first-of-type input {
  opacity: 0;
  margin: 0 3px 1px 4px;
}
.__ns__-table tr:hover > :first-of-type input:enabled,
.__ns__-table tr > :first-of-type input:focus,
.__ns__-table tr > :first-of-type input:checked,
.__ns__-table tr > :first-of-type input[type=checkbox]:indeterminate {
  opacity: inherit;
}
.__ns__-table thead tr {
  border-bottom: none;
}
.__ns__-table thead th {
  position: sticky;
  top: 0;
  background: var(--theme-background);
  cursor: ns-resize;
}
.__ns__-table tbody tr:first-child td {
  padding-top: 4px;
}
