[data-system-root] textarea {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

[data-system-root] :is(input[data-field]:read-only, textarea[data-field]:read-only) {
  color: var(--locked-text);
  background-color: var(--read-only-surface);
  cursor: text;
}

[data-system-root] :is(select:disabled, input[type="checkbox"]:disabled) {
  color: var(--locked-text);
  background-color: var(--disabled-surface);
  opacity: 1;
  cursor: not-allowed;
  -webkit-text-fill-color: currentcolor;
}

.sheet {
  width: var(--page-width);
  min-height: var(--page-height);
  padding: 24px;
  margin: 0;
  background: var(--paper);
  box-shadow: 0 5px 20px var(--sheet-shadow);
}

.line-field {
  display: flex;
  align-items: end;
  min-width: 0;
  gap: 0.3125rem;
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;

  :where(input, select) {
    width: 100%;
    min-width: 0;
    height: 1.75rem;
    padding: 0.0625rem 0.1875rem 0;
    border: 0;
    border-bottom: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    font-family: var(--body-font);
    font-size: 1.125rem;
    font-weight: 400;
  }
}

@container sheet-workspace (max-width: 830px) {
  .sheet {
    justify-self: center;
    width: calc(100% - 24px);
    box-shadow: 0 5px 20px -20px var(--sheet-shadow);
  }
}

@media (max-width: 830px) {
  .sheet {
    justify-self: center;
    width: calc(100% - 24px);
    box-shadow: 0 5px 20px -20px var(--sheet-shadow);
  }
}

@media (max-width: 760px) {
  .sheet {
    width: calc(100% - 16px);
    padding: 1rem;
  }
}

@media (max-width: 430px) {
  .line-field {
    font-size: 1.125rem;
  }
}
